好的,我正在尝试安装 bsdtar,但它不让我安装,它标记了一个包依赖错误,即使它标记错误的包与所需的版本相同。
以下是运行 $ sudo apt-get install bsdtar 的结果
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:
bsdtar : Depends: libarchive13 (= 3.1.2-9) but 3.1.2-9ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.
我也尝试使用 $ sudo aptitude install bsdtar 进行安装,结果如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
aptitude is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
pablo@Carcacha:~$ sudo aptitude install bsdtar
The following NEW packages will be installed:
bsdtar{b}
0 packages upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
Need to get 47.8 kB of archives. After unpacking 129 kB will be used.
The following packages have unmet dependencies:
bsdtar : Depends: libarchive13 (= 3.1.2-9) but 3.1.2-9ubuntu0.1 is installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) bsdtar [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 18 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used
提前致谢,非常感谢所有的帮助。
答案1
好吧,这就是事情变得棘手和极其令人困惑的地方。是的,您确实安装了 libarchive,但您安装了错误的版本。出于我从未理解的原因,Ubuntu 将 ubuntu 一词放入大多数 lib 文件中。
您需要做的是,进行在线搜索并下载 libarchive13 版本 3.1.2.9(不带 Ubuntu 后缀),然后下载并安装它。您现在拥有相同内容的 2 个版本通常与操作系统不同无关。
我真的希望不同的分销商停止这种废话,这只会给用户带来更多困难。