安装 OneDrive

安装 OneDrive

这只是我的一个非常愚蠢的错误。不知怎的,我以为我使用的是 Ubuntu 22.04,并按照这些说明操作。实际上我使用的是 20.04。


我正在尝试按照https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md#distribution-ubuntu-2204但是我无法完成安装,因为

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

答案1

披露:我是 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”中,也是为什么您无法安装该应用程序的原因。

请小心并按照适合您的 Ubuntu 版本的正确安装步骤进行操作,以避免出现此类错误。

相关内容