为什么我在使用debian时无法安装软件包?


1

有很多混乱的依赖。我该如何解决这个问题?

It produces the following output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libjpeg62-dev' instead of 'libjpeg-dev'
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:

以下包具有未满足的依赖项:

 libkrb5-dev : Depends: krb5-multidev (= 1.8.3+dfsg-4squeeze6) but it is not going to be installed
 libnspr4-dev : Depends: libnspr4-0d (>= 4.8.6) but it is not going to be installed
                Depends: libnspr4-0d (<= 4.8.6-1.1~) but it is not going to be installed
 libnss3-dev : Depends: libnss3-1d (= 3.12.8-1+squeeze5) but it is not going to be installed
 libpcre3-dbg : Depends: libpcre3 (= 8.02-1.1) but 1:8.30-5 is to be installed
 rpm : Depends: libnss3-1d (>= 3.12.0~1.9b1) but it is not going to be installed
       Depends: librpm1 (>= 4.8.0) but it is not going to be installed
       Depends: librpmbuild1 (>= 4.8.0) but it is not going to be installed
       Depends: librpmio1 (>= 4.8.0) but it is not going to be installed
       Depends: rpm2cpio but it is not going to be installed
E: Broken packages

You will have to install the above packages yourself.

root@lab:/home/mirror0/chrome/g/chrome_g#

root @ lab:/ home / mirror0 / chrome / g / chrome_g#apt-get install krb5-multidev

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:
 krb5-multidev : Depends: libkrb5-3 (= 1.8.3+dfsg-4squeeze6) but 1.10.1+dfsg-2 is to be installed
                 Depends: libk5crypto3 (= 1.8.3+dfsg-4squeeze6) but 1.10.1+dfsg-2 is to be installed
                 Depends: libgssapi-krb5-2 (= 1.8.3+dfsg-4squeeze6) but 1.10.1+dfsg-2 is to be installed
E: Broken packages

root @ lab:/ home / mirror0 / chrome / g / chrome_g#apt-get install libgssapi-krb5-2

也失败了:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libkrb5-3 libkrb5support0
Suggested packages:
  krb5-doc krb5-user
The following packages will be REMOVED:
  libgssglue1 librpcsecgss3 nfs-common
The following packages will be upgraded:
  libgssapi-krb5-2 libkrb5-3 libkrb5support0
3 upgraded, 0 newly installed, 3 to remove and 17 not upgraded.
E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/cache/apt/archives/

即使有天赋,我也无法安装krb5-multidev

aptitude install krb5-multidev
The following NEW packages will be installed:
  comerr-dev{a} krb5-multidev{b}
0 packages upgraded, 2 newly installed, 0 to remove and 20 not upgraded.
Need to get 146 kB of archives. After unpacking 696 kB will be used.
The following packages have unmet dependencies:
  krb5-multidev: Depends: libkrb5-3 (= 1.8.3+dfsg-4squeeze6) but 1.10.1+dfsg-1 is installed and it is kept back.
                 Depends: libk5crypto3 (= 1.8.3+dfsg-4squeeze6) but 1.10.1+dfsg-2 is installed.
                 Depends: libgssapi-krb5-2 (= 1.8.3+dfsg-4squeeze6) but 1.10.1+dfsg-1 is installed and it is kept back.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     krb5-multidev [Not Installed]



Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

你也可以发布你的sources.list吗?如果您从测试中安装了某些东西并切换回稳定状态,就会发生这种情况。
terdon

1
您也可以尝试aptitude而不是apt-get。不是真的要安装,但是,也许,它会给你一个更好的错误信息/更多线索到究竟发生了什么。 (aptitude通常会更加努力地找到安装东西的方法,所以你会看到一大堆安装和移除的东西,以便让它工作 - 这会让你知道你所拥有的与你有什么冲突正在尝试安装)。
wvxvw

此外,“无法锁定”可能意味着几件事情:你正在从另一个终端运行apt-get,但它还没有完成。您还有其他因素干扰安装过程。您无权这样做(必须是root用户)。您可能会在安装过程中取消,从而意外损坏软件包列表。尝试 dpkg 与,iirc -f 对您拥有的包裹进行健全检查。 (看着 man dpkg 首先,我可能错了)。
wvxvw

@wvxvw即使有aptitude,我也没能安装krb5-multidev,我已经添加了上面的细节。
hugemeow

看看这个infro是否可以帮助你: packages.debian.org/sid/krb5-multidev 它说已知与heimdal-dev发生冲突。虽然它说它可以安装在一起,但我对此表示怀疑,也许,如果你安装了它,我会卸载,安装kerberos然后重新安装heimdal。
wvxvw
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.