
저는 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
sudo를 실행하려고 해도 apt-get upgrade
다음과 같은 결과가 나타납니다.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
그런 다음 적성 패키지 관리자를 설치할 수 있었고(방법을 모르겠습니다) 새 패키지를 설치하려고 시도했는데 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
답변1
안정적인 리포지토리와 마찬가지로 우선순위 500의 리포지토리에서 테스트를 수행합니다. 이는 실제로 Debian 9.5가 아닌 Debian 테스트를 실행하고 있음을 의미합니다. (데비안의 다음 릴리스를 테스트하는 데 도움을 주셔서 감사합니다!)
mysql-server
현재 테스트에 사용할 수 없으므로 apt install mysql-server
(또는 그 변형) 버전을 Debian stable에 설치하려고 합니다. 하지만 그러려면 데비안 테스트용이 아닌 Perl의 데비안 안정 버전이 필요하므로 설치를 진행할 수 없습니다.
이 문제를 해결하려면 다음을 권장합니다.Debian stable로 되돌리는 중. 테스트를 계속하려면 MySQL이 그곳으로 마이그레이션될 때까지 기다리거나 혼합 테스트/불안정한설정.