Eric D. Schabell: Problems with upgrade from Ubuntu Dapper to Edgy (dpkg failure messages)

Thursday, January 18, 2007

Problems with upgrade from Ubuntu Dapper to Edgy (dpkg failure messages)

Thought someone might benifit from my experiences, as to day I upgraded my Dapper box to Edgy.
I started by just editing the /etc/apt/sources.list and changing all dapper entries to edgy.

Then the the following problems started to show up and this is how I fixed them:
# this ran fine.
#
$ sudo aptitude update

# this failed with errors about too many failed dpkg 
# subprocesses and gave me a huge list of failing to 
# configure python-* packages and diverse misc packages.
#
$ sudo aptitude dist-upgrade

# next I tried to fix one of the failing packages:
#
$ sudo dpkg --force-depends --force-overwrite --configure python-imaging
Setting up python-imaging (1.1.5-10build1) ...
pycentral: pycentral pkginstall: already exists: 
/usr/lib/python2.4/site-packages/PIL/__init__.py
pycentral pkginstall: already exists: 
/usr/lib/python2.4/site-packages/PIL/__init__.py
dpkg: error processing python-imaging (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
python-imaging

# the fix is to remove the offending section in site-packages 
# and then rerunning the configure line above.
#
$ sudo rm -rf /usr/lib/python2.4/site-packages/PIL/*
$ sudo dpkg --force-depends --force-overwrite --configure python-imaging
Setting up python-imaging (1.1.5-10build1) ...

# now that worked for all but the acpid package which 
# gave this error message:
#
$ sudo dpkg --force-depends --force-overwrite --configure -a
Setting up acpid (1.0.4-5ubuntu4) ...
* Loading ACPI modules...
...done.
* Starting ACPI services...
invoke-rc.d: initscript acpid, action "start" failed.
dpkg: error processing acpid (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
acpid

# solution:
$ sudo killall acpid
$ sudo dpkg --force-depends --force-overwrite --configure -a
Setting up acpid (1.0.4-5ubuntu4) ...
* Loading ACPI modules...
...done.
* Starting ACPI services...
...done.

# finished off now with a final dist-upgrade and done!

1 comment:

  1. Thanks for this info. This is pretty much the only thing I could find on this besides pastebin dumps. It worked for me... it seems. There was an error on something else but I no longer get errors when using apt-get update, apt-get upgrade, or apt-get dist-upgrade.

    Thank you!

    ReplyDelete

Note: Only a member of this blog may post a comment.