为 Ubuntu Xenial (16.04) 添加此 PPA 来安装 qt5.11 后:https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.11.0-xenial并使用 进行更新apt-get
,我在尝试安装包“qt511-meta-full”时遇到了这个问题(“qt511-meta-minimal”包没有显示任何问题):
$ sudo apt-get install qt511-meta-full
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:
qt511-meta-full : Depends: qt511doc:any but it is not installable
E: Unable to correct problems, you have held broken packages.
当然,我找不到包“qt511doc”本身:
$ sudo apt-get install qt511doc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package qt511doc
任何帮助或修复都值得感激。谢谢。
答案1
尝试使用 qt 5.11.1 的 repo,而不是 5.11.0。
sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial