터틀봇3 버거 gazebo 설치 시 에러가 발생합니다

안녕하세요.
Turtlebot3의 Quick Start Guide 에서 PC Setup 과정 중 gazebo를 설치하는 과정에서 에러가 발생하여 문의드립니다.
pc setup에서 $sudo apt install ros-humble-gazebo-* 명령어를 실행하면 아래와 같은 에러가 발생하며 설치가 제대로 되지 않습니다.

Hi.
I’m having issues installing gazebo in PC setup.
when i run $sudo apt install ros-humble-gazebo-* , i got the following error

current environment : ubuntu 22.04 with VMware Fusion, ros2 humble

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'ros-humble-gazebo-model-attachment-plugin-msgs-dbgsym' for glob 'ros-humble-gazebo-*'
...
Note, selecting 'ros-humble-gazebo-msgs' for glob 'ros-humble-gazebo-*'
Some packages could not be installed. This may mean that you have requested an impossible situating 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-humble-gazebo-dev : Depends: gazebo but it is not installable
                          Depends: libgazebo-dev but it is not installable
E: Unable to correct problems, you have held broken packages.

안녕하세요.

로그를 확인해 보았을 때, 저장소 문제로 파악됩니다.

$ sudo apt update
$ sudo apt upgrade

를 진행하신 후 다시 시도 해 보세요. 그래도 해결이 되지 않는다면,

  1. Ubuntu 버전 확인

    ROS Humble은 Ubuntu 22.04 Jammy Jellyfish에서 주로 사용됩니다. 만약 다른 버전을 사용 중이라면 호환성 문제일 수 있으니, 해당 버전의 지원 여부를 확인해보세요.

  2. 깨진 패키지 수정

    깨진 패키지가 있을 경우 아래 명령어를 사용하여 복구할 수 있습니다.

    sudo apt --fix-broken install
    

    그 후 다시 설치 명령어를 실행해보세요.

안녕하세요. 답변 감사합니다.

말씀해주신 명령어들을 실행해 보았으나 여전히 동일한 문제가 발생합니다.
lsb_release -a 명령어로 확인해본 결과 ubuntu 22.04 LTS 버전인것 또한 확인했습니다.

혹시 다른 해결방법이 있을까요? 아니면 vmware fusion으로 unbuntu를 활용한 것이 문제가 될수도 있나요?

안녕하세요,

현재 가제보가 설치되지 않는 문제는 가상환경이나 우분투 환경의 문제로 의심됩니다.

가상환경은 몇 가지 제약이나 불안정한 부분이 있을 수 있어 권장드리지 않고 있습니다.

이와 같은 문제를 피하기 위해 가상환경 대신, 안정적인 우분투 듀얼부팅 환경에서 가제보를 설치하여 사용하실 것을 권장드립니다.

1 Like