Erro de “dependências não atendidas” ao tentar instalar o gnuradio no Ubuntu 18.04

Erro de “dependências não atendidas” ao tentar instalar o gnuradio no Ubuntu 18.04

Seguindo o guia aqui:

https://wiki.gnuradio.org/index.php/InstallingGR#Ubuntu_PPA_Installation

Eu tento instalar:

sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo add-apt-repository ppa:gnuradio/gnuradio-master
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.7
sudo apt-get update
sudo apt install gnuradio

Minha saída:

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:
 gnuradio : Depends: libgnuradio-analog (>= 3.9.0.0git~master~13593~bionic) but it is not     going to be installed
        Depends: libgnuradio-audio (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-blocks (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-channels (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-digital (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-dtv (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-fec (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-fft (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-filter (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-qtgui (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-runtime (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-trellis (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-uhd (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-video-sdl (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-vocoder (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-wavelet (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Depends: libgnuradio-zeromq (>= 3.9.0.0git~master~13593~bionic) but it is not going to be installed
        Recommends: python3-qwt-qt5 but it is not installable
E: Unable to correct problems, you have held broken packages.

Se eu subir na cadeia de dependências com um dos pacotes de erro, finalmente recebo:

sudo apt-get install libgnuradio-runtime
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:
 libgnuradio-runtime : Depends: libvolk2.2 (>= 2.2.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

E finalmente:

sudo apt-get install libvolk2.2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libvolk2.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libvolk2.2' has no installation candidate

Procurar libvolk2.2 indica que ele está no repositório sid (instável) do Debian. Porém quando procuro sobre a instalação do gnuradio, não encontro nada mencionado sobre a necessidade de usar repositórios sid. E também parece que se fosse esse o caso, o guia que usei mencionaria isso.

Portanto, antes de recorrer ao uso de repositórios sid e correr o risco de quebrar, gostaria de ver se há alguma outra coisa que não estou vendo e que seja necessária.

Obrigado por qualquer ajuda.

Ajuda seria muito apreciada.

[EDITAR] Gostaria de mencionar também que esta é uma nova instalação do 18.04, e AFAICT, o atualizador automático de software, tem tudo atualizado.

Responder1

sudo add-apt-repository ppa:gnuradio/gnuradio-releases
sudo add-apt-repository ppa:gnuradio/gnuradio-master
sudo add-apt-repository ppa:gnuradio/gnuradio-releases-3.7

Você precisa adicionar apenas um dos repositórios PPA acima e não todos os três.

Portanto, antes de recorrer ao uso de repositórios sid e correr o risco de quebrar, gostaria de ver se há alguma outra coisa que não estou vendo e que seja necessária.

Sim, os pacotes ppa:gnuradio/gnuradio-masteratualmente parecem estar quebrados. Acabei de instalar com sucesso o gnuradio 3.8 do ppa:gnuradio/gnuradio-releasesrepositório.

Primeiro você precisa remover o ppa:gnuradio/gnuradio-releasese ppa:gnuradio/gnuradio-releases-3.7e depois tentar instalar novamentegnuradio

rm /etc/apt/sources.list.d/gnuradio-ubuntu-gnuradio-master-bionic.list
rm /etc/apt/sources.list.d/gnuradio-ubuntu-gnuradio-releases-3_7-bionic.list
apt-get install gnuradio

informação relacionada