使用可能なバージョンよりも高いバージョンの依存関係が必要なため、パッケージをインストールできません。

使用可能なバージョンよりも高いバージョンの依存関係が必要なため、パッケージをインストールできません。

タイトルよりはっきりと説明するのは難しいです。

私は昨日Debian 9から11にアップグレードしましたが、どういうわけか私のgitパッケージが途中で捨てられました。だから当然、今朝再び設置してみました。存在しない依存関係を提供するように要求する問題があります。

 ~ sudo apt install git                                                                  100 err | 10:50:02
Reading package lists... Done
Building dependency tree... Done
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:
 git : Depends: libc6 (>= 2.34) but 2.31-13+deb11u4 is to be installed
E: Unable to correct problems, you have held broken packages.

 ~ sudo apt list libc6 -a                                                                100 err | 10:51:09
Listing... Done
libc6/stable,now 2.31-13+deb11u4 amd64 [installed]

Debianウェブサイトにリストされている私のバージョンは2.28(https://packages.debian.org/bullseye/git)。

私の推測は、私の問題が私のソースファイルで発生することです。それが問題だと思いますか?

deb http://[debian link]/debian bullseye main
deb http://deb[debian link]/debian bullseye-updates main
deb http://security[debian link] bullseye-security main

適切な戦略の結果は次のとおりです(リンクをあまり投稿できないため、少し切り捨てられます)。

 100 /var/lib/dpkg/status
     release a=now
 500 http://ppa.launchpad.net/git-core/ppa/ubuntu jammy/main amd64 Packages
     release v=22.04,o=LP-PPA-git-core,a=jammy,n=jammy,l=Git stable releases,c=main,b=amd64
     origin ppa.launchpad.net
 500 http://security.[debian link] bullseye-security/main amd64 Packages
     release v=11,o=Debian,a=stable-security,n=bullseye-security,l=Debian-Security,c=main,b=amd64
     origin security.[debian link]
 500 http://deb.[debian link]/debian bullseye-updates/main amd64 Packages
     release v=11-updates,o=Debian,a=stable-updates,n=bullseye-updates,l=Debian,c=main,b=amd64
     origin deb.[debian link]
 500 http://deb.[debian link]/debian bullseye/main amd64 Packages
     release v=11.5,o=Debian,a=stable,n=bullseye,l=Debian,c=main,b=amd64
     origin deb.[debian link]
Pinned packages:```

ベストアンサー1

システムは、git-core.NETのインストールを試みるUbuntu PPAを参照しますgit。 Ubuntu PPAはDebianで使用しないでください。この特別なケースでは、libc6Debian 11で利用可能な最新バージョンを含むUbuntu 22.04パッケージを使用する22.04 PPAを使用しています。

gitDebian 11 で強制的にインストールできます。

sudo apt install -t bullseye git

ただし、Ubuntu PPAを削除する必要があります。

おすすめ記事