Ubuntu Collection

Posted on Dec 26, 2023
tl;dr: only from my experiences

Ubuntu

ISO

USB Stick

Troubleshooting

  • cannot find 'grub_platform'
    • 바이어스 설정에서 부트 디바이스를 선택할 때 UEFI가 아닌 것을 선택
  • unable to find a medium containing a live file system
    • Rufus USB 설치 모드를 ISO가 아닌 DD로 바꿔서 다시 시도

한글 설정 (23.12.26, 22.04 LTS 기준)

  • 튜토리얼 by Shane’s planet
  • 언어팩 설치: Settings > Region & Language > Manage Installed Languages > Install / Remove Lnaguages… > Korean > Apply
  • 키보드 레이아웃: Settings > Keyboard > Input Sources > ‘+’ > Korean > Korean (Hangul)
    • (만약 Hangul이 보이지 않으면 재부팅)
  • 한/영키: Settings > Keyboard > Input Sources > Korean (Hangul) 오른쪽 드롭다운 버튼 > Preferences > Hangul Toggle Key > Add

Apps

Services

Developer’s tool


NVIDIA CUDA Toolkit

Install

Troubleshooting

  • $ sudo apt --fix-broken install 에러
$ sudo apt --fix-broken install
...
The following package was automatically installed and is no longer required:
nvidia-firmware-535-535.129.03
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
nvidia-compute-utils-535 nvidia-kernel-common-535
The following packages will be upgraded:
nvidia-compute-utils-535 nvidia-kernel-common-535
2 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
196 not fully installed or removed.
Need to get 0 B/38.6 MB of archives.
After this operation, 61.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
...
dpkg: error processing archive /var/cache/apt/archives/nvidia-kernel-common-535_
535.129.03-0ubuntu1_amd64.deb (--unpack):
...
dpkg: error processing archive /var/cache/apt/archives/nvidia-compute-utils-535_
535.129.03-0ubuntu1_amd64.deb (--unpack):
...
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-kernel-common-535_535.129.03-0ubuntu1_amd64.deb
/var/cache/apt/archives/nvidia-compute-utils-535_535.129.03-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
  • 해결 (출처-ChatGPT):
$ sudo dpkg --purge --force-all nvidia-firmware-535-535.129.03
$ sudo dpkg --purge --force-all nvidia-kernel-common-535
$ sudo apt --fix-broken install
$ sudo apt install nvidia-driver-535
$ sudo apt autoremove

Tips

  • GPU 자원 모니터: $ watch nvidia-smi