OS/ROS2

[ROS2 Humble] 설치 에러, install error (E: Unable to correct problems, you have held broken packages)

쩡 (개발꿈나무) 2023. 6. 3. 13:31

[ 에러 내용 ]

The following packages have unmet dependencies:
libgbm-dev : Depends: libgbm1 .....

E: Unable to correct problems, you have held broken packages.

 

[ 원인 및 해결법 ]

패키지 리스트가 꼬여서 그렇다는 것 같다.. 지금 바빠서 조금 이따 생각나면 수정할 예정

일단 아래 명령어로 다운그레이드를 (좋은건아닌듯ㅠㅠ) 시켜서 해결했다.

sudo apt install libgbm1=22.2.5-0ubuntu0.1~22.04.1
sudo apt install libglapi-mesa=22.2.5-0ubuntu0.1~22.04.1

그런데, 이걸로 잘 설치하고 나서 재부팅 했더니

우분투에 GUI가 사라졌다 ㅠㅠ

그냥 까맣고 낯선 터미널 화면 (tty1) 이 뜨는데...

거기서는 또 아래 명령어로 우분투 화면을 살릴 수 있다는데 이건 직접 해본게 아니라서 기록만!

sudo apt-get install ubuntu-desktop

 

Ubuntu 18.04에 ROS2 Galactic 설치 시에 적었던 글

https://vongole-pasta.tistory.com/181

 

* 찾아본 방법 기록

- 된 것 : https://github.com/ros2/ros2/issues/1433

- 안 된 것 :https://svrforum.com/svr/43553