Debianエラー

apt-getがうまくいかない….

# apt-get update
# apt-get upgrade
# apt-get -f upgrade

→全然うまくいかない….

# apt-get remove x11-common
# apt-get remove libx11-6
# apt-get remove xfree86-common
# apt-get -f install
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
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)

うげー.どうすればいいんだ.

上書き失敗時の処理 おそらくはパッケージに含まれているバグなのでしょうが,testingではいろいろなトラブルが発生します.その中でも,二つのパッケージが同一のディレクトリを提供するというバグがあります.x11-commonをインストールしようとして失敗した以下のメッセージを見てください.

# dpkg -i --force-overwrite /var/cache/apt/archives/x11-common_6.9.0.dfsg.1-6_all.deb
# apt-get install debconf-2.0
# apt-get install debconf
# apt-get install texinfo
# apt-get install gnupg
The following extra packages will be installed:
 libreadline5 libusb-0.1-4 readline-common
Suggested packages:
 gnupg-doc xloadimage hotplug
The following packages will be REMOVED:
 libreadline4
The following NEW packages will be installed:
 gnupg libusb-0.1-4 readline-common
The following packages will be upgraded:
 libreadline5
  • ■Install these packages without verification

KeN's GNU/Linux Diary | 2006/01/07 http://kmuto.jp/d/index.cgi/2006/01/07/

% apt-key list
Last modified: 2006-09-05