我遇到了这个冲突:
The following packages have unmet dependencies:
libncursesw5-dev : Depends: libtinfo5 (= 6.1-1ubuntu1) but 6.1-1ubuntu1.18.04 is installed
Depends: libncursesw5 (= 6.1-1ubuntu1) but 6.1-1ubuntu1.18.04 is installed
Depends: libtinfo-dev (= 6.1-1ubuntu1) but 6.1-1ubuntu1.18.04 is installed
令我困惑的是,apt 没有意识到除了发行版后缀之外,这些是完全相同的版本。我尝试了 aptitude 和 dpkg,它们都报告了这个问题。
顺便说一句,如果有人想知道,我通过下载 deb 然后运行解决了冲突:
sudo dpkg --ignore-depends=libncursesw5,libtinfo-dev,libtinfo5:amd64 -i ./libncursesw5-dev_6.1-1ubuntu1_amd64.deb
答案1
软件包版本如下不是 确切地相同
第一个是初始的 18.04 打包版本,第二个有后续错误修复(包括 CVE-2018-10754 修复),这些错误在原始版本中没有仿生的打包版本
看:
https://packages.ubuntu.com/bionic-updates/libtinfo5
https://changelogs.ubuntu.com/changelogs/pool/main/n/ncurses/ncurses_6.1-1ubuntu1.18.04/changelog
ncurses (6.1-1ubuntu1.18.04) bionic-proposed; urgency=medium
* SRU: LP: #1772872: Backport changes from 6.1+20180210-4: * Move screen.xterm-256color and rxvt-unicode-256color terminfo entries
from ncurses-term to ncurses-base (Closes: #898666, #898948). * Cherry-pick a fix from the 20180414 patchlevel: add a null-pointer
check in _nc_parse_entry to handle an error when a use-name is invalid
syntax (report by Chung-Yi Lin, CVE-2018-10754).
-- Matthias Klose <[email protected]> Wed, 23 May 2018 10:08:27 +0200
我只查找了你列出的第一个软件包,我想你也会发现其他的软件包也是同样的情况