Preso em loop infinito de dependências não atendidas devido a pacotes quebrados

0

Postei essa pergunta em SO , mas não encontrei nenhuma sugestão. Por isso estou postando aqui para a esperança. Esta pergunta pode parecer duplicada de outros, no entanto, eu tentei suas soluções, mas não consegui nenhum sucesso. Recentemente removi o ROS Indigo usando o seguinte comando -

ravi@lab:~$ sudo apt-get remove ros-*
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

Agora, eu precisava disso. Então eu tentei instalá-lo novamente usando o seguinte comando -

ravi@lab:~$ sudo apt-get install ros-indigo-desktop-full
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:
 ros-indigo-desktop-full : Depends: ros-indigo-perception but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Infelizmente, o acima não funcionou. Então eu tentei instalar dependências mas não obtive sucesso -

ravi@lab:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
ravi@lab:~$ sudo dpkg --configure -a
ravi@lab:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

Eu tentei instalar a dependência ros-indigo-perception manualmente, mas sem chance -

ravi@lab:~$ sudo apt-get install ros-indigo-perception
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:
 ros-indigo-perception : Depends: ros-indigo-perception-pcl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Eu tentei mais e pensei em instalar outra dependência ros-indigo-perception-pcl mas fui em vão -

ravi@lab:~$ sudo apt-get install ros-indigo-perception-pcl
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:
 ros-indigo-perception-pcl : Depends: ros-indigo-pcl-conversions but it is not going to be installed
                             Depends: ros-indigo-pcl-ros but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Ainda tentando sem sucesso -

ravi@lab:~$ sudo apt-get install ros-indigo-pcl-conversions
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:
 ros-indigo-pcl-conversions : Depends: libpcl-1.7-all but it is not going to be installed
                              Depends: libpcl-1.7-all-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ravi@lab:~$ sudo apt-get install libpcl-1.7-all
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:
 libpcl-1.7-all : Depends: libpcl-1.7-all-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ravi@lab:~$ sudo apt-get install libpcl-1.7-all-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:
 libpcl-1.7-all-dev : Depends: libpcl-apps-1.7-dev but it is not going to be installed
                      Depends: libpcl-io-1.7-dev but it is not going to be installed
                      Depends: libpcl-outofcore-1.7-dev but it is not going to be installed
                      Depends: libpcl-people-1.7-dev but it is not going to be installed
                      Depends: libpcl-recognition-1.7-dev but it is not going to be installed
                      Depends: libpcl-visualization-1.7-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Meu objetivo é instalar o ROS Indigo no meu Ubuntu LTS 14.04 (sem reinstalar o SO: D)

Qualquer solução alternativa, por favor?

    
por Ravi Joshi 30.05.2018 / 15:38

2 respostas

0

Eu consertei finalmente. Eu tive que cavar mais e finalmente percebi que o problema está ocorrendo devido a libusb .

Para corrigir esse problema, eu removi pela primeira vez libusb (desculpe, não lembrei da versão exata no momento). Depois disso, corro apt-get autoclean . Então, apt-get update e apt-get upgrade apenas para garantir que tudo esteja no lugar correto.

Finalmente, usei sudo apt-get install ros-indigo-desktop-full e funcionou.

Nota

Depois de reiniciar o PC, o login não funciona e diz Failed to start sesssion . Não entre em pânico, durante a tela de login, pressione CTRL + ALT + F1 . Ele irá levá-lo ao terminal. Use seu nome de usuário e senha para fazer o login. Finalmente restaure a área de trabalho usando o seguinte comando sudo apt-get install ubuntu-desktop

    
por Ravi Joshi 31.05.2018 / 18:10
0

Tente

sudo apt update
sudo apt upgrade

e depois

sudo apt install -f

ou você pode tentar

sudo apt autoremove

Há alguma chance de a atualização ajudar você a corrigir seus problemas de dependências

    
por damadam 30.05.2018 / 16:12