$ apt-get remove xpaint
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
cmatrix-xfont: Depends: xutils (>= 4.0.3) but it is not going to be installed
freenx: Depends: xbase-clients but it is not going to be installed
gdm: Depends: xbase-clients but it is not going to be installed
gsfonts-x11: Depends: xutils (>= 4.1.0-12) but it is not going to be installed
kdelibs4c2: Depends: xbase-clients but it is not going to be installed
lesstif-dev: Depends: libxft-dev but it is not going to be installed
libfontenc1: Depends: x11-common but it is not going to be installed
libfs6: Depends: x11-common but it is not going to be installed
libgksu1.2-0: Depends: xbase-clients but it is not going to be installed
libgksuui1.0-0: Depends: xbase-clients but it is not going to be installed
libqt3-mt-dev: Depends: libxft-dev but it is not going to be installed
libx11-6: Depends: xfree86-common (> 4.3.0) but it is not installable
libxfont1: Depends: x11-common but it is not going to be installed
msttcorefonts: Depends: xutils (>= 4.0.2) but it is not going to be installed
t1-xfree86-nonfree: Depends: xutils (>= 4.0.3) but it is not going to be installed
ttf-arphic-bkai00mp: Depends: xutils (>= 4.0.2) but it is not going to be installed
ttf-arphic-bsmi00lp: Depends: xutils (>= 4.0.2) but it is not going to be installed
ttf-arphic-gbsn00lp: Depends: xutils (>= 4.0.2) but it is not going to be installed
ttf-arphic-gkai00mp: Depends: xutils (>= 4.0.2) but it is not going to be installed
ttf-kochi-gothic: Depends: xutils (>= 4.0.2) but it is not going to be installed
ttf-kochi-mincho: Depends: xutils (>= 4.0.2) but it is not going to be installed
ttf-thryomanes: Depends: xutils (>= 4.0.2) but it is not going to be installed
vncserver: Depends: xbase-clients but it is not going to be installed
Depends: xserver-common but it is not installable
x-ttcidfont-conf: Depends: xutils but it is not going to be installed
x-window-system-core: Depends: xserver-xfree86 but it is not going to be installed
Depends: xbase-clients but it is not going to be installed
Depends: xutils but it is not going to be installed
xaw3dg-dev: Depends: xutils but it is not going to be installed
xfont-nexus: Depends: xbase-clients but it is not going to be installed
xfonts-100dpi: Depends: xutils (> 4.0.3) but it is not going to be installed
xfonts-100dpi-transcoded: Depends: xutils (> 4.0.3) but it is not going to be installed
xfonts-75dpi: Depends: xutils (> 4.0.3) but it is not going to be installed
xfonts-75dpi-transcoded: Depends: xutils (> 4.0.3) but it is not going to be installed
xfonts-artwiz: Depends: xutils (> 4.0.3) but it is not going to be installed
xfonts-base: Depends: xutils (> 4.0.3) but it is not going to be installed
xfonts-biznet-100dpi: Depends: xutils (>= 4.0.2) but it is not going to be installed
xfonts-biznet-75dpi: Depends: xutils (>= 4.0.2) but it is not going to be installed
xfonts-encodings: Depends: x11-common but it is not going to be installed
xfonts-gimpers: Depends: xutils (>= 4.0.2) but it is not going to be installed
xfonts-greek-ph-100dpi: Depends: xfree86-common but it is not installable
Depends: xutils but it is not going to be installed
xfonts-greek-ph-75dpi: Depends: xfree86-common but it is not installable
Depends: xutils but it is not going to be installed
xfonts-greek-ph-scalable: Depends: xfree86-common but it is not installable
Depends: xutils but it is not going to be installed
xfonts-intl-european: Depends: xutils (>= 4.0.3) but it is not going to be installed
xfonts-jmk: Depends: xutils (>= 4.0.2) but it is not going to be installed
xfonts-scalable: Depends: xutils (> 4.0.3) but it is not going to be installed
xfonts-terminus: Depends: xutils (>= 4.0.2-11) but it is not going to be installed
xfonts-utils: Depends: x11-common but it is not going to be installed
xlibs-data: Depends: xbitmaps but it is not going to be installed
Depends: xcursor-themes but it is not going to be installed
Depends: libx11-6 (>= 2:1.0.0-2) but 4.3.0.dfsg.1-10 is to be installed
xprt-common: Depends: xbase-clients but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
$ apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
gcc-4.1-base libcairo2 libcroco3 libdmx1 libgcc1 libgl1-mesa-dev
libgl1-mesa-dri libgl1-mesa-glx libglu1-mesa libgsf-1-114 libgsf-1-common
libpango1.0-0 libpango1.0-common libqt3-compat-headers libqt3-headers
librsvg2-2 librsvg2-common libstdc++6 libx11-6 libx11-data libxau-dev
libxau6 libxml2 libxml2-dev mesa-common-dev vncserver x-dev
x-window-system-core x11-common x11proto-core-dev x11proto-input-dev
x11proto-kb-dev x11proto-record-dev x11proto-xext-dev xbase-clients xbitmaps
xcursor-themes xfonts-100dpi xfonts-75dpi xfonts-base xfonts-nexus
xfonts-scalable xlibmesa-dri xlibmesa-gl-dev xlibmesa-glu xorg xserver-xorg
xserver-xorg-core xserver-xorg-video-apm xserver-xorg-video-ark
xserver-xorg-video-ati xserver-xorg-video-chips xserver-xorg-video-cirrus
xserver-xorg-video-cyrix xserver-xorg-video-dummy xserver-xorg-video-fbdev
xserver-xorg-video-glint xserver-xorg-video-i128 xserver-xorg-video-i740
xserver-xorg-video-i810 xserver-xorg-video-imstt xserver-xorg-video-mga
xserver-xorg-video-newport xserver-xorg-video-nsc xserver-xorg-video-nv
xserver-xorg-video-rendition xserver-xorg-video-s3
xserver-xorg-video-s3virge xserver-xorg-video-savage xserver-xorg-video-sis
xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-tga
xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-v4l
xserver-xorg-video-vesa xserver-xorg-video-vga xserver-xorg-video-via
xserver-xorg-video-vmware xtrans-dev xutils xutils-dev
Suggested packages:
vnc-java mesa-utils xfs xserver libglide3
Recommended packages:
laptop-detect xresprobe mdetect discover1 discover
The following packages will be REMOVED:
lesstif-dev libimlib2-dev libqt3-mt-dev libx11-dev libxaw7-dev
libxcursor-dev libxext-dev libxfixes-dev libxi-dev libxinerama-dev
libxmu-dev libxmuu-dev libxp-dev libxpm-dev libxrandr-dev libxrender-dev
libxt-dev libxtrap-dev libxtst-dev libxv-dev qt3-apps-dev xaw3dg-dev
xfonts-greek-ph-100dpi xfonts-greek-ph-75dpi xfonts-greek-ph-scalable
xlibmesa-gl xlibmesa-glu-dev xlibmesa3 xlibs-dev xlibs-static-dev
xserver-xorg-video-neomagic xserver-xorg-video-siliconmotion
xserver-xorg-video-voodoo
The following NEW packages will be installed:
libdmx1 libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx libglu1-mesa
librsvg2-common libx11-data libxau-dev mesa-common-dev x11-common
x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-record-dev
x11proto-xext-dev xbase-clients xbitmaps xcursor-themes xfonts-nexus xorg
xserver-xorg xserver-xorg-core xserver-xorg-video-apm xserver-xorg-video-ark
xserver-xorg-video-ati xserver-xorg-video-chips xserver-xorg-video-cirrus
xserver-xorg-video-cyrix xserver-xorg-video-dummy xserver-xorg-video-fbdev
xserver-xorg-video-glint xserver-xorg-video-i128 xserver-xorg-video-i740
xserver-xorg-video-i810 xserver-xorg-video-imstt xserver-xorg-video-mga
xserver-xorg-video-newport xserver-xorg-video-nsc xserver-xorg-video-nv
xserver-xorg-video-rendition xserver-xorg-video-s3
xserver-xorg-video-s3virge xserver-xorg-video-savage xserver-xorg-video-sis
xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-tga
xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-v4l
xserver-xorg-video-vesa xserver-xorg-video-vga xserver-xorg-video-via
xserver-xorg-video-vmware xtrans-dev xutils xutils-dev
The following packages will be upgraded:
gcc-4.1-base libcairo2 libcroco3 libgcc1 libgsf-1-114 libgsf-1-common
libpango1.0-0 libpango1.0-common libqt3-compat-headers libqt3-headers
librsvg2-2 libstdc++6 libx11-6 libxau6 libxml2 libxml2-dev vncserver x-dev
x-window-system-core xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable
xlibmesa-dri xlibmesa-gl-dev xlibmesa-glu
26 upgraded, 57 newly installed, 33 to remove and 1507 not upgraded.
39 not fully installed or removed.
Need to get 0B/40.1MB of archives.
After unpacking 15.2MB of additional disk space will be used.
Do you want to continue? [Y/n]
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 194084 files and directories currently installed.)
Unpacking x11-common (from .../x11-common_1%3a7.1.0-3_i386.deb) ...
rmdir: /usr/X11R6/bin: Directory not empty
lqqqqqqqqqqqqqqqqqqqqqqqqu Configuring x11-common tqqqqqqqqqqqqqqqqqqqqqqqqqk
x x
x Cannot remove /usr/X11R6/bin directory x
x x
x This upgrade requires that the /usr/X11R6/bin directory be removed and x
x replaced with a symlink. An attempt was made to do so, but it failed, x
x most likely because the directory is not yet empty. You must move the x
x files that are currently in the directory out of the way so that the x
x installation can complete. If you like, you may move them back after the x
x symlink is in place. x
x x
x This package installation will now fail and exit so that you can do x
x this. Please re-run your upgrade procedure after you have cleaned out x
x the directory. x
x x
x <Ok> x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
dpkg: error processing /var/cache/apt/archives/x11-common_1%3a7.1.0-3_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/x11-common_1%3a7.1.0-3_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)