Why are upgrades being held back?

Asked by Robert

I needed to re-install Jaunty, and when it was done I noticed that the 2.6.28-11 was used, where I had 2.6.28-12 before. I ran this series of commands in Terminal;

rob@robsteph-laptop:~$ sudo apt-get update
Hit http://archive.ubuntu.com jaunty Release.gpg
Ign http://archive.ubuntu.com jaunty/main Translation-en_US
Hit http://archive.canonical.com jaunty Release.gpg
Ign http://archive.canonical.com jaunty/partner Translation-en_US
Hit http://wine.budgetdedicated.com jaunty Release.gpg
Ign http://wine.budgetdedicated.com jaunty/main Translation-en_US
Ign http://archive.ubuntu.com jaunty/restricted Translation-en_US
Ign http://archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://archive.ubuntu.com jaunty/multiverse Translation-en_US
Hit http://archive.ubuntu.com jaunty-updates Release.gpg
Ign http://archive.ubuntu.com jaunty-updates/main Translation-en_US
Ign http://archive.ubuntu.com jaunty-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com jaunty-updates/universe Translation-en_US
Ign http://archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
Hit http://archive.ubuntu.com jaunty-backports Release.gpg
Hit http://archive.canonical.com jaunty Release
Ign http://archive.ubuntu.com jaunty-backports/main Translation-en_US
Ign http://archive.ubuntu.com jaunty-backports/restricted Translation-en_US
Hit http://wine.budgetdedicated.com jaunty Release
Ign http://archive.ubuntu.com jaunty-backports/universe Translation-en_US
Ign http://archive.ubuntu.com jaunty-backports/multiverse Translation-en_US
Hit http://archive.ubuntu.com jaunty-security Release.gpg
Ign http://archive.ubuntu.com jaunty-security/main Translation-en_US
Ign http://archive.ubuntu.com jaunty-security/restricted Translation-en_US
Ign http://archive.ubuntu.com jaunty-security/universe Translation-en_US
Ign http://archive.ubuntu.com jaunty-security/multiverse Translation-en_US
Hit http://archive.ubuntu.com jaunty-proposed Release.gpg
Ign http://archive.ubuntu.com jaunty-proposed/restricted Translation-en_US
Ign http://archive.canonical.com jaunty/partner Packages
Ign http://wine.budgetdedicated.com jaunty/main Packages
Ign http://archive.ubuntu.com jaunty-proposed/main Translation-en_US
Ign http://archive.ubuntu.com jaunty-proposed/multiverse Translation-en_US
Ign http://archive.ubuntu.com jaunty-proposed/universe Translation-en_US
Hit http://archive.ubuntu.com jaunty Release
Hit http://archive.ubuntu.com jaunty-updates Release
Ign http://archive.canonical.com jaunty/partner Sources
Hit http://wine.budgetdedicated.com jaunty/main Packages
Hit http://archive.ubuntu.com jaunty-backports Release
Hit http://archive.ubuntu.com jaunty-security Release
Hit http://archive.ubuntu.com jaunty-proposed Release
Hit http://archive.canonical.com jaunty/partner Packages
Hit http://archive.ubuntu.com jaunty/main Packages
Hit http://archive.ubuntu.com jaunty/restricted Packages
Hit http://archive.ubuntu.com jaunty/restricted Sources
Hit http://archive.ubuntu.com jaunty/main Sources
Hit http://archive.ubuntu.com jaunty/multiverse Sources
Hit http://archive.ubuntu.com jaunty/universe Sources
Hit http://archive.ubuntu.com jaunty/universe Packages
Hit http://archive.ubuntu.com jaunty/multiverse Packages
Hit http://archive.ubuntu.com jaunty-updates/main Packages
Hit http://archive.canonical.com jaunty/partner Sources
Hit http://archive.ubuntu.com jaunty-updates/restricted Packages
Hit http://archive.ubuntu.com jaunty-updates/restricted Sources
Hit http://archive.ubuntu.com jaunty-updates/main Sources
Hit http://archive.ubuntu.com jaunty-updates/multiverse Sources
Hit http://archive.ubuntu.com jaunty-updates/universe Sources
Hit http://archive.ubuntu.com jaunty-updates/universe Packages
Hit http://archive.ubuntu.com jaunty-updates/multiverse Packages
Hit http://archive.ubuntu.com jaunty-backports/main Packages
Hit http://archive.ubuntu.com jaunty-backports/restricted Packages
Hit http://archive.ubuntu.com jaunty-backports/universe Packages
Hit http://archive.ubuntu.com jaunty-backports/multiverse Packages
Hit http://archive.ubuntu.com jaunty-backports/main Sources
Hit http://archive.ubuntu.com jaunty-backports/restricted Sources
Hit http://archive.ubuntu.com jaunty-backports/universe Sources
Hit http://archive.ubuntu.com jaunty-backports/multiverse Sources
Hit http://archive.ubuntu.com jaunty-security/main Packages
Hit http://archive.ubuntu.com jaunty-security/restricted Packages
Hit http://archive.ubuntu.com jaunty-security/restricted Sources
Hit http://archive.ubuntu.com jaunty-security/main Sources
Hit http://archive.ubuntu.com jaunty-security/multiverse Sources
Hit http://archive.ubuntu.com jaunty-security/universe Sources
Hit http://archive.ubuntu.com jaunty-security/universe Packages
Hit http://archive.ubuntu.com jaunty-security/multiverse Packages
Hit http://archive.ubuntu.com jaunty-proposed/restricted Packages
Hit http://archive.ubuntu.com jaunty-proposed/main Packages
Hit http://archive.ubuntu.com jaunty-proposed/multiverse Packages
Hit http://archive.ubuntu.com jaunty-proposed/universe Packages
Hit http://archive.ubuntu.com jaunty-proposed/restricted Sources
Hit http://archive.ubuntu.com jaunty-proposed/main Sources
Hit http://archive.ubuntu.com jaunty-proposed/multiverse Sources
Hit http://archive.ubuntu.com jaunty-proposed/universe Sources
Reading package lists... Done
rob@robsteph-laptop:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
  linux-restricted-modules-generic
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
rob@robsteph-laptop:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-generic linux-headers-generic linux-image-generic
  linux-restricted-modules-generic
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Please help me.

