Estou usando o Debian 9.5 e recentemente desinstalei um pacote ( mariadb
), agora enquanto tento instalar um novo pacote, eu continuo recebendo isto:
E: Unable to correct problems, you have held broken packages.
Eu tentei esses comandos, mas nenhum resultado:
sudo dpkg --configure -a
sudo apt-get install -f
apt-get install --fix-broken
Eu também executei este comando para mostrar os pacotes quebrados, mas ele não mostrou nada:
apt-mark showhold
Mesmo quando tento executar o sudo apt-get upgrade
, obtenho isto:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
então eu consegui instalar o gerenciador de pacotes do aptitude (não sei como), e tentei instalar o novo pacote com sudo aptitude install mysql-server
e ele mostrou algo:
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
e esta é a saída de 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