๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
IT-Engineering/TroubleShooting

์šฐ๋ถ„ํˆฌ(Ubuntu) 16 ์—์„œ 18๋กœ ์—…๊ทธ๋ ˆ์ด๋“œ๊ฐ€ ์•ˆ ๋  ๋•Œ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

by ๐Ÿงž‍โ™‚๏ธ 2020. 7. 17.
๋ฐ˜์‘ํ˜•

์–ด๋Š ๋‚ ์ธ๊ฐ€๋ถ€ํ„ฐ ์ง€์†์ ์œผ๋กœ Ubuntu 18๋กœ ์—…๋ฐ์ดํŠธํ•˜๋ผ๋Š” ๋ฉ”์‹œ์ง€๊ฐ€ ๋–ด๋Š”๋ฐ, OK ์•Œ๊ฒ ์–ด ํ•˜๊ณ  ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ๋„ ๋ฐ˜์‘์ด ์—†๋Š” ๊ฒฝ์šฐ๊ฐ€ ๋งŽ์•˜๋‹ค. ์—ฌ๋Ÿฌ๋ฒˆ ๋ฐ˜๋ณต๋˜๋‹ˆ '์ด๊ฑด ํ„ฐ๋ฏธ๋„์—์„œ ํ•ด๊ฒฐํ•ด์•ผํ•  ๋ฌธ์ œ๊ฒ ๊ตฐ'ํ•˜๋ฉฐ ํ„ฐ๋ฏธ๋„์—์„œ ์ด๋ž˜์ €๋ž˜ ๋งŒ์ ธ๋ดค๋Š”๋ฐ, ์ž˜๋˜์ง€ ์•Š๋‹ค๊ฐ€ ๊ฒฐ๊ตญ์€ ์—…๊ทธ๋ ˆ์ด๋“œ๋ฅผ ํ•˜๊ฒŒ ๋˜์–ด ๊ธฐ์œ ๋งˆ์Œ์œผ๋กœ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์„ ๊ณต์œ ํ•œ๋‹ค.

๋ณธ ๊ฒฝ์šฐ๋Š” Ubuntu 16.04 LTS์—์„œ 18.04 LTS๋กœ ์—…๊ทธ๋ ˆ์ด๋“œ ํ•œ ํ›„๊ธฐ์ด๋‹ค. LTS๋Š” Long-Term Support๋กœ ์˜ค๋žœ๊ธฐ๊ฐ„ ์œ ์ง€๋ณด์ˆ˜๊ฐ€ ๋˜๋Š” ์•ˆ์ •ํ™”๋œ ๋ฒ„์ „์„ ๋œปํ•œ๋‹ค.

๋ฌธ์ œ๋Š” ํฌ๊ฒŒ ๋‹ค์Œ์˜ ๋‘๊ฐ€์ง€ ๋ฐฉ์‹์œผ๋กœ ๋‚˜ํƒ€๋‚  ๊ฒƒ์ด๋‹ค. ๋จผ์ € ์—…๊ทธ๋ ˆ์ด๋“œ๋ฅผ ํ•˜๊ธฐ ์ „์— ๋‹ค์Œ์˜ ๋ช…๋ น์–ด๋“ค์„ ์ž…๋ ฅํ•ด๋ณด์ž.

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo do-release-upgrade

์ง€๊ธˆ๊นŒ์ง€ ๋ณธ์ธ์ด ์„ค์ •ํ•ด๋†จ๋˜ ์ƒํ™ฉ์— ๋”ฐ๋ผ ๊ฐ์–‘๊ฐ์ƒ‰์˜ ์ƒํ™ฉ๋“ค์ด ํŽผ์ณ์งˆ ๊ฒƒ์ด๋‹ค. ์–ด์จŒ๋“ , ๊ณ„์†ํ•ด์„œ ์—…๊ทธ๋ ˆ์ด๋“œ์— ์‹คํŒจํ–ˆ๋‹ค๋ฉด ๋‹ค์Œ์˜ ๋‘๊ฐ€์ง€ ๊ฒฝ์šฐ์˜€์„ ๊ฐ€๋Šฅ์„ฑ์ด ๋†’๋‹ค.

Checking for a new Ubuntu release

1. No new release found.
2. Please install all available updates for your release before upgrading.

1๋ฒˆ์˜ ๊ฒฝ์šฐ๋Š” ๋‹ค์Œ์˜ ์กฐ์น˜๋ฅผ ๋”ฐ๋ผ๊ฐ€๋ณด์ž.

ํ„ฐ๋ฏธ๋„ ์ฐฝ์—์„œ ๋‹ค์Œ์„ ์ž…๋ ฅํ•˜์ž

software-properties-gtk

Software & Updates

 

Download from์˜ ์„œ๋ฒ„๊ฐ€ ์ž˜ ๋Œ์•„๊ฐ€๋Š”์ง€ ์ž˜ ๋ฐ›์•„์ง€๋Š” ๊ฒƒ์ธ์ง€ ํ™•์ธํ•˜์ž. ํ•„์ž์˜ ๊ฒฝ์šฐ ์นด์นด์˜ค ์„œ๋ฒ„๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๊ฐ€ ๊ทธ๋ƒฅ Main server๋กœ ๋ณ€๊ฒฝํ–ˆ๋‹ค.

Software & Updates์˜ Updates ํƒญ

๊ทธ๋ฆฌ๊ณ  Updatesํƒญ์—์„œ ๋งจ ํ•˜๋‹จ์˜ Ubuntu version ์„ ํƒ์„ ๊ทธ๋ฆผ๊ณผ ๊ฐ™์ด ํ–ˆ๋Š”์ง€ ํ™•์ธํ•ด๋ณด์ž.

2๋ฒˆ์˜ ๊ฒฝ์šฐ์—๋Š” ๋‹ค์Œ์˜ ํ•ด๊ฒฐ ๋‚ด์šฉ์ด ๋„์›€์ด ๋  ๊ฒƒ์ด๋ผ๊ณ  ์ƒ๊ฐํ•œ๋‹ค. ๋งŒ์•ฝ์— sudo do-release-upgrade๋ฅผ ์ž…๋ ฅํ–ˆ์„ ๋•Œ ์ƒํ™ฉ์ด ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฐฉ์‹์ด๋ผ๋ฉด ์ž˜ ์ฐพ์•„์˜ค์…จ๋‹ค.

(base) sky@SARK:~ $ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
(base) sky@SARK:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  cuda-cudart-dev-10-2 cuda-driver-dev-10-2 libcublas7.5 libcudart7.5
  libcufft7.5 libcufftw7.5 libcurand7.5 libcusolver7.5 libcusparse7.5
  libnppc7.5 libnppi7.5 libnpps7.5 libnvblas7.5 libnvrtc7.5 libnvtoolsext1
  libnvvm3 libthrust-dev libuv1 libvdpau-dev nvidia-cuda-doc nvidia-cuda-gdb
  nvidia-opencl-dev opencl-headers
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  cuda-drivers
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

์ค‘์š”ํ•œ ๊ฒƒ์€ ์ด๋ ‡๊ฒŒ ๋ฌด์–ธ๊ฐ€ upgrade๊ฐ€ ๋˜์ง€ ์•Š๋Š” ํŒจํ‚ค์ง€๋“ค์ด ๋‚จ์•„์žˆ์–ด์„œ๋Š” ์•ˆ๋˜๋Š” ๊ฒƒ์ด๋‹ค. ์ด ๋•Œ ํ•ด์•ผํ•  ์ผ์€ autoremove๋ฅผ ํ•˜๋ผ๊ณ  ๋œจ๋Š” ๊ฒฝ์šฐ ํ•ด๋‹น ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•ด์ค€๋‹ค.

sudo apt autoremove

