postrm script fails on hardy -> lucid ugprades

Bug #575077 reported by Michael Vogt on 2010-05-04
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
linux-restricted-modules-envy-2.6.24 (Ubuntu)
Undecided
Unassigned
Lucid
High
Unassigned

Bug Description

On a hardy -> lucid upgrade I got the following error:

Removing nvidia-glx-new-envy ...
dpkg-divert: error checking `/usr/lib/xorg/modules/extensions/libglx.so': No suc
h file or directory
dpkg: error processing nvidia-glx-new-envy (--remove):
 subprocess installed post-removal script returned error exit status 2

This can be easily reproduced in a hardy chroot via:
# apt-get install nvidia-glx-new-envy
# dpkg --force-depends --remove xserver-xorg-core
# dpkg --force-depends --remove nvidia-glx-new-envy
(this is what apt does during the upgrade)

Running with sh -x shows:
+ dpkg-divert --list /usr/lib/xorg/modules/extensions/libglx.so
+ awk { print $7 }
+ [ nvidia-glx-new-envy = nvidia-glx-new-envy ]
+ dpkg-divert --remove --rename --package nvidia-glx-new-envy --divert /usr/lib/nvidia/libglx.so.xserver-xorg-core /usr/lib/xorg/modules/extensions/libglx.so
dpkg-divert: error checking `/usr/lib/xorg/modules/extensions/libglx.so': No such file or directory

Michael Vogt (mvo) wrote :

For the user where this problem happend the system frozen hard a short while later. I don't know if that is releated or not.

Changed in linux-restricted-modules-envy-2.6.24 (Ubuntu Lucid):
status: New → Confirmed
importance: Undecided → High
Michael Vogt (mvo) wrote :

It appears the problem is simply that /usr/lib/xorg/modules/extensions/ is no longer there when xserver-xorg-core is removed and dpkg fails over if the dir is not there.

Michael Vogt (mvo) wrote :

A possible workaround is to add "/usr/lib/xorg/modules/extensions" to e.g. update-manager-core.list before the ugprade starts so that the directory is still around when xserver-xorg-core gets removed.

Johan Boule (johan-boule) wrote :

Are you sure?

At the time the upgrade is "paused" showing the error, i still have a /usr/lib/xorg/modules/extensions dir containing:

-rw-r--r-- 1 root root 18824 2010-06-16 11:39 libdbe.so
-rw-r--r-- 1 root root 14616 2010-06-16 11:39 libdri2.so
-rw-r--r-- 1 root root 43768 2010-06-16 11:39 libdri.so
-rw-r--r-- 1 root root 106096 2010-06-16 11:39 libextmod.so
-rw-r--r-- 1 root root 418032 2010-06-16 11:39 libglx.so
-rw-r--r-- 1 root root 31264 2010-06-16 11:39 librecord.so

These files belong to the xserver-xorg-core package, whose status is: "install ok unpacked".

As a workaround, is there anything to manually clean up after continuing the upgrade?

Changed in linux-restricted-modules-envy-2.6.24 (Ubuntu):
status: New → Confirmed
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in linux-restricted-modules-envy-2.6.24 (Ubuntu Lucid):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers