LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-28-2010, 07:57 AM   #1
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
apt-get upgrade keeps some packages back


When i do apt-get upgrade, i sometimes get this message:
Code:
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Why are they kept back? How can i 'unkeep' them for all successive upgrades? I always have to specially say apt-get install to upgrade them.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-28-2010, 08:12 AM   #2
healyma
Member
 
Registered: Feb 2009
Location: Mayo, Ireland
Distribution: LFS 6.4; Debian 5.4; Mythbuntu & Kubuntu 10.04
Posts: 49

Rep: Reputation: 19
As far as I can tell, it's a kernel upgrade. If so, it's probably best to upgrade manually in case you have any third party kernel modules installed etc.
 
Old 09-28-2010, 08:29 AM   #3
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
So, that's the only reason? I'm wondering because update-manager automatically upgrades every package it finds while apt-get keeps some back. And not only kernel updates, but also sometimes chromium-browser etc..
 
Old 09-28-2010, 08:37 AM   #4
healyma
Member
 
Registered: Feb 2009
Location: Mayo, Ireland
Distribution: LFS 6.4; Debian 5.4; Mythbuntu & Kubuntu 10.04
Posts: 49

Rep: Reputation: 19
I've had similar experiences with the update-manager where it would upgrade the kernel and then some hardware wouldn't work correctly (e.g DVB-S2 cards using 3rd party modules such as s2-lilianin). Not sure why it would hold back the likes of chromium - maybe it had some unmet dependency which conflicted with something installed.
 
1 members found this post helpful.
Old 09-29-2010, 01:56 AM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by 10110111 View Post
When i do apt-get upgrade, i sometimes get this message ...
Why are they kept back? How can i 'unkeep' them for all successive upgrades?
Instead of running: sudo apt-get upgrade you should run: sudo apt-get dist-upgrade. This will install any new packages that are in the updates.
From a lot of testing that I have done, using the GUI update-manager in Ubuntu is the same as doing:
Code:
sudo apt-get update
sudo apt-get dist-upgrade
Both update-manager and dist-upgrade will remove old packages and install new ones that are in the updates. Just running sudo apt-get upgrade will only install new versions of packages that you already have on your system.
Write back if you need more help.

Last edited by tommcd; 10-01-2010 at 01:28 AM. Reason: corrected careless typo!
 
2 members found this post helpful.
Old 09-30-2010, 05:50 AM   #6
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
tommcd thanks, i'll try this on the next upgrade.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get upgrade packages have been kept back cccc Debian 7 04-11-2007 02:35 PM
apt-get upgrade: packages kept back, etch jameslaw Debian 1 04-28-2006 03:27 PM
apt-get upgrade packages held back manicman Linux - Newbie 3 11-25-2005 06:21 PM
apt-get upgrade lists many packages kept back malbery Debian 2 01-05-2005 01:15 PM
how to install the "packages that have been held back" when doing "apt-get upgrade&qu zero79 Debian 5 06-27-2004 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration