私のシステムへの10.3から10.4へのMariaDbアップデートが中断されました。 MariaDbはまだうまく機能しますが、今度はシステムのアップグレードに問題があります。オンラインで解決策を探してみましたが、何も見つからないようです。質問:
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
mariadb-server-10.3 : Depends: mariadb-client-10.3 (>= 1:10.3.28+maria~buster) but 1:10.3.27-0+deb10u1 is installed
mariadb-server-core-10.3 : Breaks: mariadb-client-10.3 (< 1:10.3.28+maria~buster) but 1:10.3.27-0+deb10u1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ダメージを回復しようとしたとき:
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libconfig-inifiles-perl libsnappy1v5
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
mariadb-client-10.3 mariadb-client-core-10.3
The following packages will be upgraded:
mariadb-client-10.3 mariadb-client-core-10.3
2 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
6 not fully installed or removed.
Need to get 0 B/1,868 kB of archives.
After this operation, 19.6 MB disk space will be freed.
Do you want to continue? [Y/n] Y
Reading changelogs... Done
dpkg: regarding .../mariadb-client-core-10.3_1%3a10.3.28+maria~buster_amd64.deb containing mariadb-client-core-10.3:
mariadb-client-10.3 conflicts with mysql-client-core-5.5
mariadb-client-core-10.3 provides mysql-client-core-5.5 and is to be installed.
dpkg: error processing archive /var/cache/apt/archives/mariadb-client-core-10.3_1%3a10.3.28+maria~buster_amd64.deb (--unpack):
conflicting packages - not installing mariadb-client-core-10.3
dpkg: regarding .../mariadb-client-10.3_1%3a10.3.28+maria~buster_amd64.deb containing mariadb-client-10.3:
mariadb-client-core-10.3 conflicts with mysql-client-5.5
mariadb-client-10.3 provides mysql-client-5.5 and is to be installed.
dpkg: error processing archive /var/cache/apt/archives/mariadb-client-10.3_1%3a10.3.28+maria~buster_amd64.deb (--unpack):
conflicting packages - not installing mariadb-client-10.3
Errors were encountered while processing:
/var/cache/apt/archives/mariadb-client-core-10.3_1%3a10.3.28+maria~buster_amd64.deb
/var/cache/apt/archives/mariadb-client-10.3_1%3a10.3.28+maria~buster_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
複数のパッケージがインストールされていますか?どんなアイデアがありますか?
編集:さらに情報を追加
/etc/apt/sources.list の内容を表示するには、投稿を編集します。
deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main
deb http://security.debian.org/debian-security buster/updates main contrib
deb-src http://security.debian.org/debian-security buster/updates main contrib
# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main contrib
deb [arch=arm64,ppc64el,amd64] http://mariadb.mirror.globo.tech/repo/10.3/debian buster main
# deb-src [arch=arm64,ppc64el,amd64] http://mariadb.mirror.globo.tech/repo/10.3/debian buster main
deb [arch=arm64,ppc64el,amd64] http://mariadb.mirror.globo.tech/repo/10.4/debian buster main
# deb-src [arch=arm64,ppc64el,amd64] http://mariadb.mirror.globo.tech/repo/10.4/debian buster main
deb-src http://deb.debian.org/debian/ buster-updates main contrib
および/etc/apt/sources.list.dのすべての* .listファイル:ondrej-ubuntu-php-impish.list php7.list
ベストアンサー1
以前はカリでこのような問題を経験したことがあります。空でない場合は、/etc/apt/sources.list.d
ディレクトリ内のすべての項目を「削除」します。このファイルを削除するよりも名前を変更する方が良い。次のコマンドを実行してみてください。
sudo apt clean
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade
この問題が引き続き発生する場合は、以下を試してください。
sudo apt --fix-broken install
sudo apt-get upgrade
もう一度問題が発生した場合は、ルート(sudo su
)として実行してください。
sudo -s
apt --fix-broken install
apt upgrade