Debian 9.5を使用していて、最近パッケージをアンインストールしました(mariadb
)。新しいパッケージをインストールしようとすると、次のようになります。
E: Unable to correct problems, you have held broken packages.
これらのコマンドを試しましたが、結果がありません。
sudo dpkg --configure -a
sudo apt-get install -f
apt-get install --fix-broken
また、このコマンドを実行して壊れたパッケージを表示しましたが、何も表示されませんでした。
apt-mark showhold
sudoapt-get upgrade
を実行しようとしても、次のようになります。
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
それから私はaptitudeパッケージマネージャーをインストールすることができました(方法がわかりません)、そして新しいパッケージをインストールしようとしました、sudo aptitude install mysql-server
そしてそれは何かを示しました:
The following packages have unmet dependencies:
libdbi-perl : Depends: perlapi-5.24.1 which is a virtual package, provided by:
- perl-base (5.24.1-3+deb9u4), but 5.26.2-7 is installed
libfcgi-perl : Depends: perlapi-5.24.1 which is a virtual package, provided by:
- perl-base (5.24.1-3+deb9u4), but 5.26.2-7 is installed
libterm-readkey-perl : Depends: perlapi-5.24.1 which is a virtual package, provided by:
- perl-base (5.24.1-3+deb9u4), but 5.26.2-7 is installed
libdbd-mysql-perl : Depends: perlapi-5.24.1 which is a virtual package, provided by:
- perl-base (5.24.1-3+deb9u4), but 5.26.2-7 is installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) default-mysql-server [Not Installed]
2) libcgi-fast-perl [Not Installed]
3) libdbd-mysql-perl [Not Installed]
4) libdbi-perl [Not Installed]
5) libfcgi-perl [Not Installed]
6) libterm-readkey-perl [Not Installed]
7) mariadb-server-10.1 [Not Installed]
8) mysql-server [Not Installed]
Leave the following dependencies unresolved:
9) libcgi-pm-perl recommends libcgi-fast-perl (>= 1:2.01)
10) mariadb-client-10.1 recommends libdbd-mysql-perl (>= 1.2202)
11) mariadb-client-10.1 recommends libdbi-perl
12) mariadb-client-10.1 recommends libterm-readkey-perl
これは次の出力ですapt policy pearl-base
:
perl-base:
Installed: 5.26.2-7
Candidate: 5.26.2-7
Version table:
*** 5.26.2-7 500
500 http://ftp.us.debian.org/debian testing/main amd64 Packages
100 /var/lib/dpkg/status
5.24.1-3+deb9u4 500
500 http://httpredir.debian.org/debian stretch/main amd64 Packages
500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
500 http://deb.debian.org/debian stretch/main amd64 Packages
安定したリポジトリと同じように、優先度500のリポジトリでテストを行います。これは事実上、Debian 9.5ではなく、Debianテストを実行していることを意味します。(Debianの次のリリースのテストを手伝ってくれてありがとう!)
mysql-server
現在、テストでは利用できないため、apt install mysql-server
(またはそのバリアント)はDebian安定版にバージョンをインストールしようとします。ただし、Debianのテスト用ではなくPerlのDebian安定版が必要なため、インストールを続行できません。
これを修正するには、Debian安定版に戻すことをお勧めします。テストを継続したい場合は、MySQLがそこに移行するのを待つか、テストと不安定な混合セットアップに切り替える必要があります。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加