所以我有一个 VPS,说实话,我承认,有一次我弄乱了 apt 源和软件包。 :)
现在我正在尝试获取一个干净的系统,几乎完成了,但是我仍然遇到一个小问题:我无法安装该软件包locale
。
我的系统:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.11 (jessie)
Release: 8.11
Codename: jessie
$ uname -r
2.6.32-042stab130.1
问题是:
$ apt-get install locales
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:
locales : Depends: libc-bin (> 2.19) but it is not going to be installed
Depends: debconf (>= 0.5) but it is not going to be installed or
debconf-2.0
E: Unable to correct problems, you have held broken packages.
尽管看起来我已经拥有这些软件包的正确版本:
$ apt-cache policy libc-bin
libc-bin:
Installed: 2.25-6
Candidate: 2.25-6
Version table:
*** 2.25-6 0
100 /var/lib/dpkg/status
2.19-18+deb8u10 0
500 http://ftp.debian.org/debian/ jessie/main amd64 Packages
500 http://security.debian.org/ jessie/updates/main amd64 Packages
$ apt-cache policy debconf
debconf:
Installed: 1.5.56+deb8u1
Candidate: 1.5.56+deb8u1
Version table:
*** 1.5.56+deb8u1 0
500 http://ftp.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
我是不是遗漏了什么?!
编辑:是的,我确实尝试过apt-get clean
,apt-get autoclean
并且apt-get -f install
。它们似乎都执行了,没有任何错误