ํ™•์ธ์„ ๋ฌป๋Š” ๊ฒฝ์šฐ ๊ณผ๊ฐํ•˜๊ฒŒ y๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์ž. ๋‹ค์‹œ ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ด๋ณด์ž.

sudo do-release-upgrade

์ด๋ฒˆ์—๋„ ์•ˆ๋œ๋‹ค๋ฉด, ์•„๊นŒ ์œ„ ๋กœ๊ทธ์—์„œ ์ง์ž‘ํ•  ์ˆ˜ ์žˆ๋Š” ๋ถ€๋ถ„์ด ์žˆ๋‹ค. 'The following packages have been kept back', '1 not upgraded.' ์ด ๋ถ€๋ถ„์ด๋‹ค. ํ•„์ž์˜ ๊ฒฝ์šฐ์—๋Š” cuda-drivers๋ผ๋Š” ๋†ˆ์ด ๋ง์ฝ์ด๋‹ค. ์•„๋ž˜์™€ ๊ฐ™์ด ์ง€์›Œ๋ฒ„๋ฆฌ์ž.

sudo apt remove cuda-drivers

์ด๋ฒˆ์—” ์•„๋ž˜์˜ ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•ด๋ณด์ž.

sudo apt-get upgrade

์œ„์—์„œ ์„ค๋ช…ํ•œ ๊ฒƒ์„ ์ญ‰ ํ™•์ธํ–ˆ๊ณ , ๋ฐ”๋กœ ์œ„์˜ ์ด ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ–ˆ์„ ๋•Œ ์•„๋ž˜์™€ ๊ฐ™์ด ์ถœ๋ ฅ์ด ๋œ๋‹ค๋ฉด ์•„๋งˆ๋„ ์—…๊ทธ๋ ˆ์ด๋“œ๊ฐ€ ์ง„ํ–‰๋  ๊ฒƒ์ด๋‹ค.

Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

์˜์กด์„ฑ ๋•Œ๋ฌธ์— ๋‹ค์‹œ ๋ฌด์–ธ๊ฐ€ ์ง€์šฐ๋ผ๊ณ  ๋‚˜์˜ฌ ์ˆ˜๋„ ์žˆ๋‹ค. ์ด ๊ฒฝ์šฐ๋Š” ์ด ๋ถ€๋ถ„์„ ์ ๊ทน ํ™œ์šฉํ•˜์ž.

sudo apt autoremove

์ด์ œ ๋‹ค์‹œ ํ•œ๋ฒˆ ์•„๋ž˜์™€ ๊ฐ™์ด ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ–ˆ์„ ๋•Œ ์ž˜ ๋™์ž‘ํ•œ๋‹ค๋ฉด, ์„ฑ๊ณต์ด๋‹ค. ์ถ•ํ•˜ํ•œ๋‹ค.

sudo do-release-upgrade
(base) sky@K0878P2:~ $ sudo do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]                                         
Get:2 Upgrade tool [1,242 kB]                                               
Fetched 1,243 kB in 0s (0 B/s)                                               
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg'
extracting 'bionic.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree       
Reading state information... Done

๋„์›€์ด ๋ ์ง€๋„ ๋ชฐ๋ผ์„œ ์ „์ฒด log๋“ค์„ ์•„๋ž˜์— ์ฐธ๊ณ ์šฉ์œผ๋กœ ๋„ฃ์–ด๋‘๊ฒ ๋‹ค.