-Robert

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Derek White
Solved:
Last query:
Last reply:
Revision history for this message
Derek White (d-man97) said :
#1

Open synaptic, search for the packages that are being held back, select one at a time and click on the Package menu and make sure they are not locked (clear the "Lock Version" check-box).

Revision history for this message
Derek White (d-man97) said :
#2

I just checked and with jaunty-security, jaunty-updates, and jaunty-backports activated my current linux-generic is version 2.6.28.11.15. Maybe you had jaunty-proposed activated on the old system?

Revision history for this message
Robert (rhoffmaniii) said :
#3

Okay, first off, thank you for your response and time. Secondly, the packages held back do not seem to be locked. Third, I probably was using jaunty-proposed, but that should not matter, because I've already set this installation to be jaunty-proposed as well.

Also to note; Through Synaptic Package Manager, the attempt to upgrade any of the affected packages is denied.
linux-headers-generic:
 Depends: linux-headers-2.6.28-13-generic but it is not installable
linux-image-generic:
 Depends: linux-image-2.6.28-13-generic but it is not installable
linux-generic:
  Depends: linux-image-generic (=2.6.28.13.17) but 2.6.28.11.15 is to be installed
  Depends: linux-restricted-modules-generic (=2.6.28.13.17) but 2.6.28.11.15 is to be installed
linux-restricted-modules-generic:
 Depends: linux-restricted-modules-2.6.28-13-generic but it is not installable
This occurs in any order in which I try. Further, "Mark All Upgrades" will not work either. When using Update Manager, these packages are in grey.

Am I doing something wrong? Is my attempt to grab these packages futile?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

They are being held backas they are not wholly necessary. The updates held bac in your text is a new kernel. If the kernel you are using is working perfectly then you dont have to worry about installing it. You get far too many idiots who think newer is better, with the kernel this is simply not the case. The kernel gives memory and hardware access, if what you have is doing just that then you have no reason to install it.

They can also be held back due to the fact that the repository maintainers havent put up all the dependancies of a package and installing it will cause issues so they are marked as held back.

If you are dead set on installing it you can do so with:

sudo apt-get dist-upgrade

But the fact of the matter is, you shouldn't ave to do this. If it doesnt come down with apt-get upgrade, or you don't know why you need the upgrade then you probably don't need to worry about it

Revision history for this message
Best Derek White (d-man97) said :
#5

Since you have already tried 'sudo apt-get dist-upgrade'...
If you don't just want to "give up" and have a reason for installing the new kernel, try this:

sudo aptitude dist-upgrade

People have reported it doing a better job than apt-get:
http://ubuntuforums.org/showthread.php?t=228788 [Quite old, but worth a shot.]

Revision history for this message
Derek White (d-man97) said :
#6

P.S. It is valid that the package maintainers have held it back, but no one else seems to have the same problem; so your sources.list might be at fault as well.

Revision history for this message
Robert (rhoffmaniii) said :
#7

The truth is that I am having problems getting my graphics card to work with a few specific programs. Hence the reason for my attempt at using the new kernel. Of course, I've been pounding my head against wall after wall with these programs and checking just about every forum I can think of that might be relevant.

Thank you for the continued assistance. I'm the only person in my circle of associates who's even attempting anything other than Windows, although I've got a few people who are interested. I'm infinitely grateful for your attention.

I'll try the aptitude method.

Revision history for this message
Robert (rhoffmaniii) said :
#8

Okay, aptitude got a bit further than apt-get.
Running aptitude, it said that my existing packages were "broken", and removed each of them, one at a time. Even though I did have to go through this 4 times, it seemed to fix it, as there is no longer the issue of "upgrades" that I can't perform. The packages are still 2.6.28-11, but at least synaptic no longer tells me that an upgrade is available, and then not upgrade it.

I think I've also spotted the reason why I can't get to 2.6.28-13. It needs a package that isn't actually available, yet. So, I'll be satisfied with this solution for now.

Once again, thanks for the help.

Revision history for this message
Robert (rhoffmaniii) said :
#9

Thanks Derek White, that solved my question.

Revision history for this message
Derek White (d-man97) said :
#10

You're welcome!

And, I hope that once the new kernel is fully available to you your problems will go away. Many times, each kernel is built with different options enabled/disabled. If you happen to figure out a specific kernel option is at fault (easier said than done), then you can try building your own kernel from source and setting the option manually.

Good luck to you.