解决 Mint 20.2 上 libc6 损坏的未满足依赖关系

解决 Mint 20.2 上 libc6 损坏的未满足依赖关系

我在一所大学工作,被迫进入 Microsoft 生态系统。啊。鉴于这一现实,我想安装 Linux OneDrive 客户端。

https://github.com/abraunegg/onedrive

我收到以下错误,但无法解决。

$ sudo apt install 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.33) but 2.31-0ubuntu9.2 is to be installed
            Depends: libphobos2-ldc-shared94 (>= 1:1.24.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

系统以及我如何到达这里

我正在运行带有内核 5.11 的 Linux Mint 20.2:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 20.2
Release:    20.2
Codename:   uma

$ uname -r
5.11.0-46-generic

我按照此处的 OneDrive 客户端安装说明进行操作:

https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md

请注意,步骤 3 表示遵循 Ubuntu 20.04 安装。当我这样做时,我会在这篇文章的顶部看到错误列表。

典型的apt命令表明我是最新的:

$ sudo apt-get update         
Ign:1 http://packages.linuxmint.com uma InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                
Hit:3 http://packages.linuxmint.com uma Release                                                                                                             
Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                                                                   
Hit:5 http://download.virtualbox.org/virtualbox/debian focal InRelease                                                                                      
Hit:6 http://archive.canonical.com/ubuntu focal InRelease                                                                                                   
Hit:7 http://archive.ubuntu.com/ubuntu focal InRelease                                                                                                      
Hit:8 http://dell.archive.canonical.com focal InRelease                                                                                                     
Get:9 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease [3,622 B]                                                                        
Get:11 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                                                                                    
Hit:12 https://repo.protonvpn.com/debian stable InRelease                                                                                        
Hit:13 https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_21.04 ./ InRelease
Get:14 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Fetched 340 kB in 2s (168 kB/s)     
Reading package lists... Done

$ sudo apt-get upgrade -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

$ sudo apt-get autoremove -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

$ sudo apt-get autoclean -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done

如果您想知道一个未升级的软件包,它是快照:

$ sudo apt-cache policy | tail
<omitted stuff>
Pinned packages:
     snapd -> 2.51.1+20.04ubuntu2 with priority -10
     snapd -> 2.49.2+20.04 with priority -10
     snapd -> 2.48.3+20.04 with priority -10
     snapd -> 2.44.3+20.04 with priority -10

我发现我安装了 2.31-0ubuntu9.2。

$ sudo apt-cache policy libc6
libc6:
  Installed: 2.31-0ubuntu9.2
  Candidate: 2.31-0ubuntu9.2
  Version table:
 *** 2.31-0ubuntu9.2 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.31-0ubuntu9 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages

我知道需要更新版本的libc6.我假设我当前版本的 libc6 包含在2.31-0ubuntu9.2

两个问题:

  • 为什么apt报告`2.31-0ubuntu9.2将被安装。”在我看来它已经安装了。

  • 我该如何解决这个问题? (或者我只是忍受通过浏览器或运行虚拟 Windoze 计算机对 OneDrive 的低效访问)

我确信我可以四处挖掘并找到一种升级方法libc6,但我想知道这是否明智,因为它是一个非常基础的库。

感谢您提供的任何信息。我特别感谢对建议解决方案的解释,以便我可以继续学习有效管理我的计算机。

答案1

你可以onedrive通过以下方式在 Linux Mint 上安装:

启用Universe存储库:

Onedrive 打包在universe存储库下。您可以通过以下方式安装它:

sudo add-apt-repository universe
sudo apt update
sudo apt install onedrive
来自 OpenSuSE 构建服务存储库:

你不需要升级libc6。您需要使用该指令乌班图20.04而不是 21.04:

echo 'deb https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/ ./' | sudo tee /etc/apt/sources.list.d/onedrive.list
wget -qO - https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_20.04/Release.key | sudo apt-key add -
sudo apt update
sudo apt install onedrive

相关内容