Qua*_*nic 5 package-management aptitude apt dpkg
如果我这样做了,aptitude search ~b我会得到一份包含 78 个损坏包裹的清单。但是其中 76 个甚至没有安装(它们的状态为pB)。已卸载的软件包如何被视为损坏?
但是,如果我这样做,apt-get -s install -f则表示无事可做,因此显然apt-get不认为有任何问题。
而鉴于资质认为包坏了,我该如何找出为什么它认为包被打破?
一些输出:
# aptitude search "~i ~b"
iB foomatic-db-compressed-ppds - OpenPrinting printer support - Compressed PPDs derived from the database
iB xz-lzma - XZ-format compression utilities - compatibility commands
Run Code Online (Sandbox Code Playgroud)
这真的是仅有的两个。但是,如果我刚刚这样做,~b我会得到一堆已卸载的损坏(无论这意味着什么)软件包。以下是前几个(共 76 个):
# aptitude search ~b
pB bison - YACC-compatible parser generator
pB compiz-fusion-plugins-extra - transitional dummy package.
pB compiz-fusion-plugins-main - transitional dummy package.
pB cpu-checker - tools to help evaluate certain CPU (or BIO
Run Code Online (Sandbox Code Playgroud)
至于dpkg,
# dpkg-query -l xz-lzma
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-=============================-=============================-==========================================================================
ii xz-lzma 5.1.1alpha+20110809-3 XZ-format compression utilities - compatibility commands
Run Code Online (Sandbox Code Playgroud)
发生什么了?我该如何修复它(如果有什么东西真的坏了)?
也许确实没有什么问题。
简单的答案:apt-get并且aptitude有不同的依赖解析器(how-do-i-fix-这些损坏的依赖项)。
要查看是否确实存在问题,您可以运行以下命令:
sudo apt-get update
sudo apt-get install --reinstall foomatic-db-compressed-ppds xz-lzma
Run Code Online (Sandbox Code Playgroud)
就我个人而言,我建议不要使用,aptitude因为它有时可能很危险。
apt-get更安全,并且不会在损坏的软件包就位的情况下进行安装,但是,apt-get很少(如果有的话)能够修复由于损坏的软件包而导致的不可能的情况。aptitude 确实有能力修复损坏的软件包,但aptitude 也有能力创建损坏的软件包存在的情况。
一个快乐的媒介是synaptic。synaptic比 更有能力修复损坏的软件包,apt-get但不具备aptitude造成这种情况的能力。
来源:how-do-i-fix-these-broken-dependency
| 归档时间: |
|
| 查看次数: |
1729 次 |
| 最近记录: |