Xubuntu 从 11.10 升级到 12.04 LTS 后软件包损坏

Xubuntu 从 11.10 升级到 12.04 LTS 后软件包损坏

我将 Xubuntu 从 11.10 升级到了 12.04 LTS。升级之后,我注意到ssh没有安装任何内容。我尝试安装它,但出现以下错误:

we@nemesis:~$ sudo apt-get install openssh-client
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openssh-client : Depends: libgssapi-krb5-2 (>= 1.10+dfsg~) but 1.9.1+dfsg-1ubuntu2.2 is to be installed
E: Unable to correct problems, you have held broken packages.

我尝试过 apt-get clean apt-get autoremove apt-get update apt-get upgrade apt-get install -f。但没有任何帮助。

apt-get install dist-upgrade希望我卸载我的 X11:

we@nemesis:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
  xorg xserver-xorg xserver-xorg-input-evdev xserver-xorg-video-all xserver-xorg-video-ati xserver-xorg-video-cirrus
  xserver-xorg-video-fbdev xserver-xorg-video-geode xserver-xorg-video-intel xserver-xorg-video-mach64 xserver-xorg-video-mga
  xserver-xorg-video-neomagic xserver-xorg-video-nouveau xserver-xorg-video-openchrome xserver-xorg-video-qxl xserver-xorg-video-r128
  xserver-xorg-video-radeon xserver-xorg-video-s3 xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sis
  xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-trident xserver-xorg-video-vesa xserver-xorg-video-vmware
  xubuntu-desktop
The following packages have been kept back:
  chromium-browser chromium-browser-l10n firefox firefox-globalmenu glib-networking libnm-glib4 libnm-util2 liborbit2 libsmbclient
  libutouch-geis1 network-manager openjdk-6-jre samba-common-bin simple-scan software-center zeitgeist-core
The following packages will be upgraded:
  xserver-xorg-core xserver-xorg-input-synaptics
2 upgraded, 0 newly installed, 27 to remove and 16 not upgraded.
Need to get 1.747 kB of archives.
After this operation, 8.098 kB disk space will be freed.
Do you want to continue [Y/n]? n

我害怕这样做,因为我不确定之后我是否有能力重新安装 X11。

如何修复这个损坏的包裹?

答案1

好吧,这真是件愚蠢的事情:几周前,我尝试安装下一个版本中的一些软件包,并进行编辑/etc/apt/preferences以将新版本固定precise为最低优先级。

这种固定会阻止apt-get正常安装新版本中的任何新软件包。

相关内容