安定したパッケージに不安定な依存関係がある場合はどうすればよいですか?

安定したパッケージに不安定な依存関係がある場合はどうすればよいですか?

apt意図的に遅れるパッケージがいくつかあります。私が見ているものの例は次のとおりです。

> apt update
...
<error-free list of all my repos being fetched>
...
Fetched 88.7 kB in 4s (22.7 kB/s)                   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
9 packages can be upgraded. Run 'apt list --upgradable' to see them.

> apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  fontconfig fontconfig-config ghostscript-x libfontconfig1-dev libgs9-common
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

この問題を解決する一般的な方法は、ブロックされたパッケージの明示的な一覧表示を開始し、パッケージがブロックされた理由を示すより良い出力を得ることです。このアプローチでは、拘束されたパッケージにはlibfontconfig1グループとlibfreetype6グループという2つの異なるグループがあると考えられます。

fontconfigたとえば、アップグレードしようとすると、次のようになりますfontconfig-config

> apt upgrade fontconfig fontconfig-config
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:
 fontconfig : Depends: libfontconfig1 (>= 2.13.0) but 2.12.6-0ubuntu2 is to be installed
 fontconfig-config : Breaks: libfontconfig1 (< 2.13.0) but 2.12.6-0ubuntu2 is to be installed
E: Broken packages

libfontconfig12.13.0以上でしたいが、2.13.0以下である必要がある場合はどうすればよいですか?

バンドルはlibfreetype6少し異なります。

> apt upgrade ghostscript-x libfontconfig1-dev libgs9-common ghostscript libgs9 libfontconfig1
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:
 libfontconfig1 : Depends: libfreetype6 (>= 2.9.1) but 2.8.1-2ubuntu2 is to be installed
 libgs9 : Depends: libfreetype6 (>= 2.10.1) but 2.8.1-2ubuntu2 is to be installed
E: Broken packages

ここでは状況を説明する段落が提供されていますが、それを処理する方法の実行計画はありません。 libfreetype6 2.10がまだ不安定なリポジトリにあるようです。私は本当に私のコンピュータに不安定なストレージを追加することを避けたいと思います。 2.10が安定すると、この問題は消えそうです。

これも簡単に避けられない問題のように感じられます。私が理解したことは、このようなことが起こるようにパッケージのすべての依存関係をアップグレードする前に、リポジトリ担当者を追加して安定したバージョンにアップグレードしたことです。私が追加するリポジトリにさらに制限を加える以外に、これを防ぐ方法がわかりません。

今、この混乱に閉じ込められたのですが、どのように抜け出すことができますか?これらのパッケージのいくつかは、印刷用のGhostscriptなどの他の重要なパッケージに依存しています。アンインストールと再インストールができないようです。

不安定なリポジトリでパッケージがアップグレードされるのを待つことが私ができる唯一のことではないことを教えてください。

Linux Mint 19.3 x64

編集:コメントの要求に応じていくつかの追加コマンドを実行しました。問題のある各パッケージを実行すると、apt install次のような結果が表示されます。

> apt install fontconfig fontconfig-config
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:
 fontconfig : Depends: libfontconfig1 (>= 2.13.0) but 2.12.6-0ubuntu2 is to be installed
 fontconfig-config : Breaks: libfontconfig1 (< 2.13.0) but 2.12.6-0ubuntu2 is to be installed
 libfreerdp-client2-2 : Depends: libavcodec57 (>= 7:3.4.6) but it is not going to be installed or
                                 libavcodec-extra57 (>= 7:3.4.6) but it is not going to be installed
 libfreerdp2-2 : Depends: libavcodec57 (>= 7:3.4.6) but it is not going to be installed or
                          libavcodec-extra57 (>= 7:3.4.6) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

私はそれをよく理解していませんが、apt policyとにかく実行しました。

> apt policy libfontconfig1 libfreetype6
libfontconfig1:
  Installed: 2.12.6-0ubuntu2
  Candidate: 2.13.1-2ubuntu2~18.04.sav2
  Version table:
     2.13.1-2ubuntu2~18.04.sav2 500
        500 http://ppa.launchpad.net/savoury1/multimedia/ubuntu bionic/main amd64 Packages
 *** 2.12.6-0ubuntu2 500
        500 http://la-mirrors.evowise.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
libfreetype6:
  Installed: 2.8.1-2ubuntu2
  Candidate: 2.8.1-2ubuntu2
  Version table:
 *** 2.8.1-2ubuntu2 500
        500 http://la-mirrors.evowise.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

ベストアンサー1

おすすめ記事