全新安装 Ubuntu 20.04 LTS 并应用所有更新。在 Oracle VirtualBox VM 中运行。
ubuntu-bug 完全被破解了。当我尝试报告时,系统将我带到网站并要求我输入软件包名称,不允许勾选“我不知道”按钮。当我尝试搜索软件包时,列表中没有软件包。很好,非常好。
20.04 LTS 的 repos 至少在依赖项方面完全损坏了 xorg-dev 和 libglu1-mesa-dev。许多依赖项都像这样失败:
developer@a-developer-VirtualBox:~$ sudo apt-get install libfontenc-dev zlib1g-dev
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:
zlib1g-dev : Depends: zlib1g (= 1:1.2.11.dfsg-2ubuntu1) but 1:1.2.11.dfsg-2ubuntu1.2 is to be installed
E: Unable to correct problems, you have held broken packages.
所需的 -dev 包被强制依赖于不再是 repos 尝试安装的版本。
developer@a-developer-VirtualBox:~$ sudo apt-get install libglu1-mesa-dev libgl1-mesa-dev libgl-dev
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:
libgl-dev : Depends: libgl1 (= 1.3.1-1) but 1.3.2-1~ubuntu0.20.04.1 is to be installed
Depends: libglx-dev but it is not going to be installed
libgl1-mesa-dev : Depends: libglvnd-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
目前官方 repo 处于这样的状态,没有人可以安装 xorg-dev libglu1-mesa-dev。甚至无法报告错误。
有没有办法安装 xorg-dev 和 libglu1-mesa-dev 以及所有开发依赖项?
我们选择 Ubuntu 20.04 LTS,因为 LTS 版本的存储库中不应该有这样的东西。
The following packages have unmet dependencies:
libglib2.0-dev : Depends: libglib2.0-0 (= 2.64.6-1~ubuntu20.04.3) but 2.64.6-1~ubuntu20.04.4 is to be installed
Depends: libglib2.0-bin (= 2.64.6-1~ubuntu20.04.3)
libmount-dev : Depends: libmount1 (= 2.34-0.1ubuntu9) but 2.34-0.1ubuntu9.1 is to be installed
Depends: libblkid-dev but it is not going to be installed
uuid-dev : Depends: libuuid1 (= 2.34-0.1ubuntu9) but 2.34-0.1ubuntu9.1 is to be installed
zlib1g-dev : Depends: zlib1g (= 1:1.2.11.dfsg-2ubuntu1) but 1:1.2.11.dfsg-2ubuntu1.2 is to be installed
E: Unable to correct problems, you have held broken packages.
答案1
我肯定是被某种推挤困住了。现在似乎已经解决了。