Eu tenho o seguinte problema de dependência libc6 no trecho Debian 9.12.
sudo apt install libc6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.24-11+deb9u4) but 2.27-6 is to be installed
Depends: libc-dev-bin (= 2.24-11+deb9u4) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Como posso corrigi-lo?
EDIT1: apt policy libc6
libc6:
Installed: 2.27-6
Candidate: 2.27-6
Version table:
*** 2.27-6 100
100 /var/lib/dpkg/status
2.24-11+deb9u4 500
500 http://deb.debian.org/debian stretch/main amd64 Packages
2.24-11+deb9u1 500
500 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
EDIT2:
sudo apt install libc6/stable libc6-bin/stable locales/stable
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Release 'stable' for 'libc6' was not found
E: Unable to locate package libc6-bin
E: Release 'stable' for 'locales' was not found
A versão do
libc6
atualmente em seu sistema é mais recente que a versão no Debian 9, e isso impede que você instalelibc6-dev
(que deve corresponder à versão dolibc6
). Para instalarlibc6-dev
o , você terá que fazer downgradelibc6
e pacotes relacionados:Isso pode exigir o downgrade de outros pacotes também.
Feito tudo isso, você poderá instalar o
libc6-dev
.Finalmente consegui ajuda em outro fórum: https://serverfault.com/a/1004951/302842
Esta foi a solução para fazer o downgrade dos pacotes problemáticos:
O downgrade foi bem sucedido!