Package: x11-common Version: 1:7.0.20 Severity: normal The system I am trying to upgrade has third-party packages that installed stuff in /usr/X11R6/bin. Since that caused the upgrade to fail, I have moved everything out of /usr/X11R6/bin and am trying to pick up the peices.
adsdebian:/usr/lib# ln -s ../X11R6/lib/X11 adsdebian:/usr/lib# cd /usr/include/ adsdebian:/usr/include# ln -s ../X11R6/include/X11 adsdebian:/usr/include# cd adsdebian:~# dpkg --configure -a dpkg: dependency problems prevent configuration of xutils-dev: xutils-dev depends on x11-common (>= 1:7.0.0); however: Version of x11-common on system is 6.8.2.dfsg.1-7. dpkg: error processing xutils-dev (--configure): dependency problems - leaving unconfigured Setting up x11-common (6.8.2.dfsg.1-7) ... System startup links for /etc/init.d/x11-common already exist. Setting up X server socket directory /tmp/.X11-unix...done. Setting up ICE socket directory /tmp/.ICE-unix...done. dpkg: dependency problems prevent configuration of xutils: xutils depends on xutils-dev; however: Package xutils-dev is not configured yet. dpkg: error processing xutils (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: xutils-dev xutils adsdebian:~# apt-get install x11-common Reading package lists... Done Building dependency tree... Done Suggested packages: x-window-system-core x-window-system The following packages will be upgraded: x11-common 1 upgraded, 0 newly installed, 0 to remove and 214 not upgraded. 2 not fully installed or removed. Need to get 0B/281kB of archives. After unpacking 922kB disk space will be freed. Preconfiguring packages ... (Reading database ... 21273 files and directories currently installed.) Preparing to replace x11-common 6.8.2.dfsg.1-7 (using .../x11-common_1%3a7.0.20_arm.deb) ... Unpacking replacement x11-common ... dpkg: error processing /var/cache/apt/archives/x11-common_1%3a7.0.20_arm.deb (--unpack): trying to overwrite `/usr/X11R6/bin', which is also in package xcalibrate x11-common postinst warning: /usr/include/X11 symbolic link does not exist Analyzing /usr/include/X11: drwxr-xr-x 12 root root 4096 2006-06-06 14:06 /usr drwxr-xr-x 27 root root 8192 2006-06-07 10:28 /usr/include /usr/include/X11: nonexistent; directory contents of /usr/include/: total 1392 <snip apparently completly useless and long ls -l /usr/include> Searching for overlapping packages... no overlaps found. x11-common postinst error: bad symbolic links on system dpkg: error while cleaning up: subprocess post-installation script returned error exit status 74 Errors were encountered while processing: /var/cache/apt/archives/x11-common_1%3a7.0.20_arm.deb E: Sub-process /usr/bin/dpkg returned an error code (1) Here the postinst is being run in error unwind mode, not configure mode. /usr/include/X11 and /usr/lib/X11 which were the correct symlinks at the start, are removed since dpkg has removed the package (I think), since it aborted upgrading the package because the third-party xcalibrate package still has file overlaps in the dpkg database (though I removed those files from disk). The bug here is that the postinst checks for these symlinks in error unwind mode, instead of only doing it if it's configured, which just breaks the system further. If I remove the third-party package and apt-get install x11-common again, everything is ok. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16-2-686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages x11-common depends on: ii cdebconf [debconf-2.0] 0.102 Debian Configuration Management Sy ii debconf [debconf-2.0] 1.5.1 Debian configuration management sy ii debianutils 2.16.1 Miscellaneous utilities specific t ii lsb-base 3.1-8 Linux Standard Base 3.1 init scrip x11-common recommends no packages. -- debconf information excluded -- see shy jo
signature.asc
Description: Digital signature