Pacotes quebrados ao instalar o Gazebo 8.0 no Ubuntu

1

Estou tentando instalar o simulador do Gazebo 8.0 para o Ubuntu 16.04. Eu tentei o pacote .deb que me deu este script bash:

gazebo8_install.sh:

# Description:
# This script installs gazebo onto an Ubuntu system.

codename='lsb_release -sc'

# Make sure we are running a valid Ubuntu distribution
case $codename in
  "xenial" | "yakkety" )
  ;;
  *)
    echo "This script will only work on Ubuntu xenial, and yakkety"
    exit 0
esac

# Add the OSRF repository
if [ ! -e /etc/apt/sources.list.d/gazebo-latest.list ]; then
  sudo sh -c "echo \"deb http://packages.osrfoundation.org/gazebo/ubuntu ${codename} main\" > /etc/apt/sources.list.d/gazebo-latest.list"
fi

# Download the OSRF keys
has_key='apt-key list | grep "OSRF deb-builder"'

echo "Downloading keys"
if [ -z "$has_key" ]; then
  wget --quiet http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
fi


# Update apt
echo "Retrieving packages"
sudo apt-get update -qq
echo "OK"

# Install gazebo
echo "Installing Gazebo"
sudo apt-get install gazebo8 libgazebo8-dev

echo "Complete."
echo "Type gazebo to start the simulator."

Eu corri no terminal com esta saída:

Downloading keys
OK
Retrieving packages
OK
Installing Gazebo
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:
 gazebo8 : Depends: libgazebo8 (= 8.0.0-1~xenial) but it is not going to be installed
           Depends: libsdformat5 but it is not going to be installed
           Recommends: gazebo8-plugin-base
 libgazebo8-dev : Depends: libsdformat5-dev but it is not going to be installed
                  Depends: libignition-math3-dev (> 3.0.0-1) but it is not going to be installed
                  Depends: libignition-transport3-dev (> 3.0.1-1) but it is not going to be installed
                  Depends: libignition-msgs-dev (>= 0.6.999) but it is not going to be installed
                  Depends: libgazebo8 (= 8.0.0-1~xenial) but it is not going to be installed
                  Depends: gazebo8-plugin-base (= 8.0.0-1~xenial)
E: Unable to correct problems, you have held broken packages.
Complete.
Type gazebo to start the simulator.

Diz que eu segurei pacotes quebrados. Mas o comando apt-mark showhold retorna vazio. Eu tentei executar o Gazebo, mas ele inicia gazebo7.0 não 8.0 . Qual é o problema aqui & amp; como resolvo isso?

    
por kneelb4darth 08.04.2017 / 08:13

2 respostas

1

Na minha configuração, o libsdformat5-dev teve um conflito porque uma versão anterior também estava presente. Houve também conflito no pacote libignition-math3 que foi entendido como requisito para libsdformat5-dev . Depois de resolver os conflitos nas dependências, tudo foi instalado corretamente.

    
por kneelb4darth 08.04.2017 / 16:40
1

Eu segui os passos descritos aqui e acabei com as mesmas mensagens de erro indicando que havia dependências não satisfeitas com libsdformat5

O que resolveu foi instalar o libignition-math3 primeiro

sudo apt-get install libignition-math3

Execução que resolveu os conflitos de dependências. Depois disso eu instale o gazebo8:

sudo apt-get install gazebo8

E funcionou, espero que isso ajude.

    
por Jorge Nicho 29.06.2017 / 05:43