Bug#375670: messings with /usr/bin/X11 and /usr/X11R6/bin are insane
Package: x11-common
Version: 7.0.22
anarres# dpkg -i pool/main/x/xorg/xserver-xorg_7.0.22_all.deb
dpkg: regarding .../xserver-xorg_7.0.22_all.deb containing xserver-xorg, pre-dependency problem:
xserver-xorg pre-depends on x11-common (>= 7.0.0-0ubuntu3)
x11-common is installed, but is version 6.9.0.dfsg.1-6.
dpkg: error processing pool/main/x/xorg/xserver-xorg_7.0.22_all.deb (--install):
pre-dependency problem - not installing xserver-xorg
Errors were encountered while processing:
pool/main/x/xorg/xserver-xorg_7.0.22_all.deb
anarres# dpkg -l x11-common xserver-xorg
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii x11-common 6.9.0.dfsg.1-6 X Window System (X.Org) infrastructure
ii xserver-xorg 6.9.0.dfsg.1-6 the X.Org X server
anarres# dpkg -i pool/main/x/xorg/xserver-xorg_7.0.22_all.deb
dpkg: regarding .../xserver-xorg_7.0.22_all.deb containing xserver-xorg, pre-dependency problem:
xserver-xorg pre-depends on x11-common (>= 7.0.0-0ubuntu3)
x11-common is installed, but is version 6.9.0.dfsg.1-6.
dpkg: error processing pool/main/x/xorg/xserver-xorg_7.0.22_all.deb (--install):
pre-dependency problem - not installing xserver-xorg
Errors were encountered while processing:
pool/main/x/xorg/xserver-xorg_7.0.22_all.deb
anarres# dpkg -i pool/main/x/xorg/x11-common_7.0.22_i386.deb
dpkg: considering removing xserver-common in favour of x11-common ...
dpkg: no, cannot remove xserver-common (--auto-deconfigure will help):
xnest depends on xserver-common
xserver-common is to be removed.
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xserver-common
xserver-common (version 6.9.0.dfsg.1-6) is installed.
dpkg: error processing pool/main/x/xorg/x11-common_7.0.22_i386.deb (--install):
conflicting packages - not installing x11-common
Errors were encountered while processing:
pool/main/x/xorg/x11-common_7.0.22_i386.deb
anarres# dpkg -i --force-conflicts pool/main/x/xorg/x11-common_7.0.22_i386.deb
dpkg: considering removing xserver-common in favour of x11-common ...
dpkg: no, cannot remove xserver-common (--auto-deconfigure will help):
xnest depends on xserver-common
xserver-common is to be removed.
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xserver-common
xserver-common (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xserver-xorg (<< 1:7.0.12)
xserver-xorg (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xbase-clients (<< 1:7.0)
xbase-clients (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xdm (<= 1:1.0.1-6)
xdm (version 1:1.0.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xfs (<< 1:1.0)
xfs (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xutils (<< 1:7.0)
xutils (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with ctwm (<= 3.7-2)
ctwm (version 3.7-2) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with fte-xwindow (<= 0.50.0-1.3)
fte-xwindow (version 0.50.0-1.3) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with fvwm95 (<= 2.0.43ba-23+b1)
fvwm95 (version 2.0.43ba-23+b1) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with pixmap (<= 2.6pl4-14.1)
pixmap (version 2.6pl4-14.1) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with vtwm (<= 5.4.7-2)
vtwm (version 5.4.7-2) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xcal (<= 4.1-18.2)
xcal (version 4.1-18.2) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xfaces (<= 3.3-25)
xfaces (version 3.3-25) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xinput (<= 1.2-5.2)
xinput (version 1.2-5.2) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xmix (<= 2.1-5)
xmix (version 2.1-5) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xprint (<= 1:0.1.0.alpha1-13)
xprint (version 1:0.1.0.alpha1-13) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xview-clients (<= 3.2p1.4-21)
xview-clients (version 3.2p1.4-21) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xviewg (<= 3.2p1.4-21)
xviewg (version 3.2p1.4-21) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xearth (<= 1.1-10.2)
xearth (version 1.1-10.1) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xnest (<< 1:1.0)
xnest (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xmh (<= 6.8.2.dfsg.1-4)
xmh (version 4.3.0.dfsg.1-14) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xext
xext (version 3.3.6-44) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xpaste
xpaste (version 1.1-15) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
(Reading database ... 151155 files and directories currently installed.)
Preparing to replace x11-common 6.9.0.dfsg.1-6 (using .../x11-common_7.0.22_i386.deb) ...
Configuring x11-common
----------------------
Major possible upgrade issues
Some users have reported that upon upgrade to the current package set, their
xserver package was no longer installed. Because there is no easy way around
this problem, you should be sure to check that the xserver-xorg package is
installed after upgrade. If it is not installed and you require it, it is
recommended that you install the xorg package to make sure you have a fully
functional X setup.
rmdir: /usr/X11R6/bin: Directory not empty
Cannot remove /usr/X11R6/bin directory
This upgrade requires that the /usr/X11R6/bin directory be removed and replaced
with a symlink. An attempt was made to do so, but it failed, most likely because
the directory is not yet empty. You must move the files that are currently in
the directory out of the way so that the installation can complete. If you like,
you may move them back after the symlink is in place.
This package installation will now fail and exit so that you can do this. Please
re-run your upgrade procedure after you have cleaned out the directory.
dpkg: error processing pool/main/x/xorg/x11-common_7.0.22_i386.deb (--install):
subprocess pre-installation script returned error exit status 1
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.
Errors were encountered while processing:
pool/main/x/xorg/x11-common_7.0.22_i386.deb
anarres# ls /usr/X11R6/bin/
X makedepend xcal xlsclients
XF86_Mach64 makeg xcal_cal xlsfonts
XF86_SVGA makestrs xcalc xmag
XSuSE_Mach64 mergelib xcalev xman
Xmark mkcfm xcalpr xmessage
Xnest mkdirhier xclipboard xmh
Xorg mkfontdir xclock xmix
Xprt mkfontscale xcmsdb xmkmf
appres mkhtmlindex xconsole xmodmap
atobm mmapr xcursorgen xmore
bdftopcf mmapw xcutsel xon
bdftruncate netscape-remote xdbedizzy xorgcfg
beforelight oclock xditview xorgconfig
bitmap owplaces xdpr xpaste
bmtoa pcitweak xdpyinfo xphelloworld
capitalize pclcomp xdriinfo xplsprinters
ccmakedep pixmap xearth xpr
cleanlinks props xedit xprehashprinterlist
clock proxymngr xev xprop
cmdtool pscal xeyes xpsimplehelloworld
ctwm reconfig xf86config-v3 xpxthelloworld
cxpm remove_brackets xfaces xrandr
dga revpath xfd xrdb
editres rstart xfindproxy xrefresh
fslsfonts rstartd xfontsel xset
fstobdf rstartd.real xfs xsetmode
fvwm95 sessreg xfsinfo xsetpointer
gccmakedep setxkbmap xfte xsetroot
getconfig shelltool xfwp xsm
getconfig.pl shift_lines xgamma xstdcmap
glxgears showfont xgc xtrapchar
glxinfo showrgb xhost xtrapin
gtf smproxy xinit xtrapinfo
gwm startx xinput xtrapout
iceauth sxpm xkbbell xtrapproto
ico textedit xkbcomp xtrapreset
imake ucs2any xkbevd xtrapstats
insert_brackets viewres xkbprint xvidtune
ioport vtwm xkbvleds xvinfo
joycal x11perf xkbwatch xwd
lbxproxy x11perfcomp xkill xwininfo
listres xauth xload xwud
lndir xauth_switch_to_sun-des-1 xlogo
luit xbiff xlsatoms
anarres# ls /usr/bin/X11
X makedepend xcal xlsclients
XF86_Mach64 makeg xcal_cal xlsfonts
XF86_SVGA makestrs xcalc xmag
XSuSE_Mach64 mergelib xcalev xman
Xmark mkcfm xcalpr xmessage
Xnest mkdirhier xclipboard xmh
Xorg mkfontdir xclock xmix
Xprt mkfontscale xcmsdb xmkmf
appres mkhtmlindex xconsole xmodmap
atobm mmapr xcursorgen xmore
bdftopcf mmapw xcutsel xon
bdftruncate netscape-remote xdbedizzy xorgcfg
beforelight oclock xditview xorgconfig
bitmap owplaces xdpr xpaste
bmtoa pcitweak xdpyinfo xphelloworld
capitalize pclcomp xdriinfo xplsprinters
ccmakedep pixmap xearth xpr
cleanlinks props xedit xprehashprinterlist
clock proxymngr xev xprop
cmdtool pscal xeyes xpsimplehelloworld
ctwm reconfig xf86config-v3 xpxthelloworld
cxpm remove_brackets xfaces xrandr
dga revpath xfd xrdb
editres rstart xfindproxy xrefresh
fslsfonts rstartd xfontsel xset
fstobdf rstartd.real xfs xsetmode
fvwm95 sessreg xfsinfo xsetpointer
gccmakedep setxkbmap xfte xsetroot
getconfig shelltool xfwp xsm
getconfig.pl shift_lines xgamma xstdcmap
glxgears showfont xgc xtrapchar
glxinfo showrgb xhost xtrapin
gtf smproxy xinit xtrapinfo
gwm startx xinput xtrapout
iceauth sxpm xkbbell xtrapproto
ico textedit xkbcomp xtrapreset
imake ucs2any xkbevd xtrapstats
insert_brackets viewres xkbprint xvidtune
ioport vtwm xkbvleds xvinfo
joycal x11perf xkbwatch xwd
lbxproxy x11perfcomp xkill xwininfo
listres xauth xload xwud
lndir xauth_switch_to_sun-des-1 xlogo
luit xbiff xlsatoms
anarres# ls -ald /usr/bin/X11 /usr/X11R6/bin
drwxr-xr-x 2 root root 8192 May 10 17:50 /usr/X11R6/bin
lrwxrwxrwx 1 root root 12 May 10 16:35 /usr/bin/X11 -> ../X11R6/bin
anarres#
I guessed at what it was trying to do:
anarres# rm /usr/bin/X11
anarres# mv /usr/X11R6/bin /usr/bin/X11
anarres# cd /usr/X11R6
anarres# ln -s ../bin/X11 bin
anarres# dpkg -i --force-conflicts pool/main/x/xorg/x11-common_7.0.22_i386.deb
dpkg: considering removing xserver-common in favour of x11-common ...
dpkg: no, cannot remove xserver-common (--auto-deconfigure will help):
xnest depends on xserver-common
xserver-common is to be removed.
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xserver-common
xserver-common (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xserver-xorg (<< 1:7.0.12)
xserver-xorg (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xbase-clients (<< 1:7.0)
xbase-clients (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xdm (<= 1:1.0.1-6)
xdm (version 1:1.0.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xfs (<< 1:1.0)
xfs (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xutils (<< 1:7.0)
xutils (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with ctwm (<= 3.7-2)
ctwm (version 3.7-2) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with fte-xwindow (<= 0.50.0-1.3)
fte-xwindow (version 0.50.0-1.3) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with fvwm95 (<= 2.0.43ba-23+b1)
fvwm95 (version 2.0.43ba-23+b1) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with pixmap (<= 2.6pl4-14.1)
pixmap (version 2.6pl4-14.1) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with vtwm (<= 5.4.7-2)
vtwm (version 5.4.7-2) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xcal (<= 4.1-18.2)
xcal (version 4.1-18.2) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xfaces (<= 3.3-25)
xfaces (version 3.3-25) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xinput (<= 1.2-5.2)
xinput (version 1.2-5.2) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xmix (<= 2.1-5)
xmix (version 2.1-5) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xprint (<= 1:0.1.0.alpha1-13)
xprint (version 1:0.1.0.alpha1-13) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xview-clients (<= 3.2p1.4-21)
xview-clients (version 3.2p1.4-21) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xviewg (<= 3.2p1.4-21)
xviewg (version 3.2p1.4-21) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xearth (<= 1.1-10.2)
xearth (version 1.1-10.1) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xnest (<< 1:1.0)
xnest (version 6.9.0.dfsg.1-6) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xmh (<= 6.8.2.dfsg.1-4)
xmh (version 4.3.0.dfsg.1-14) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xext
xext (version 3.3.6-44) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
dpkg: regarding .../x11-common_7.0.22_i386.deb containing x11-common:
x11-common conflicts with xpaste
xpaste (version 1.1-15) is installed.
dpkg: warning - ignoring conflict, may proceed anyway !
(Reading database ... 151155 files and directories currently installed.)
Preparing to replace x11-common 6.9.0.dfsg.1-6 (using .../x11-common_7.0.22_i386.deb) ...
Document `debian-x-faq' is not installed, cannot remove.
Unpacking replacement x11-common ...
Replacing files in old package xserver-common ...
dpkg: error processing pool/main/x/xorg/x11-common_7.0.22_i386.deb (--install):
trying to overwrite `/usr/X11R6/bin', which is also in package gwm
x11-common postinst warning: /usr/bin/X11 is not a symbolic link
Analyzing /usr/bin/X11:
drwxr-xr-x 20 root root 4096 May 10 17:31 /usr
drwxr-xr-x 4 root root 57344 Jun 27 15:12 /usr/bin
drwxr-xr-x 2 root root 8192 Jun 27 15:12 /usr/bin/X11
Searching for overlapping packages...
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
pool/main/x/xorg/x11-common_7.0.22_i386.deb
anarres# ls -al /usr/X11R6/bin
lrwxrwxrwx 1 root root 10 Jun 27 15:12 /usr/X11R6/bin -> ../bin/X11
anarres# ls -ald /usr/bin/X11 /usr/X11R6/bin
lrwxrwxrwx 1 root root 10 Jun 27 15:12 /usr/X11R6/bin -> ../bin/X11
drwxr-xr-x 2 root root 8192 Jun 27 15:12 /usr/bin/X11
anarres#
So now I'm just confused.
Note:
anarres# dpkg --configure x11-common
Setting up x11-common (6.9.0.dfsg.1-6) ...
x11-common postinst warning: /usr/bin/X11 is not a symbolic link
Analyzing /usr/bin/X11:
drwxr-xr-x 20 root root 4096 May 10 17:31 /usr
drwxr-xr-x 4 root root 57344 Jun 27 15:12 /usr/bin
drwxr-xr-x 2 root root 8192 Jun 27 15:12 /usr/bin/X11
Searching for overlapping packages...
dpkg: error processing x11-common (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
x11-common
anarres#
Complete lack of error message.
Also I note that the postinst is grobbling around in
/var/lib/dpkg/info !
Ian.
Reply to: