在我的 Debian 系统上,似乎有几个软件包处于奇怪的状态。当我运行升级时,它们总是被安装:
grzes:/home/ga# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed
libffi-dev libxmmsclient4 python-dev python-gobject-dev python-gtk2-dev python-gtk2-doc python2.5-dev xmms2-core
The following packages have been kept back:
glade gnome-bin gpm kmplayer libgnorba27 libgnorbagtk0 lxde yelp
0 upgraded, 8 newly installed, 0 to remove and 8 not upgraded.
Need to get 0B/4616kB of archives.
After this operation, 22.0MB of additional disk space will be used.
但是当我运行 autoremove 时它们会被删除(只能稍后通过 dist-upgrade 安装):
grzes:/home/ga# apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
python-gtk2-dev python-gtk2-doc libxmmsclient4 python-dev python2.5-dev libffi-dev xmms2-core python-gobject-dev
The following packages will be REMOVED
libffi-dev libxmmsclient4 python-dev python-gobject-dev python-gtk2-dev python-gtk2-doc python2.5-dev xmms2-core
0 upgraded, 0 newly installed, 8 to remove and 8 not upgraded.
After this operation, 22.0MB disk space will be freed.
有什么想法可以解决它吗?
编辑 自动移除之前的状态:
grzes:/home/ga# apt-cache policy python2.5-dev
python2.5-dev:
Installed: 2.5.4-1
Candidate: 2.5.4-1
Version table:
*** 2.5.4-1 0
200 ftp://ftp.task.gda.pl testing/main Packages
500 ftp://ftp.task.gda.pl unstable/main Packages
100 /var/lib/dpkg/status
2.5.2-15 0
100 ftp://ftp.task.gda.pl stable/main Packages
grzes:/home/ga# dpkg --get-selections | grep python2.5-dev
python2.5-dev install
自动移除后的状态:
grzes:/home/ga# apt-cache policy python2.5-dev
python2.5-dev:
Installed: (none)
Candidate: 2.5.4-1
Version table:
2.5.4-1 0
200 ftp://ftp.task.gda.pl testing/main Packages
500 ftp://ftp.task.gda.pl unstable/main Packages
2.5.2-15 0
100 ftp://ftp.task.gda.pl stable/main Packages
grzes:/home/ga# dpkg --get-selections | grep python2.5-dev
来源列表
grzes:/home/ga# cat /etc/apt/sources.list
#deb ftp://ftp.icm.edu.pl/pub/Linux/distributions/debian/ testing main contrib non-free
deb ftp://ftp.task.gda.pl/debian/ stable main contrib non-free
deb ftp://ftp.task.gda.pl/debian/ testing main contrib non-free
#UNSTABLE
#deb ftp://ftp.icm.edu.pl/pub/Linux/distributions/debian/ unstable main contrib non-free
deb ftp://ftp.task.gda.pl/debian/ unstable main contrib non-free
#wine
deb http://wine.sourceforge.net/apt/ binary/
#skype
deb http://download.skype.com/linux/repos/debian/ stable non-free
#Unofficial
deb http://ftp.debian-unofficial.org/debian unstable main contrib non-free restricted
#deb http://ftp.debian-unofficial.org/debian testing main contrib non-free restricted
deb http://debian-multimedia.fx-services.com/ unstable main
#Google
deb http://dl.google.com/linux/deb/ stable non-free
#Opera
deb http://deb.opera.com/opera unstable non-free
#Cinerella
#deb http://www.kiberpipa.org/~minmax/cinelerra/builds/sid/ .
优先:
grzes:/home/ga# cat /etc/apt/preferences
Explanation: see http://www.argon.org/~roderick/apt-pinning.html
Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 100
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 200
Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 500
Package: *
Pin: release o=Debian
Pin-Priority: -1
答案1
您尝试过使用吗aptitude
?它具有更好的依赖性处理,并将提供各种解决方案(保留/安装/卸载)。
答案2
尝试看看 apt-get 是否可以修复它
apt-get install -f
答案3
尝试删除它们:
apt-get remove libffi-dev libxmmsclient4 python-dev python-gobject-dev python-gtk2-dev python-gtk2-doc python2.5-dev xmms2-core
如果需要的话,请手动重新安装它们:
apt-get install libffi-dev libxmmsclient4 python-dev python-gobject-dev python-gtk2-dev python-gtk2-doc python2.5-dev xmms2-core
警告:
autoremove
由于您是手动安装的,因此您将错过该功能。- 删除可能会带来严重后果,例如删除您需要的其他软件包。只需列出将要消失的软件包,然后重新安装它们即可。