LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   apt-get upgrade keeps some packages back (http://www.linuxquestions.org/questions/ubuntu-63/apt-get-upgrade-keeps-some-packages-back-834939/)

10110111 09-28-2010 07:57 AM

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.

healyma 09-28-2010 08:12 AM

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.

10110111 09-28-2010 08:29 AM

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..

healyma 09-28-2010 08:37 AM

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.

tommcd 09-29-2010 01:56 AM

Quote:

Originally Posted by 10110111 (Post 4111377)
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.

10110111 09-30-2010 05:50 AM

tommcd thanks, i'll try this on the next upgrade.


All times are GMT -5. The time now is 07:24 PM.