Dependências não satisfeitas para o desktop ros full [closed]

1

Erro

Estou tentando instalar a versão completa do desktop ros no meu computador seguindo estas etapas . Tudo está bem até o passo 1.4, precisamente

sudo apt-get install ros-kinetic-desktop-full

Onde recebo o seguinte erro:

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-kinetic-desktop-full : Depends: ros-kinetic-desktop but it is not going to be installed
       Depends: ros-kinetic-simulators but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Árvore de dependência

Vou relatar aqui toda a árvore de dependências, onde usei o comando sudo apt-get install para todas as dependências à esquerda de cada elemento da lista. Eu segui primeiro a dependência dos simuladores:

  • ros-kinetic-desktop-full: Depende de: simuladores de ros-cinéticos
  • ros-kinetic-simulators: Depende: ros-kinetic-rqt-common-plugins
  • ros-kinetic-rqt-common-plugins: Depende: ros-kinetic-rqt-web
  • ros-cinética-rqt-web: Depende de: ros-kinetic-webkit-dependency
  • dependência do ros-kinetic-webkit: Depende: python-pyqt5.qtwebkit
  • python-pyqt5.qtwebkit: Depende: python-pyqt5 (= 5.8.2 + dfsg-1 + 16.04 + xenial + build19) mas 5.8.2 + dfsg-1 + 16.04 + xenial + build21 deve ser instalado E: Incapaz de corrigir problemas, você realizou pacotes quebrados.

Depois segui a dependência do ambiente de trabalho:

  • ros-kinetic-desktop: Depende: ros-kinetic-viz
  • ros-kinetic-viz: Depende: ros-kinetic-rqt-common-plugins
  • ros-kinetic-rqt-common-plugins: Depende: ros-kinetic-rqt-web
  • ros-cinética-rqt-web: Depende de: ros-kinetic-webkit-dependency
  • dependência do ros-kinetic-webkit: Depende: python-pyqt5.qtwebkit
  • python-pyqt5.qtwebkit: Depende: python-pyqt5 (= 5.8.2 + dfsg-1 + 16.04 + xenial + build19) mas 5.8.2 + dfsg-1 + 16.04 + xenial + build21 deve ser instalado E: Incapaz de corrigir problemas, você realizou pacotes quebrados.

Como você pode ver, ambos apontam para o mesmo pacote. Mas ao usar

 sudo apt-get install python-pyqt5

Eu obtenho

python-pyqt5 is already the newest version (5.8.2+dfsg-1+16.04+xenial+build21).

