Mint 20.2 で libc6 に対する不満の依存関係のトラブルシューティング

Mint 20.2 で libc6 に対する不満の依存関係のトラブルシューティング

私は大学に勤務し、マイクロソフトエコシステムに強制的に参加しました。ああ。これらの現実を考慮して、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

2つの質問:

  • apt「2.31-0ubuntu9.2がインストールされる予定」と報告されるのはなぜですか? 「私のビューにはすでにインストールされているようです。

  • この問題をどのように解決できますか? (またはブラウザまたは仮想Windozeを実行しているコンピュータを介してOneDriveに非効率的にアクセスすることに耐えました。)

あちこちを調べてアップグレードする方法を見つけることができると確信していlibc6ますが、あまりにも基本的なライブラリなので、それが賢明かどうか疑問に思います。

あなたが提供できるすべての情報に感謝します。特に、コンピュータを効果的に管理する方法を学ぶために、提案されたソリューションの説明に感謝します。

ベストアンサー1

onedrive以下を使用してLinux Mintにインストールできます。

ユニバースリポジトリの有効化:

universeOnedriveはリポジトリの下にパッケージされています。以下からインストールできます。

sudo add-apt-repository universe
sudo apt update
sudo apt install onedrive
OpenSuSEビルドサービスリポジトリから:

アップグレードする必要はありませんlibc6。このディレクティブを使用する必要があります。Ubuntu 20.0421.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

おすすめ記事