본문 바로가기

개발 일지, etc/Linux

[Linux Mint, Ubuntu(Linux)] 리눅스 에러(config failed, hub doesn't have any ports) 시행착오(+2024/03/23)

인공지능 모델을 돌리고, 거주지를 옮긴 이후 리눅스를 켰을 때 검은 화면이 뜨는 에러가 발생했습니다. 

해결해보려고 시도했으나, 결국에는 다시 리눅스 민트로 부팅함으로써 해결했습니다.

아래부터는 해결 시도에 관해 서술하겠습니다.

 

시도 1 :  내부적 문제 해결

처음에는 'config failed, hub doesn't have any ports' 에러가 발생했습니다. NVIDIA 드라이버, gdm3나 lightdm에 오류가 있다고 판단하여 아래 글 내용을 비롯해서 여러 글을 찾아보며 다시 설치하고 재부팅하길 반복했으나, 그 다음에는 검은 화면에 흰 색 커서가 뜨는 에러가 발생했습니다.

https://discourse.ubuntu-kr.org/t/hub-8-0-1-0-config-failed-hub-doesnt-have-any-ports-err-19/48938/8

 

도와주세요 hub 8-0:1.0: config failed, hub doesn't have any ports! (err -19)

안녕하세요 저도 동일한 문제를 겪고 있는데요… 제 상황은 듀얼부팅으로 윈도우10이랑 리눅스 우분투를 사용하려고 합니다 현재 윈도우는 깔려있는 상태고 우분트 리눅스 usb로 설치 과정중에

discourse.ubuntu-kr.org

https://ko.linux-console.net/?p=22462

 

Linux 부팅 시 검은 화면이 나타나는 문제를 해결하는 방법(해결됨)

Linux 부팅 시 검은 화면이 나타나는 문제를 해결하는 방법(해결됨) 매우 무해한 비디오 카드 설정(예: 드라이버 설치, 노트북의 비디오 출력용 비디오 카드 선택, 10비트 색 심도 활성화)은 초보자

ko.linux-console.net

따라서 아래 글을 따라해보았으나, 해결되지 않아 다른 방법을 시도했습니다.

https://abidan-korea.tistory.com/entry/ubuntu-모니터-검은화면-나오는-경우-해결방법

 

ubuntu 모니터 검은화면 나오는 경우 해결방법

hpkim0512.blogspot.com/2019/09/ubuntu-1804.html [Ubuntu] 우분투 18.04 설치 시 검은화면 해결 최근에 연구용으로 워크스테이션을 하나 구매하였으며 사양은 아래와 같다. cpu: AMD 라이젠9 3900x gpu: Nvidia RTX2060 우

abidan-korea.tistory.com

 

시도 2 : Windows 11 설치

리눅스로 무언가를 할 수 없다고 판단하여 갖고 있는 맥북으로 Windows 11 부팅 USB를 만들었습니다. 이때 FAT32 특성상 마운트된 파일들 전체를 복사해 붙여넣을 수 없었어서 2개의 USB를 사용했습니다.

https://shanepark.tistory.com/m/399

 

MacOS 에서 Windows11 설치 USB 만들기

Intro 집에 새로운 노트북이 생겼습니다. 사실 저랑 와이프는 둘다 맥북을 사용하고 있고, 회사에서는 리눅스 (우분투) 환경에서 개발을 하고 있다 보니, 일년에 한번정도 있을 법한 아주 가끔씩

shanepark.tistory.com

https://gist.github.com/bmatcuk/fda5ab0fb127e9fd62eaf43e845a51c3

 

Creating a Bootable Windows USB from ISO on a Mac

Creating a Bootable Windows USB from ISO on a Mac. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

이때 진행되다가도 '새 파티션을 만들 수 없습니다' 에러가 계속 발생하여 위 방법도 포기하였고, 리눅스 민트 부팅 USB를 다시 만들어 설치해 해결하였습니다.

https://www.easeus.co.kr/partition-manager-software/we-could-not-create-a-new-partition-or-locate-an-existing-one.html

 

'새 파티션을 만들거나 기존 파티션을 찾을 수 없습니다.'오류 해결하기

'새 파티션을 만들거나 기존 파티션을 찾을 수 없음'Windows 10 USB, 오류 0x8004240f, 0x80042468, SSD, RAID, 할당되지 않은 공간 및 기타 관련 Windows 10 설치 오류를 수정하기위한 전체 솔루션을 가져옵니다.

www.easeus.co.kr

 

+2024/03/10 해결

아래 사이트의 코드를 작동시켰더니 똑같은 에러가 발생했습니다.

https://cryptosalamander.tistory.com/95

 

[CUDA / Ubuntu] Cuda Installation failed 에러 해결법

CUDA를 runfile 형태로 다운받을 때 발생하는 에러 해결법 CUDA를 우분투 환경에서 runfile 형태로 설치하는데, 자꾸 에러가 발생했다. Installation failed, See log at /var/log/cuda-installer.log for details. 대부분의

cryptosalamander.tistory.com

 

https://hyen4110.tistory.com/m/108

 

[NVIDIA] Linux NVIDIA driver 설치 오류 - 'exit X before installing'

리눅스 NVIDIA driver 수동 설치 중 아래 에러 발생 You appear to be running an X server; please exit X before installing. For further details, please see the section INSTALLING THE NVIDIA DRIVER in the README available on the Linux driver downl

hyen4110.tistory.com

 

특히 아래 코드가 치명적이었습니다.

sudo service lightdm stop // x server 중지
sudo init 3 // runlevel 3으로 조정
sudo ./cuda_10.2.89_440.33.01_linux.run // 설치 실행

<< 설치 완료 >>
sudo service lightdm start // x server 재시작

 

lightdm 관련된 코드를 건들면 위와 같은 에러가 발생되는 것으로 추정됩니다.

이는 아래 코드를 실행시킴으로써 해결했습니다!😎

sudo -i
vi /etc/lightdm/lightdm.conf

#lightdm.conf
[LightDM]
logind-check-graphical=true

아래 코드들은 추가적으로 영향을 미쳤을 것으로 추정되는 커맨드입니다.

sudo apt-get update
sudo apt-get upgrade
sudo ubuntu-drivers autoinstall

vi /etc/lightdm/lightdm.conf

#lightdm.conf
[Seat:*]
autologin-user=username

 

+2024/03/23

다시 똑같은 에러가 발생하여, 우분투로 다시 부팅했습니다...

https://amkorousagi-money.tistory.com/entry/우분투-부팅-usb-설치-방법-우분투-설치-파티션-설정

 

우분투 부팅 usb 설치 방법 (우분투 설치, 파티션 설정)

이 포스팅에서는 우분투 부팅 usb를 통해 컴퓨터를 우분투로 포맷하는 방법에 대해 다룹니다. (우분투 설치) 부팅 usb 만드는 방법은 아래의 이전 포스팅을 참고해 주시면 감사하겠습니다. 우분투

amkorousagi-money.tistory.com

https://namu.wiki/w/멀티부팅

 

멀티부팅

MultiBoot 하나의 기기 에 여러 운영체제 를 설치해 부팅 시키는 것. 관련 사진 Windows XP까지

namu.wiki

기존 리눅스 민트용 파티션과 우분투용 파티션을 분할하였습니다. 

리눅스 민트에서 발생했던 에러는 추후에 다시 시도해보겠습니다 😢 

 

---

 

참고로, 우분투에서 파이어폭스 등 웹 브라우저를 실행할 시 깨지는 현상이 발생하는데, 이는 외부 그래픽 카드와 관련된 문제인 것 같습니다.

이는 Nvidia X server settings를 열어서 PRIME Profile을 NVIDIA(Performance Mode)로 변경시켜주면 됩니다.

 

Reference : 

https://abidan-korea.tistory.com/entry/ubuntu-모니터-검은화면-나오는-경우-해결방법

 

ubuntu 모니터 검은화면 나오는 경우 해결방법

hpkim0512.blogspot.com/2019/09/ubuntu-1804.html [Ubuntu] 우분투 18.04 설치 시 검은화면 해결 최근에 연구용으로 워크스테이션을 하나 구매하였으며 사양은 아래와 같다. cpu: AMD 라이젠9 3900x gpu: Nvidia RTX2060 우

abidan-korea.tistory.com

https://www.reddit.com/r/linux4noobs/comments/l4ctdq/lightdm_dont_start/

 

From the linux4noobs community on Reddit: Lightdm dont start

Explore this post and more from the linux4noobs community

www.reddit.com

https://wiki.archlinux.org/title/LightDM#LightDM_does_not_appear_or_monitor_only_displays_TTY_output

 

LightDM - ArchWiki

LightDM is a cross-desktop display manager. Its key features are: Cross-desktop - supports different desktop technologies. Supports different display technologies (X, Mir, Wayland ...). Lightweight - low memory usage and high performance. Supports guest se

wiki.archlinux.org