(base) sky@SARK:~ $ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
(base) sky@SARK:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  cuda-cudart-dev-10-2 cuda-driver-dev-10-2 libcublas7.5 libcudart7.5
  libcufft7.5 libcufftw7.5 libcurand7.5 libcusolver7.5 libcusparse7.5
  libnppc7.5 libnppi7.5 libnpps7.5 libnvblas7.5 libnvrtc7.5 libnvtoolsext1
  libnvvm3 libthrust-dev libuv1 libvdpau-dev nvidia-cuda-doc nvidia-cuda-gdb
  nvidia-opencl-dev opencl-headers
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  cuda-drivers
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
(base) sky@SARK:~ $ sudo apt autoremove
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages will be REMOVED:
  cuda-cudart-dev-10-2 cuda-driver-dev-10-2 libcublas7.5 libcudart7.5
  libcufft7.5 libcufftw7.5 libcurand7.5 libcusolver7.5 libcusparse7.5
  libnppc7.5 libnppi7.5 libnpps7.5 libnvblas7.5 libnvrtc7.5 libnvtoolsext1
  libnvvm3 libthrust-dev libuv1 libvdpau-dev nvidia-cuda-doc nvidia-cuda-gdb
  nvidia-opencl-dev opencl-headers
0 upgraded, 0 newly installed, 23 to remove and 1 not upgraded.
After this operation, 554 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 356991 files and directories currently installed.)
Removing cuda-cudart-dev-10-2 (10.2.89-1) ...
Removing cuda-driver-dev-10-2 (10.2.89-1) ...
Removing libnvblas7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcublas7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcudart7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcufftw7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcufft7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcurand7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcusolver7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcusparse7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libnppi7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libnpps7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libnppc7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libnvrtc7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libnvtoolsext1:amd64 (7.5.18-0ubuntu1) ...
Removing libnvvm3:amd64 (7.5.18-0ubuntu1) ...
Removing libthrust-dev (1.8.1-1) ...
Removing libuv1:amd64 (1.8.0-1) ...
Removing libvdpau-dev:amd64 (1.1.1-3ubuntu1) ...
Removing nvidia-cuda-doc (7.5.18-0ubuntu1) ...
Removing nvidia-cuda-gdb (7.5.18-0ubuntu1) ...
Removing nvidia-opencl-dev:amd64 (7.5.18-0ubuntu1) ...
Removing opencl-headers (2.0~svn32091-2) ...
Processing triggers for libc-bin (2.23-0ubuntu11.2) ...
Processing triggers for man-db (2.7.5-1) ...
(base) sky@SARK:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  cuda-drivers
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
(base) sky@SARK:~ $



(base) sky@SARK:~ $ sudo apt autoremove
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages will be REMOVED:
  cuda-cudart-dev-10-2 cuda-driver-dev-10-2 libcublas7.5 libcudart7.5
  libcufft7.5 libcufftw7.5 libcurand7.5 libcusolver7.5 libcusparse7.5
  libnppc7.5 libnppi7.5 libnpps7.5 libnvblas7.5 libnvrtc7.5 libnvtoolsext1
  libnvvm3 libthrust-dev libuv1 libvdpau-dev nvidia-cuda-doc nvidia-cuda-gdb
  nvidia-opencl-dev opencl-headers