O que eu tentei

  1. Adicionando manualmente o seguinte deb a /etc/apt/sources.list

    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse  
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse  
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse  
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse  
    deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse  
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse  
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse  
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse  
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse  
    deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse  
    
  2. Instalando python-pyqt5 com pip3 install pyqt5

  3. Usando atualização, atualização, dist-update várias vezes com apt

  4. Instalando ros-kinetic-ros-base , o que não me causou erros de dependências

  5. Usando sudo apt-get install python-pyqt5=5.8.2+dfsg-1+16.04+xenial+build19 Dá a seguinte saída antes de aceitar a instalação:

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Starting pkgProblemResolver with broken count: 1
    Starting 2 pkgProblemResolver with broken count: 1
    Investigating (0) python-pyqt5.qtsvg [ amd64 ] < 5.8.2+dfsg-1+16.04+xenial+build21 > ( python )
    Broken python-pyqt5.qtsvg:amd64 Depends on python-pyqt5 [ amd64 ] < 5.8.2+dfsg-1+16.04+xenial+build21 -> 5.8.2+dfsg-1+16.04+xenial+build19 | 5.8.2+dfsg-1+16.04+xenial+build21 > ( python )(= 5.8.2+dfsg-1+16.04+xenial+build21)
    Considering python-pyqt5:amd64 10002 as a solution to python-pyqt5.qtsvg:amd64 1
    Removing python-pyqt5.qtsvg:amd64 rather than change python-pyqt5:amd64
    Investigating (0) ros-kinetic-python-qt-binding [ amd64 ] < 0.3.3-0xenial-20171104-175930-0800 > ( misc )
    Broken ros-kinetic-python-qt-binding:amd64 Depends on python-pyqt5.qtsvg [ amd64 ] < 5.8.2+dfsg-1+16.04+xenial+build21 > ( python )
    Considering python-pyqt5.qtsvg:amd64 1 as a solution to ros-kinetic-python-qt-binding:amd64 0
    Removing ros-kinetic-python-qt-binding:amd64 rather than change python-pyqt5.qtsvg:amd64
    Investigating (0) ros-kinetic-rviz [ amd64 ] < 1.12.15-0xenial-20180105-172609-0800 > ( misc )
    Broken ros-kinetic-rviz:amd64 Depends on ros-kinetic-python-qt-binding [ amd64 ] < 0.3.3-0xenial-20171104-175930-0800 > ( misc )
    Considering ros-kinetic-python-qt-binding:amd64 0 as a solution to ros-kinetic-rviz:amd64 -1
    Removing ros-kinetic-rviz:amd64 rather than change ros-kinetic-python-qt-binding:amd64
    Done
    Suggested packages:
       python-pyqt5-dbg
    The following packages will be REMOVED:
       python-pyqt5.qtsvg ros-kinetic-python-qt-binding ros-kinetic-rviz
    The following packages will be DOWNGRADED:
       python-pyqt5
    0 upgraded, 0 newly installed, 1 downgraded, 3 to remove and 0 not upgraded.
    Need to get 2.143 kB of archives
    

Mais informações

Eu tenho o neon LTS 5.8 instalado com as seguintes especificações:

  • Versão do Plasma do KDE: 5.8.8
  • Versão do KDE Frameworks: 5.42.0
  • Versão do Qt: 5.7.1
  • Versão do Kernel: 4.13.0-29-generic
  • Tipo de SO: 64 bits

Aqui vou listar todos os comandos que possam ser úteis seguidos de sua saída:

$ cat /etc/apt/sources.list.d/ros-latest.list 
deb http://packages.ros.org/ros/ubuntu xenial main

$ uname -a
Linux Ublion16 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ apt-cache policy python-pyqt5
 python-pyqt5:
 Installed: 5.8.2+dfsg-1+16.04+xenial+build21
 Candidate: 5.8.2+dfsg-1+16.04+xenial+build21
 Version table:
 *** 5.8.2+dfsg-1+16.04+xenial+build21 500
        500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     5.8.2+dfsg-1+16.04+xenial+build19 500
        500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
     5.8.2+dfsg-1+16.04+xenial+build13 500
        500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
     5.7+dfsg-3+16.04+build8 500
        500 http://archive.neon.kde.org/user/lts xenial/main amd64 Packages
     5.5.1+dfsg-3ubuntu4 500
        500 http://it.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        500 http://mirrors.ustc.edu.cn/ubuntu xenial/universe amd64 Packages
    
por nicofirst1 15.01.2018 / 13:57

2 respostas

0

Acabei de encontrar um problema muito semelhante ao seu, mas resolvi-o adicionando

deb http://cz.archive.ubuntu.com/ubuntu xenial main universe 

para o cabeçalho de /etc/apt/sources.list. Observe a palavra "xenial" nesta frase, é suposto ser o mesmo que a sua versão do Ubuntu. Se não funcionar, eu aconselho você a remover o /etc/apt/sources.list.d/ros-latest.list primeiro e tente novamente.

    
por user790034 01.02.2018 / 08:51
-1

Adicione as seguintes fontes de pacotes ao /etc/apt/sources.list.

deb http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

deb http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial main restricted universe multiverse

deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-security main restricted universe multiverse

deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse

deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse

deb-src http://mirrors.ustc.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse

Agora, siga estes passos de 1.2 neste link

    
por vikas kamboj 09.03.2018 / 18:08