8.04 update manager stopped working when 9.04 released

Asked by padarjohn

I deferred installing the latest batch of updates for 8.04 because I couldn't afford to reboot the system at that time. Now that I'm at a good point for doing the updates I'm getting:

 ! Not all updates can be installed

 Run a partial upgrade, to install as many updates as possible

 This can be caused by:
  o A previous upgrade which didn't complete
  o Problems with some of the installed software
  o Unofficial software packages not provided by Ubuntu
  o Normal changes of a pre-release version of Ubuntu

When I try to upgrade manually I get:
# 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 openoffice.org openoffice.org-base
  openoffice.org-base-core openoffice.org-calc openoffice.org-common
  openoffice.org-core openoffice.org-draw openoffice.org-filter-binfilter
  openoffice.org-gnome openoffice.org-gtk openoffice.org-impress
  openoffice.org-math openoffice.org-officebean
  openoffice.org-report-builder-bin openoffice.org-style-human
  openoffice.org-writer python-uno uno-libs3 ure
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.

There was also a problem with the PGP key, but I retrieved it and fixed that problem.

This has never been a prblem in the past. The only thing that I can figure is that 9.04 was released recently....

Suggestions?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
padarjohn
Solved:
Last query:
Last reply:
Revision history for this message
padarjohn (john-meissen) said :
#1

Almost forgot....

When I tell Update Manager to go ahead and do the partial upgrade I get

Could not calculate the upgrade

A unresolvable problem occurred while calculating the upgrade

This can be caused by:
* Upgrading to a pre-release version of Ubuntu
* Running the current pre-release version of Ubuntu
* Unofficial software packages not provided by Ubuntu

This is most likely a transient problem, please try again later.

Revision history for this message
Matthew Tompsett (matthewbpt) said :
#2

Try doing the updates through synaptic. Open up 'Synaptic Package Manager' from System > Administration , then click on 'Mark all Upgrades' and click 'Apply'. If that doesn't work try go to 'Edit > Fix Broken Packages'

Revision history for this message
padarjohn (john-meissen) said :
#3

Unfortunately my opportunity to reboot came about because I had to go out of town for a few days. Is there any way to accomplish this from a command line? I can remotely log in, but I don't have a display I can push windows to. If not, I'll try it when I return at the end of the week.

Revision history for this message
Steven Danna (ssd7) said :
#4

You can do this over ssh I believe. You can try the following:

sudo apt-get update
sudo apt-get -f install
sudo apt-get dist-upgrade

Revision history for this message
padarjohn (john-meissen) said :
#5

I don't want to do a dist-upgrade. I don't intend to do that until 2011.

I don't like the idea of using the 'force' option unless I understand the reason for the failure to install without it. Unfortunately, apt-get isn't very forthcoming about such details. All it will tell me is "The following packages have been kept back:", without telling me why.

Revision history for this message
Steven Danna (ssd7) said :
#6

My apologies. I should have explained a bit more.

-f does not mean force. Per the manpage for apt-get:

       -f, --fix-broken
           Fix; attempt to correct a system with broken dependencies in place.
           This option, when used with install/remove, can omit any packages
           to permit APT to deduce a likely solution. Any Package that are
           specified must completely correct the problem. The option is
           sometimes necessary when running APT for the first time; APT itself
           does not allow broken package dependencies to exist on a system. It
           is possible that a system´s dependency structure can be so corrupt
           as to require manual intervention (which usually means using
           dselect(8) or dpkg --remove to eliminate some of the offending
           packages). Use of this option together with -m may produce an error
           in some situations. Configuration Item: APT::Get::Fix-Broken.

Also, apt-get dist-upgrade is not the same as do-release-upgrade. dist-upgrade will only have the effect of upgrading you to a new distribution if your /etc/apt/sources.list is set up to use the 9.04 repos. If your sources.list file is set up to use 8.04, dist-upgrade just deals with situations in which an upgrading package has new dependencies that need to be resolved. From the man page:

     dist-upgrade
           dist-upgrade in addition to performing the function of upgrade,
           also intelligently handles changing dependencies with new versions
           of packages; apt-get has a "smart" conflict resolution system, and
           it will attempt to upgrade the most important packages at the
           expense of less important ones if necessary. So, dist-upgrade
           command may remove some packages. The /etc/apt/sources.list file
           contains a list of locations from which to retrieve desired package
           files. See also apt_preferences(5) for a mechanism for overriding
           the general settings for individual packages.

Also, the apt-get dist-upgrade will tell you exactly what is going to change and ask you to confirm it before you proceed so you would be able to approve any changes that occur.

Revision history for this message
padarjohn (john-meissen) said :
#7

Doh! You're right, thanks. I had mentally translated the --force-yes to -f, even though I had already earlier used the -f option to see if it would fix anything.

If there are dependency issues that require the dist-upgrade it would be nice if it would tell you. One would expect that the dependencies should be handled automatically, unless there's a conflict. In which case it should report the conflict.

I don't understand why the kernel update is being kept back.

Thanks.