0 upgraded, 0 newly installed, 23 to remove and 1 not upgraded.
After this operation, 554 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 356991 files and directories currently installed.)
Removing cuda-cudart-dev-10-2 (10.2.89-1) ...
Removing cuda-driver-dev-10-2 (10.2.89-1) ...
Removing libnvblas7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcublas7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcudart7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcufftw7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcufft7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcurand7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcusolver7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libcusparse7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libnppi7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libnpps7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libnppc7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libnvrtc7.5:amd64 (7.5.18-0ubuntu1) ...
Removing libnvtoolsext1:amd64 (7.5.18-0ubuntu1) ...
Removing libnvvm3:amd64 (7.5.18-0ubuntu1) ...
Removing libthrust-dev (1.8.1-1) ...
Removing libuv1:amd64 (1.8.0-1) ...
Removing libvdpau-dev:amd64 (1.1.1-3ubuntu1) ...
Removing nvidia-cuda-doc (7.5.18-0ubuntu1) ...
Removing nvidia-cuda-gdb (7.5.18-0ubuntu1) ...
Removing nvidia-opencl-dev:amd64 (7.5.18-0ubuntu1) ...
Removing opencl-headers (2.0~svn32091-2) ...
Processing triggers for libc-bin (2.23-0ubuntu11.2) ...
Processing triggers for man-db (2.7.5-1) ...
(base) sky@SARK:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  cuda-drivers
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
(base) sky@SARK:~ $ sudo do-release-upgrade
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
(base) sky@SARK:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  cuda-drivers
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
(base) sky@SARK:~ $ sudo apt remove cuda-drivers
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bbswitch-dkms cuda-command-line-tools-10-1 cuda-compiler-10-1
  cuda-cudart-10-1 cuda-cudart-dev-10-1 cuda-cufft-10-1 cuda-cufft-dev-10-1
  cuda-cuobjdump-10-1 cuda-cupti-10-1 cuda-curand-10-1 cuda-curand-dev-10-1
  cuda-cusolver-10-1 cuda-cusolver-dev-10-1 cuda-cusparse-10-1
  cuda-cusparse-dev-10-1 cuda-documentation-10-1 cuda-driver-dev-10-1
  cuda-gdb-10-1 cuda-gpu-library-advisor-10-1 cuda-libraries-10-1
  cuda-libraries-dev-10-1 cuda-license-10-1 cuda-memcheck-10-1
  cuda-misc-headers-10-1 cuda-npp-10-1 cuda-npp-dev-10-1 cuda-nsight-10-1
  cuda-nsight-compute-10-1 cuda-nsight-systems-10-1 cuda-nvcc-10-1
  cuda-nvdisasm-10-1 cuda-nvgraph-10-1 cuda-nvgraph-dev-10-1 cuda-nvjpeg-10-1
  cuda-nvjpeg-dev-10-1 cuda-nvml-dev-10-1 cuda-nvprof-10-1 cuda-nvprune-10-1
  cuda-nvrtc-10-1 cuda-nvrtc-dev-10-1 cuda-nvtx-10-1 cuda-nvvp-10-1
  cuda-samples-10-1 cuda-sanitizer-api-10-1 cuda-toolkit-10-1 cuda-tools-10-1
  cuda-visual-tools-10-1 dkms freeglut3 freeglut3-dev lib32gcc1 libc6-i386
  libcublas-dev libcuda1-440 libjansson4 libxi-dev libxmu-dev libxmu-headers
  libxnvctrl0 nsight-compute-2019.5.0 nsight-systems-2019.5.2 nvidia-440
  nvidia-440-dev nvidia-modprobe nvidia-prime nvidia-settings
  screen-resolution-extra
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  cuda-10-1 cuda-demo-suite-10-1 cuda-drivers cuda-runtime-10-1
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 11.2 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 354984 files and directories currently installed.)
Removing cuda-10-1 (10.1.243-1) ...
Removing cuda-demo-suite-10-1 (10.1.243-1) ...
Removing cuda-runtime-10-1 (10.1.243-1) ...
Removing cuda-drivers (440.64.00-1) ...
(base) sky@SARK:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  bbswitch-dkms cuda-command-line-tools-10-1 cuda-compiler-10-1
  cuda-cudart-10-1 cuda-cudart-dev-10-1 cuda-cufft-10-1 cuda-cufft-dev-10-1
  cuda-cuobjdump-10-1 cuda-cupti-10-1 cuda-curand-10-1 cuda-curand-dev-10-1
  cuda-cusolver-10-1 cuda-cusolver-dev-10-1 cuda-cusparse-10-1
  cuda-cusparse-dev-10-1 cuda-documentation-10-1 cuda-driver-dev-10-1
  cuda-gdb-10-1 cuda-gpu-library-advisor-10-1 cuda-libraries-10-1
  cuda-libraries-dev-10-1 cuda-license-10-1 cuda-memcheck-10-1
  cuda-misc-headers-10-1 cuda-npp-10-1 cuda-npp-dev-10-1 cuda-nsight-10-1
  cuda-nsight-compute-10-1 cuda-nsight-systems-10-1 cuda-nvcc-10-1
  cuda-nvdisasm-10-1 cuda-nvgraph-10-1 cuda-nvgraph-dev-10-1 cuda-nvjpeg-10-1
  cuda-nvjpeg-dev-10-1 cuda-nvml-dev-10-1 cuda-nvprof-10-1 cuda-nvprune-10-1
  cuda-nvrtc-10-1 cuda-nvrtc-dev-10-1 cuda-nvtx-10-1 cuda-nvvp-10-1
  cuda-samples-10-1 cuda-sanitizer-api-10-1 cuda-toolkit-10-1 cuda-tools-10-1
  cuda-visual-tools-10-1 dkms freeglut3 freeglut3-dev lib32gcc1 libc6-i386
  libcublas-dev libcuda1-440 libjansson4 libxi-dev libxmu-dev libxmu-headers
  libxnvctrl0 nsight-compute-2019.5.0 nsight-systems-2019.5.2 nvidia-440
  nvidia-440-dev nvidia-modprobe nvidia-prime nvidia-settings
  screen-resolution-extra
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(base) sky@SARK:~ $ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages will be REMOVED:
  bbswitch-dkms cuda-command-line-tools-10-1 cuda-compiler-10-1
  cuda-cudart-10-1 cuda-cudart-dev-10-1 cuda-cufft-10-1 cuda-cufft-dev-10-1
  cuda-cuobjdump-10-1 cuda-cupti-10-1 cuda-curand-10-1 cuda-curand-dev-10-1
  cuda-cusolver-10-1 cuda-cusolver-dev-10-1 cuda-cusparse-10-1
  cuda-cusparse-dev-10-1 cuda-documentation-10-1 cuda-driver-dev-10-1
  cuda-gdb-10-1 cuda-gpu-library-advisor-10-1 cuda-libraries-10-1
  cuda-libraries-dev-10-1 cuda-license-10-1 cuda-memcheck-10-1
  cuda-misc-headers-10-1 cuda-npp-10-1 cuda-npp-dev-10-1 cuda-nsight-10-1
  cuda-nsight-compute-10-1 cuda-nsight-systems-10-1 cuda-nvcc-10-1
  cuda-nvdisasm-10-1 cuda-nvgraph-10-1 cuda-nvgraph-dev-10-1 cuda-nvjpeg-10-1
  cuda-nvjpeg-dev-10-1 cuda-nvml-dev-10-1 cuda-nvprof-10-1 cuda-nvprune-10-1
  cuda-nvrtc-10-1 cuda-nvrtc-dev-10-1 cuda-nvtx-10-1 cuda-nvvp-10-1
  cuda-samples-10-1 cuda-sanitizer-api-10-1 cuda-toolkit-10-1 cuda-tools-10-1
  cuda-visual-tools-10-1 dkms freeglut3 freeglut3-dev lib32gcc1 libc6-i386
  libcublas-dev libcuda1-440 libjansson4 libxi-dev libxmu-dev libxmu-headers
  libxnvctrl0 nsight-compute-2019.5.0 nsight-systems-2019.5.2 nvidia-440
  nvidia-440-dev nvidia-modprobe nvidia-prime nvidia-settings
  screen-resolution-extra
