dpkg-divert: rename involves overwriting `/usr/lib/xorg/modules/libwfb.so' with different file `/usr/lib/nvidia/libwfb.so.xserver-xorg-core'

Bug #291916 reported by Luke Boland
256
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux-restricted-modules-2.6.24 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: update-manager

Error occurred during upgrade from Hardy to Intrepid stable from web repos using Synaptic

ProblemType: Package
Architecture: amd64
DistroRelease: Ubuntu 8.10
ErrorMessage: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1)

NonfreeKernelModules: nvidia
Package: update-manager 1:0.93.32
PackageArchitecture: all
SourcePackage: update-manager
Title: package update-manager 1:0.93.32 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1)
Uname: Linux 2.6.24-21-generic x86_64

Revision history for this message
Luke Boland (magilla) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report.

From your log files you've got a transfer failure:
Failed to fetch http://au.archive.ubuntu.com/ubuntu/pool/universe/x/xmms2/xmms2-plugin-ices_0.5DrLecter-2ubuntu1_amd64.deb Unable to connect to au.archive.ubuntu.com http: [IP: 91.189.88.31 80]

and there has been errors for the following packages:
nvidia-glx
/var/cache/apt/archives/base-passwd_3.5.18_amd64.deb
/var/cache/apt/archives/cpp-4.3_4.3.2-1ubuntu11_amd64.deb
/var/cache/apt/archives/cpp_4%3a4.3.1-1ubuntu2_amd64.deb
/var/cache/apt/archives/libattr1_1%3a2.4.41-1_amd64.deb
/var/cache/apt/archives/libdrm2_2.3.1-0build1_amd64.deb
/var/cache/apt/archives/libfontenc1_1%3a1.0.4-3_amd64.deb
/var/cache/apt/archives/libgmp3c2_2%3a4.2.2+dfsg-3ubuntu1_amd64.deb
/var/cache/apt/archives/libgnome-keyring0_2.24.1-0ubuntu1_amd64.deb
/var/cache/apt/archives/libgnomeui-0_2.24.0-0ubuntu1_amd64.deb
/var/cache/apt/archives/libgnomeui-common_2.24.0-0ubuntu1_all.deb
/var/cache/apt/archives/libgnomevfs2-0_1%3a2.24.0-0ubuntu1_amd64.deb
/var/cache/apt/archives/libgnomevfs2-common_1%3a2.24.0-0ubuntu1_all.deb
/var/cache/apt/archives/libgnomevfs2-extra_1%3a2.24.0-0ubuntu1_amd64.deb
/var/cache/apt/archives/libhal1_0.5.11-4ubuntu4_amd64.deb
/var/cache/apt/archives/libmpfr1ldbl_2.3.2.dfsg.1-1ubuntu1_amd64.deb
/var/cache/apt/archives/libpciaccess0_0.10.3-1_amd64.deb
/var/cache/apt/archives/libsm6_2%3a1.0.3-2_amd64.deb
/var/cache/apt/archives/libsmbclient_2%3a3.2.3-1ubuntu3_amd64.deb
/var/cache/apt/archives/libtalloc1_1.2.0~git20080616-1_amd64.deb
/var/cache/apt/archives/libwbclient0_2%3a3.2.3-1ubuntu3_amd64.deb
/var/cache/apt/archives/libxaw7_2%3a1.0.4-2_amd64.deb
/var/cache/apt/archives/libxfont1_1%3a1.3.3-1ubuntu1_amd64.deb
/var/cache/apt/archives/libxkbfile1_1%3a1.0.5-1_amd64.deb
/var/cache/apt/archives/mawk_1.3.3-11.1ubuntu1_amd64.deb
/var/cache/apt/archives/module-init-tools_3.3-pre11-4ubuntu16_amd64.deb
/var/cache/apt/archives/nvidia-glx-177_177.80-0ubuntu2_amd64.deb
/var/cache/apt/archives/shared-mime-info_0.51-0ubuntu1_amd64.deb
/var/cache/apt/archives/x11-xkb-utils_7.4+1_amd64.deb
/var/cache/apt/archives/xkb-data_1.3-2ubuntu4_all.deb
/var/cache/apt/archives/xserver-common_2%3a1.5.2-2ubuntu3_all.deb
/var/cache/apt/archives/xserver-xorg-core_2%3a1.5.2-2ubuntu3_amd64.deb
/var/cache/apt/archives/xserver-xorg-input-all_1%3a7.4~5ubuntu3_amd64.deb
/var/cache/apt/archives/xserver-xorg-video-mach64_6.8.0-1build2_amd64.deb
/var/cache/apt/archives/xserver-xorg-video-r128_6.8.0-1ubuntu2_amd64.deb
/var/cache/apt/archives/xserver-xorg-video-radeon_1%3a6.9.0+git20081003.f9826a56-0ubuntu2_amd64.deb

