包更新错误

包更新错误

我似乎无法安装任何更新。我一直收到以下错误。我该如何解决?

Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.2.0-44-generic linux-headers-3.2.0-44
  linux-image-3.2.0-44-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-server
The following packages will be upgraded:
  linux-server
1 upgraded, 0 newly installed, 0 to remove and 117 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,734 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? dpkg: dependency problems prevent configuration of linux-server:
 linux-server depends on linux-image-server (= 3.2.0.45.54); however:
  Version of linux-image-server on system is 3.2.0.52.62.
 linux-server depends on linux-headers-server (= 3.2.0.45.54); however:
  Version of linux-headers-server on system is 3.2.0.52.62.
dpkg: error processing linux-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-server

答案1

我想你可以试试apt-get -f install linux-server

答案2

你向我们提供了输出,但没有告诉我们具体是什么正在做什么才能产生它,所以对这个问题的任何回答可能都是推测性的。但是,请随意编辑您的问题以提供更多信息。

导致此类问题的一个常见原因是,如果您尝试从终端升级或安装软件,则需要先运行apt-getaptitude,而不是先运行sudo apt-get update(或sudo aptitude update)。

因此,如果您在没有先运行命令的情况下从终端运行upgradedist-upgrade或命令,那么您应该这样做。installupdate

sudo apt-get update

错误消息表明无法安装某个包,因为它依赖于较旧软件包的版本比可用的版本要多。运行sudo apt-get update(或sudo aptitude update)将更新计算机上的信息,包括哪里有哪些软件包可用、哪个版本可用,以及它们依赖哪些软件包/版本。

相关内容