0 upgraded, 0 newly installed, 67 to remove and 0 not upgraded.
After this operation, 4,238 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 354956 files and directories currently installed.)
Removing nvidia-prime (0.8.2) ...
Removing bbswitch-dkms (0.8-3ubuntu1) ...

-------- Uninstall Beginning --------
Module:  bbswitch
Version: 0.8
Kernel:  4.15.0-106-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

bbswitch.ko:
- Uninstallation
  - Deleting from: /lib/modules/4.15.0-106-generic/updates/dkms/
- Original module
  - No original module was found for this module on this kernel.
  - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

-------- Uninstall Beginning --------
Module:  bbswitch
Version: 0.8
Kernel:  4.15.0-107-generic (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

bbswitch.ko:
- Uninstallation
  - Deleting from: /lib/modules/4.15.0-107-generic/updates/dkms/
- Original module
  - No original module was found for this module on this kernel.
  - Use the dkms install command to reinstall any previous module version.

depmod....

DKMS: uninstall completed.

------------------------------
Deleting module version: 0.8
completely from the DKMS tree.
------------------------------
Done.
Removing cuda-toolkit-10-1 (10.1.243-1) ...
Removing cuda-tools-10-1 (10.1.243-1) ...
Removing cuda-command-line-tools-10-1 (10.1.243-1) ...
Removing cuda-compiler-10-1 (10.1.243-1) ...
Removing cuda-cupti-10-1 (10.1.243-1) ...
Removing cuda-visual-tools-10-1 (10.1.243-1) ...
Removing cuda-libraries-10-1 (10.1.243-1) ...
Removing cuda-libraries-dev-10-1 (10.1.243-1) ...
Removing cuda-documentation-10-1 (10.1.243-1) ...
Removing cuda-samples-10-1 (10.1.243-1) ...
Removing cuda-cufft-dev-10-1 (10.1.243-1) ...
Removing cuda-cufft-10-1 (10.1.243-1) ...
Removing cuda-gdb-10-1 (10.1.243-1) ...
Removing cuda-cuobjdump-10-1 (10.1.243-1) ...
Removing cuda-curand-dev-10-1 (10.1.243-1) ...
Removing cuda-curand-10-1 (10.1.243-1) ...
Removing cuda-cusolver-dev-10-1 (10.1.243-1) ...
Removing cuda-cusolver-10-1 (10.1.243-1) ...
Removing cuda-cusparse-dev-10-1 (10.1.243-1) ...
Removing cuda-cusparse-10-1 (10.1.243-1) ...
Removing cuda-gpu-library-advisor-10-1 (10.1.243-1) ...
Removing libcublas-dev (10.2.2.89-1) ...
Removing cuda-sanitizer-api-10-1 (10.1.243-1) ...
Removing cuda-memcheck-10-1 (10.1.243-1) ...
Removing cuda-nvcc-10-1 (10.1.243-1) ...
Removing cuda-misc-headers-10-1 (10.1.243-1) ...
Removing cuda-npp-dev-10-1 (10.1.243-1) ...
Removing cuda-npp-10-1 (10.1.243-1) ...
Removing cuda-nsight-10-1 (10.1.243-1) ...
Removing cuda-nsight-compute-10-1 (10.1.243-1) ...
Removing cuda-nsight-systems-10-1 (10.1.243-1) ...
Removing cuda-nvdisasm-10-1 (10.1.243-1) ...
Removing cuda-nvgraph-dev-10-1 (10.1.243-1) ...
Removing cuda-nvgraph-10-1 (10.1.243-1) ...
Removing cuda-nvjpeg-dev-10-1 (10.1.243-1) ...
Removing cuda-nvjpeg-10-1 (10.1.243-1) ...
Removing cuda-nvml-dev-10-1 (10.1.243-1) ...
Removing cuda-nvprof-10-1 (10.1.243-1) ...
Removing cuda-nvprune-10-1 (10.1.243-1) ...
Removing cuda-nvrtc-dev-10-1 (10.1.243-1) ...
Removing cuda-nvrtc-10-1 (10.1.243-1) ...
Removing cuda-nvtx-10-1 (10.1.243-1) ...
Removing cuda-nvvp-10-1 (10.1.243-1) ...
Removing nvidia-440-dev (440.95.01-0ubuntu1) ...
Removing nvidia-440 (440.95.01-0ubuntu1) ...
Removing all DKMS Modules
Done.
update-alternatives: using /usr/lib/nvidia-440-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-440-prime/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-440-prime/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/nvidia-440-prime/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf (i386-linux-gnu_egl_conf) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa-egl/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf (x86_64-linux-gnu_egl_conf) in auto mode
INFO:Disable nvidia-440
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
update-initramfs: deferring update (trigger activated)
Removing dkms (2.2.0.3-2ubuntu11.8) ...
Removing freeglut3-dev:amd64 (2.8.1-2) ...
Removing freeglut3:amd64 (2.8.1-2) ...
Removing lib32gcc1 (1:6.0.1-0ubuntu1) ...
Removing libc6-i386 (2.23-0ubuntu11.2) ...
Removing libcuda1-440 (440.95.01-0ubuntu1) ...
Removing nvidia-settings (450.51.05-0ubuntu1) ...
Removing libjansson4:amd64 (2.7-3ubuntu0.1) ...
Removing libxi-dev (2:1.7.6-1) ...
Removing libxmu-dev:amd64 (2:1.1.2-2) ...
Removing libxmu-headers (2:1.1.2-2) ...
Removing libxnvctrl0 (450.51.05-0ubuntu1) ...
Removing nsight-compute-2019.5.0 (2019.5.0.14-1) ...
Removing nsight-systems-2019.5.2 (2019.5.2.16-b54ef97) ...
update-alternatives: removing manually selected alternative - switching nsys to auto mode
update-alternatives: removing manually selected alternative - switching nsight-sys to auto mode
update-alternatives: removing manually selected alternative - switching nsys-exporter to auto mode
dpkg: warning: while removing nsight-systems-2019.5.2, directory '/usr/local/bin' not empty so not removed
Removing nvidia-modprobe (450.51.05-0ubuntu1) ...
Removing screen-resolution-extra (0.17.1.1~16.04.1) ...
Removing cuda-cudart-dev-10-1 (10.1.243-1) ...
Removing cuda-cudart-10-1 (10.1.243-1) ...
Removing cuda-driver-dev-10-1 (10.1.243-1) ...
Removing cuda-license-10-1 (10.1.243-1) ...
Processing triggers for libc-bin (2.23-0ubuntu11.2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for initramfs-tools (0.122ubuntu8.16) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-107-generic
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for dbus (1.10.6-1ubuntu3.6) ...
(base) sky@SARK:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree     
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(base) sky@SARK:~ $ sudo do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]                                         
Get:2 Upgrade tool [1,242 kB]                                               
Fetched 1,243 kB in 0s (0 B/s)                                               
authenticate 'bionic.tar.gz' against 'bionic.tar.gz.gpg'
extracting 'bionic.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Get:1 file:/var/nccl-repo-2.6.4-ga-cuda10.2  InRelease                       
Ign file:/var/nccl-repo-2.6.4-ga-cuda10.2  InRelease                         
Get:2 file:/var/nccl-repo-2.6.4-ga-cuda10.2  Release [574 B]                 
Get:3 file:/var/nccl-repo-2.6.4-ga-cuda10.2  Release [574 B]                 
Hit http://linux.teamviewer.com/deb stable InRelease                         
Hit http://dl.google.com/linux/chrome/deb stable InRelease                   
Hit http://packages.microsoft.com/repos/vscode stable InRelease             
Ign http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  InRelease
Ign http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  InRelease
Hit http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64  Release
Hit http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64  Release
Hit http://archive.ubuntu.com/ubuntu xenial InRelease                       
Hit http://dl.openfoam.org/ubuntu xenial InRelease                           
Hit http://archive.canonical.com/ubuntu xenial InRelease                     
Hit http://archive.ubuntu.com/ubuntu xenial-updates InRelease               
Hit http://archive.ubuntu.com/ubuntu xenial-backports InRelease             
Hit http://archive.ubuntu.com/ubuntu xenial-security InRelease               
Fetched 0 B in 0s (0 B/s)                                                   
Reading package lists... Done   
Building dependency tree         
Reading state information... Done
๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€