这对我来说只是一个非常愚蠢的错误。不知怎的,我以为我有 Ubuntu 22.04 并按照这些说明进行操作。我实际上有20.04。
我正在尝试按照https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md#distribution-ubuntu-2204上的说明安装 OneDrive,但是我无法完成安装,因为
sudo apt install --no-install-recommends --no-install-suggests onedrive
回报
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:
onedrive : Depends: libc6 (>= 2.34) but 2.31-0ubuntu9.12 is to be installed
Depends: libphobos2-ldc-shared98 (>= 1:1.28.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
如果我尝试显示持有的包裹
apt-mark showhold
它什么也不返回。
sudo apt-get --with-new-pkgs upgrade
没有帮助。
sudo apt-get upgrade
节目
The following packages have been kept back:
libass9 libgegl-0.4-0 protonvpn
我试过
sudo apt-get --with-new-pkgs upgrade libass9
这似乎有效但是
sudo apt-get --with-new-pkgs upgrade libgegl-0.4-0
没有。它回来了
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... 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:
libgegl-0.4-0 : Depends: libopenexr23 but it is not installable
E: Broken packages
披露:我是 Linux 版 OneDrive 客户端的开发人员 - https://github.com/abraunegg/onedrive
根据我在 GitHub 上的回复,很遗憾,您遵循的操作系统说明不正确。从错误信息来看:
Focal 是 Ubuntu 20.x,Jammy 是 Ubuntu 22.x,因此显示的错误消息提示您遵循“Jammy”(Ubuntu 22.x) 的说明,而不是使用实际 Ubuntu 版本的说明。这就是您无法安装“libphobos2-ldc-shared98”的原因,因为“Focal”不存在“libphobos2-ldc-shared98”,以及您无法安装该应用程序的原因。
请小心并遵循适合您的 Ubuntu 版本的正确安装步骤,以避免出现此类错误。