Debian 10 - MariaDB 업데이트 중단 - 시스템 업그레이드 문제

Debian 10 - MariaDB 업데이트 중단 - 시스템 업그레이드 문제

내 시스템에 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

관련 정보