The error for all of these package is 'subprocess post-removal script returned error exit status 2'
It's likely the same root cause. I'm marking you other reports as duplicates of this one before further investigation.

Revision history for this message
Michael Vogt (mvo) wrote :

Here is what is causing the error:

Removing nvidia-glx ...
dpkg-divert: rename involves overwriting `/usr/lib/xorg/modules/libwfb.so' with
  different file `/usr/lib/nvidia/libwfb.so.xserver-xorg-core', not allowed
dpkg: error processing nvidia-glx (--remove):
 subprocess post-removal script returned error exit status 2

I suspect the subsequent errors are from the nvidia failure:

dpkg: yes, will remove nvidia-glx in favour of xserver-xorg-core.
Preparing to replace xserver-xorg-core 2:1.4.1~git20080131-1ubuntu9.2 (using .../xserver-xorg-core_2%3a1.5.2-2ubuntu3_amd64.deb) ...
/xserver-xorg-video-openchrome_1%3a0.2.903-0ubuntu3_amd64.deb) ...
Unpacking replacement xserver-xorg-core ...
dpkg: warning - unable to delete old directory `/etc/X11/xserver': Directory not empty
dpkg-divert: rename involves overwriting `/usr/lib/xorg/modules/libwfb.so' with
  different file `/usr/lib/nvidia/libwfb.so.xserver-xorg-core', not allowed
dpkg: error processing /var/cache/apt/archives/xserver-xorg-core_2%3a1.5.2-2ubuntu3_amd64.deb (--unpack):
 subprocess post-removal script returned error exit status 2

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Could you please provide the output of the following commands:
ls -l /usr/lib/nvidia /usr/lib/xorg/modules
dpkg-divert --list

Thanks.

Changed in linux-restricted-modules-2.6.24:
status: New → Incomplete
Revision history for this message
Mario Santoro (santoro-ma) wrote : Re: [Bug 291916] Re: package update-manager 1:0.93.32 failed to install/upgrade: ErrorMessage: SystemError in cache.commit(): E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1), E:Sub-process /usr/bin/dpkg returned an error code (1)

This are the outputs

>ls -l /usr/lib/nvidia /usr/lib/xorg/modules

ls: impossibile accedere a /usr/lib/nvidia: Nessun file o directory
/usr/lib/xorg/modules:
totale 2060
drwxr-xr-x 2 root root 4096 2008-11-03 12:30 drivers
drwxr-xr-x 2 root root 4096 2008-11-03 12:30 extensions
drwxr-xr-x 2 root root 4096 2008-11-03 12:30 fonts
drwxr-xr-x 2 root root 4096 2008-11-03 12:30 input
-rw-r--r-- 1 root root 140956 2008-10-24 10:06 libafb.so
-rw-r--r-- 1 root root 104496 2008-10-24 10:06 libcfb32.so
-rw-r--r-- 1 root root 287368 2008-10-24 10:06 libcfb.so
-rw-r--r-- 1 root root 55052 2008-10-24 10:06 libexa.so
-rw-r--r-- 1 root root 149540 2008-10-24 10:06 libfb.so
-rw-r--r-- 1 root root 134840 2008-10-24 10:06 libint10.so
-rw-r--r-- 1 root root 126728 2008-10-24 10:06 libmfb.so
-rw-r--r-- 1 root root 26100 2008-10-24 10:06 libshadowfb.so
-rw-r--r-- 1 root root 21904 2008-10-24 10:06 libshadow.so
-rw-r--r-- 1 root root 21980 2008-10-24 10:06 libvbe.so
-rw-r--r-- 1 root root 22696 2008-10-24 10:06 libvgahw.so
-rw-r--r-- 1 root root 186404 2008-10-24 10:06 libwfb.so
-rw-r--r-- 1 root root 337116 2008-10-24 10:06 libxaa.so
-rw-r--r-- 1 root root 151340 2008-10-24 10:06 libxf1bpp.so
-rw-r--r-- 1 root root 87680 2008-10-24 10:06 libxf4bpp.so
-rw-r--r-- 1 root root 5452 2008-10-24 10:06 libxf8_16bpp.so
-rw-r--r-- 1 root root 142932 2008-10-24 10:06 libxf8_32bpp.so
drwxr-xr-x 2 root root 4096 2008-11-03 12:30 linux
drwxr-xr-x 2 root root 4096 2008-11-03 12:30 multimedia

>dpkg-divert --list

diversion of /bin/sh to /bin/sh.distrib by dash
diversion of /usr/share/man/man1/sh.1.gz
to /usr/share/man/man1/sh.distrib.1.gz by dash
diversion of /usr/share/dict/words
to /usr/share/dict/words.pre-dictionaries-common by dictionaries-common
diversion of /usr/lib/kde4/libexec/kdesu
to /usr/lib/kde4/libexec/kdesu.distrib by kdesudo

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Mario, I don't know what your issue is but it's probably not this report because you don't have neither the nvidia package installed nor the xorg module causing the dpkg-divert failure.

Revision history for this message
Frode Tennebø (frode-tennebo) wrote :
Download full text (3.7 KiB)

Jean-Baptiste,

I had the exact same behaviour and I have very similar output:

ft@vader:~/bin$ dpkg-divert --list
diversion of /bin/sh to /bin/sh.distrib by dash
diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash
diversion of /usr/lib/libGL.so.1.2 to /usr/lib/fglrx/libGL.so.1.2.xlibmesa by xorg-driver-fglrx
diversion of /usr/lib/xorg/modules/extensions/libdri.so to /usr/lib/fglrx/libdri.so.xlibmesa by xorg-driver-fglrx
diversion of /usr/lib/xorg/modules/extensions/libglx.so to /usr/lib/fglrx/libglx.so.xlibmesa by xorg-driver-fglrx
diversion of /usr/share/dict/words to /usr/share/dict/words.pre-dictionaries-common by dictionaries-common
ft@vader:~/bin$ ls -l /usr/lib/nvidia /usr/lib/xorg/modules
ls: cannot access /usr/lib/nvidia: No such file or directory
/usr/lib/xorg/modules:
total 9372
-rw-r--r-- 1 root root 740584 2008-10-24 08:12 amdxmm.so
drwxr-xr-x 2 root root 4096 2008-11-02 11:51 drivers
drwxr-xr-x 2 root root 4096 2008-11-02 11:51 extensions
drwxr-xr-x 2 root root 4096 2008-11-02 11:51 fonts
-rw-r--r-- 1 root root 6729340 2008-10-24 08:12 glesx.so
drwxr-xr-x 2 root root 4096 2008-11-02 11:50 input
-rw-r--r-- 1 root root 140956 2008-10-24 10:06 libafb.so
-rw-r--r-- 1 root root 104496 2008-10-24 10:06 libcfb32.so
-rw-r--r-- 1 root root 287368 2008-10-24 10:06 libcfb.so
-rw-r--r-- 1 root root 55052 2008-10-24 10:06 libexa.so
-rw-r--r-- 1 root root 149540 2008-10-24 10:06 libfb.so
lrwxrwxrwx 1 root root 19 2008-11-02 12:12 libglide2x.so -> ../../libglide.so.2
-rw-r--r-- 1 root root 134840 2008-10-24 10:06 libint10.so
-rw-r--r-- 1 root root 126728 2008-10-24 10:06 libmfb.so
-rw-r--r-- 1 root root 26100 2008-10-24 10:06 libshadowfb.so
-rw-r--r-- 1 root root 21904 2008-10-24 10:06 libshadow.so
-rw-r--r-- 1 root root 21980 2008-10-24 10:06 libvbe.so
-rw-r--r-- 1 root root 22696 2008-10-24 10:06 libvgahw.so
-rw-r--r-- 1 root root 186404 2008-10-24 10:06 libwfb.so
-rw-r--r-- 1 root root 337116 2008-10-24 10:06 libxaa.so ...

Read more...

Revision history for this message
Luke Boland (magilla) wrote :

Jean-Baptiste Lallement: did you want my output from ls -l /usr/lib/nvidia /usr/lib/xorg/modules & dpkg-divert --list as well, or just Marios?

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

@Luke, yes please attach it to this report. Thank you in advance.

Revision history for this message
Luke Boland (magilla) wrote :

Here you go.

Revision history for this message
Luke Boland (magilla) wrote :

Only 1 attachment per post :/

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Changed in linux-restricted-modules-2.6.24:
status: Incomplete → Triaged
Bryce Harrington (bryce)
tags: added: intrepid
Revision history for this message
bugbot (bugbot) wrote : linux-restricted-modules-2.6.24 is obsolete

Thank you for reporting this issue about a driver from the
linux-restricted-modules package. lrm-2.4.24 was shipped with Ubuntu
8.04 which reached end-of-life for desktop support on May 12th, 2011.

For that reason, this bug report is being closed at this time. I'm
marking it wontfix because what you describe is probably a valid issue,
but there are no plans to work on lrm 2.4.24 bugs further.

The issue may be resolved in a newer version. If not, aside from filing
a new bug report, another angle may be to file it directly with the
driver vendor.

Changed in linux-restricted-modules-2.6.24 (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.