Errors were encountered while processing:/var/cache/apt/archives/x11-common_6.9.0.dfsg.1-6_all.deb
公司上新系统,使用apt-get dist-upgrade后提示有文件不能正常安装,按照提示使用apt-get -f install,问题照旧:
henry:~# 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 0 not upgraded.
188 not fully installed or removed.
Need to get 0B/1125kB of archives.
After unpacking 1647kB of additional disk space will be used.
Do you want to continue [Y/n]?
Preconfiguring packages ...
(Reading database ... 22828 files and directories currently installed.)
Unpacking x11-common (from .../x11-common_6.9.0.dfsg.1-6_all.deb) ...
dpkg: error processing /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-6_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-6_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
上网查了下,使用下面的方法处理:
henry:~# dpkg -i --force-all /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-6_all.deb