Estou tentando instalar as dependências para compilar o Strongswan, pois os pacotes principais parecem estar quebrados.
Quando tento instalar o pacote libsoup, recebo o seguinte erro:
~/strongswan-5.9.14# apt install -f libsoup2.4-dev
Reading package lists... Done
Building dependency tree... Done
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:
libbrotli-dev : Depends: libbrotli1 (= 1.1.0-2build2) but 1.1.0-2+ubuntu22.04.1+deb.sury.org+1 is to be installed
Isto está em uma instalação de servidor, recentemente atualizada para 24.04.1 LTS.
Atualização: informações do pacote
# apt policy libbrotli1
libbrotli1:
Installed: 1.1.0-2+ubuntu22.04.1+deb.sury.org+1
Candidate: 1.1.0-2+ubuntu22.04.1+deb.sury.org+1
Version table:
*** 1.1.0-2+ubuntu22.04.1+deb.sury.org+1 100
100 /var/lib/dpkg/status
1.1.0-2build2 500
500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
# apt-get remove libbrotli1
Reading package lists... Done
Building dependency tree... Done
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:
shim-signed : Depends: grub-efi-amd64-signed (>= 1.191~) but it is not going to be installed or
grub-efi-arm64-signed (>= 1.191~) but it is not installable or
base-files (< 12.3) but 13ubuntu10.1 is to be installed
Depends: grub-efi-amd64-signed (>= 1.187.2~) but it is not going to be installed or
grub-efi-arm64-signed (>= 1.187.2~) but it is not installable
Depends: grub2-common (>= 2.04-1ubuntu24) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Vejo que o pacote instalado é do ppa, e há um pacote nos repositórios. Qual é a melhor / segura maneira de remover e reinstalar o pacote do repositório sem quebrar tudo?
Para resolver isso, alterei a prioridade do pin do repositório:
em /etc/apt/preferences.d criei um arquivo lib.pref
Após a execução
apt update
,apt policy libbrotli1
agora mostrou:Consegui então reinstalar o pacote.
E então consegui instalar as dependências sem problemas.
Comentei as entradas em lib.pref para não atrapalhar coisas futuras, mas está lá caso haja outro pacote que precise ser atualizado do ppa 22.04.