[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt-get install: x11-common vs xfree86-common: "trying to overwrite /etc/X11/Xsession"



will trillich wrote:

> we haven't figured out how to get past this apt-get snag:
> 
> # apt-get install x11-common
> Reading package lists... Done
> Building dependency tree... Done
> Suggested packages:
>   x-window-system-core x-window-system
> The following NEW packages will be installed:
>   x11-common
> 0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded.
> 18 not fully installed or removed.
> Need to get 0B/1124kB of archives.
> After unpacking 1647kB of additional disk space will be used.
> Preconfiguring packages ...
> (Reading database ... 42848 files and directories currently installed.)
> Unpacking x11-common (from .../x11-common_6.9.0.dfsg.1-4_all.deb) ...
> dpkg: error processing
> /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb (--unpack):
>  trying to overwrite `/etc/X11/Xsession', which is also in package
> xfree86-common
> dpkg-deb: subprocess paste killed by signal (Broken pipe)
> Errors were encountered while processing:
>  /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> # apt-get install xfree86-common
> Reading package lists... Done
> Building dependency tree... Done
> xfree86-common is already the newest version.
> You might want to run `apt-get -f install' to correct these:
> The following packages have unmet dependencies:
>   libx11-6: Depends: x11-common (> 4.3.0) but it is not going to be
>   installed xfree86-common: Depends: x11-common 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:
>   x11-common
> Suggested packages:
>   x-window-system-core x-window-system
> The following NEW packages will be installed:
>   x11-common
> 0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded.
> 18 not fully installed or removed.
> Need to get 0B/1124kB of archives.
> After unpacking 1647kB of additional disk space will be used.
> Do you want to continue [Y/n]?
> Preconfiguring packages ...
> (Reading database ... 42848 files and directories currently installed.)
> Unpacking x11-common (from .../x11-common_6.9.0.dfsg.1-4_all.deb) ...
> dpkg: error processing
> /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb (--unpack):
>  trying to overwrite `/etc/X11/Xsession', which is also in package
> xfree86-common
> dpkg-deb: subprocess paste killed by signal (Broken pipe)
> Errors were encountered while processing:
>  /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-4_all.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> ideas?
> 
What happens if you try to remove xfree86-common?  If you can't just remove
it, what happens when you try to remove it and install x11-common at the
same time?

I don't know if you're on Sarge or something else, but if x11-common,
x-window-system-core and x-window-system have a higher priority, then a
dist-upgrade should be able to do the job.  However, that will try to
upgrade everything else, too.  I'd recommend using aptitude's interactive
mode.  Mark x11-common, x-window-system-core and x-window-system for
upgrade, and if it doesn't automatically mark xfree86-common for removal,
do it yourself.  Aptitude won't let you proceed with conflicts, and it will
suggest resolutions, so it should work.

Justin Guerin




Reply to: