precise headless server upgrade failed

Bug #989164 reported by computorist
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I attempted a headless server upgrade from oneiric to precise by

ssh server
screen -RD
sudo do-release-upgrade

I've done this exact set of steps for several releases without issue. This time, I received this output:

Get:362 http://us.archive.ubuntu.com/ubuntu/ precise/main subversion-tools all 1.6.17dfsg-3ubuntu3 [136 kB]
Fetched 141 MB in 6s (160 kB/s)

Upgrading
apport: unrecognized service
Fetched 0 B in 0s (0 B/s)
Exception during pm.DoInstall(): E:Could not perform immediate configuration on 'libjpeg-dev'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)

Could not install the upgrades

The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).

Please report this bug in a browser at
http://bugs.launchpad.net/ubuntu/+source/update-manager/+filebug and
attach the files in /var/log/dist-upgrade/ to the bug report.
E:Could not perform immediate configuration on 'libjpeg-dev'. Please
see man 5 apt.conf under APT::Immediate-Configure for details. (2)

Upgrade complete

The upgrade has completed but there were errors during the upgrade
process.

To continue please press [ENTER]

Tags: dist-upgrade
Revision history for this message
computorist (travis-hume) wrote :
tags: added: dist-upgrade
Revision history for this message
computorist (travis-hume) wrote :

Hmmm, this is log I meant to attach

Revision history for this message
computorist (travis-hume) wrote :

Ok, I was able to work around this by removing libjpeg-dev and trying again.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Gerald Drouillard (gerald-drouillard) wrote :

Same thing for med. To remove:
apt-get remove libjpeg62-dev
It may update/remove a few other packages.
do-release-upgrade
apt-get install libjpeg-dev (if you still need it)

Everything else seems fine.

Revision history for this message
sergio (serge-simon) wrote :

Same error for me.
The "sudo apt-get remove libjpeg62-dev" did the trick.

I still had the
"apport: unrecognized service"
when i launched do-release-upgrade for a second time.

Right now it's still running but seems ok.

Revision history for this message
Jens Maus (jens.maus) wrote :

I am having the same issue here when trying to upgrade a 11.10 system to 12.04 (precise). And the mentioned workaround does not work. as soon as I try to "apt-get remove libjpeg62-dev" I get the following error:

-- cut here --
root@uranus:/etc# sudo apt-get remove libjpeg62-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libjpeg-dev libjpeg-turbo8 libjpeg-turbo8-dev libjpeg8 libjpeg8-dev liblzma5 r-base-core r-base-dev
Suggested packages:
  ess r-doc-info r-doc-pdf r-mathlib r-base-html texlive-fonts-recommended texlive-fonts-extra texinfo texi2html
The following packages will be REMOVED:
  libjpeg62-dev
The following NEW packages will be installed:
  libjpeg-dev libjpeg-turbo8 libjpeg-turbo8-dev libjpeg8-dev liblzma5
The following packages will be upgraded:
  libjpeg8 r-base-core r-base-dev
3 upgraded, 5 newly installed, 1 to remove and 971 not upgraded.
Need to get 0 B/20.6 MB of archives.
After this operation, 1593 kB of additional disk space will be used.
Do you want to continue [Y/n]?
E: Could not perform immediate configuration on 'libjpeg-dev'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
-- cut here --

Revision history for this message
Jens Maus (jens.maus) wrote :

Also an "sudo apt-get -o APT::Immediate-Configure=false remove libjpeg62-dev" does not work and returns the same error. currently I am unable to run continue upgrading the system to 12.04. Any help?

Revision history for this message
Jens Maus (jens.maus) wrote :

Ok. now I did it the hard way by doing a

dpkg --force -r libjpeg62-dev
apt-get -f install

to force an uninstall of libjpeg62-dev via dpkg and afterwards a fix of the dependencies. Afterwards I was able to run "do-release-upgrade" again without seeing that "immediate configuration" error.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.