1.
iMac 2013에 Linux 설치하기 그리고 Davinchi Resolve때 실패하였던 nvidia driver 설치와 관련한 AS입니다.
iMac에서 실패한 이후 다른 장비에 Elementary os 7을 설치할 기회가 있어서 같은 수순을 반복하였습니다. nvidia driver를 설치할 때마다 비슷한 현상을 경험하여 마음 먹고 원인을 찾아보기로 하였습니다. 이전 장비와 다른 점은 nvidia 모델입니다.iMac 2013은 NVIDIA GeForce GT 755M 을 사용하지만 작업한 장비는 다른 모델입니다.iMac 2013도 그렇고 이번 장비도 intel CPU를 사용하기 때문에 큰 차이는 없을 듯 합니다.
1 2 |
smallake@windows:~$ lspci | grep VGA 01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] (rev a1) |
우선 아래를 실행하였습니다.
1 |
$sudo apt install nvidia-driver-525 |
콘솔에 올라오는 로그를 유심히 보니까 제가 놓친 부분이 보이더군요.
Module build for kernel 5.15.0-58-generic was skipped since the kernel headers for this kernel does not seem to be installed.
kernel headers를 설치하였습니다.
1 2 |
$ sudo apt install linux-headers-5.19.0-35-generic $ sudo apt remove nvidia-driver-525 |
그리고 부팅후 다시 설치를 하였습니다. 관련 로그입니다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
smallake@windows:~$ sudo apt install nvidia-driver-525 [sudo] password for yoon: Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: dctrl-tools dkms libnvidia-cfg1-525 libnvidia-common-525 libnvidia-decode-525 libnvidia-egl-wayland1 libnvidia-encode-525 libnvidia-extra-525 libnvidia-fbc1-525 libnvidia-gl-525 libxnvctrl0 nvidia-compute-utils-525 nvidia-dkms-525 nvidia-kernel-common-525 nvidia-kernel-source-525 nvidia-prime nvidia-settings nvidia-utils-525 pkg-config screen-resolution-extra xserver-xorg-video-nvidia-525 Suggested packages: debtags menu Recommended packages: libnvidia-compute-525:i386 libnvidia-decode-525:i386 libnvidia-encode-525:i386 libnvidia-fbc1-525:i386 libnvidia-gl-525:i386 The following NEW packages will be installed: dctrl-tools dkms libnvidia-cfg1-525 libnvidia-common-525 libnvidia-decode-525 libnvidia-egl-wayland1 libnvidia-encode-525 libnvidia-extra-525 libnvidia-fbc1-525 libnvidia-gl-525 libxnvctrl0 nvidia-compute-utils-525 nvidia-dkms-525 nvidia-driver-525 nvidia-kernel-common-525 nvidia-kernel-source-525 nvidia-prime nvidia-settings nvidia-utils-525 pkg-config screen-resolution-extra xserver-xorg-video-nvidia-525 0 upgraded, 22 newly installed, 0 to remove and 1 not upgraded. Need to get 290 MB of archives. After this operation, 616 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 https://ppa.launchpadcontent.net/elementary-os/os-patches/ubuntu jammy/main amd64 dkms all 2.8.7-2+elementary3~ubuntu22.04.1 [79.6 kB] Get:2 http://mirrors.ubuntu.com/mirrors.txt Mirrorlist [214 B] Get:3 https://mirror.kakao.com/ubuntu jammy/main amd64 dctrl-tools amd64 2.24-3build2 [66.9 kB] Get:7 http://mirror.kakao.com/ubuntu jammy/main amd64 libnvidia-egl-wayland1 amd64 1:1.1.9-1.1 [26.1 kB] Get:4 https://mirror.kakao.com/ubuntu jammy-updates/restricted amd64 libnvidia-cfg1-525 amd64 525.85.05-0ubuntu0.22.04.1 [101 kB] Get:5 https://devpg.net/ubuntu jammy-updates/restricted amd64 libnvidia-common-525 all 525.85.05-0ubuntu0.22.04.1 [10.5 kB] Get:9 http://mirror.kakao.com/ubuntu jammy-updates/restricted amd64 libnvidia-extra-525 amd64 525.85.05-0ubuntu0.22.04.1 [65.3 kB] Get:8 https://mirror.kakao.com/ubuntu jammy-updates/restricted amd64 libnvidia-encode-525 amd64 525.85.05-0ubuntu0.22.04.1 [77.4 kB] Get:12 https://devpg.net/ubuntu jammy/main amd64 libxnvctrl0 amd64 510.47.03-0ubuntu1 [11.5 kB] Get:14 http://mirror.kakao.com/ubuntu jammy-updates/restricted amd64 nvidia-kernel-source-525 amd64 525.85.05-0ubuntu0.22.04.1 [44.6 MB] Get:10 https://mirror.kakao.com/ubuntu jammy-updates/restricted amd64 libnvidia-fbc1-525 amd64 525.85.05-0ubuntu0.22.04.1 [51.2 kB] Get:6 https://mirror.misakamikoto.network/ubuntu jammy-updates/restricted amd64 libnvidia-decode-525 amd64 525.85.05-0ubuntu0.22.04.1 [1,766 kB] Ign:13 https://mirror.misakamikoto.network/ubuntu-ports jammy-updates/restricted amd64 nvidia-compute-utils-525 amd64 525.85.05-0ubuntu0.22.04.1 Get:15 https://mirror.misakamikoto.network/ubuntu jammy-updates/restricted amd64 nvidia-kernel-common-525 amd64 525.85.05-0ubuntu0.22.04.1 [42.4 MB] Get:13 https://mirror.kakao.com/ubuntu jammy-updates/restricted amd64 nvidia-compute-utils-525 amd64 525.85.05-0ubuntu0.22.04.1 [117 kB] Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 libnvidia-gl-525 amd64 525.85.05-0ubuntu0.22.04.1 [198 MB] Get:16 https://mirror.misakamikoto.network/ubuntu jammy-updates/restricted amd64 nvidia-dkms-525 amd64 525.85.05-0ubuntu0.22.04.1 [31.4 kB] Get:18 https://mirror.misakamikoto.network/ubuntu jammy-updates/restricted amd64 xserver-xorg-video-nvidia-525 amd64 525.85.05-0ubuntu0.22.04.1 [1,575 kB] Get:20 https://mirror.misakamikoto.network/ubuntu jammy/main amd64 nvidia-prime all 0.8.17.1 [9,956 B] Get:21 https://mirror.misakamikoto.network/ubuntu jammy/main amd64 pkg-config amd64 0.29.2-1ubuntu3 [48.2 kB] Ign:23 https://mirror.misakamikoto.network/ubuntu-ports jammy/main amd64 nvidia-settings amd64 510.47.03-0ubuntu1 Get:23 https://mirror.kakao.com/ubuntu jammy/main amd64 nvidia-settings amd64 510.47.03-0ubuntu1 [960 kB] Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 nvidia-utils-525 amd64 525.85.05-0ubuntu0.22.04.1 [387 kB] Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 nvidia-driver-525 amd64 525.85.05-0ubuntu0.22.04.1 [472 kB] Get:22 http://archive.ubuntu.com/ubuntu jammy/main amd64 screen-resolution-extra all 0.18.2 [4,396 B] Fetched 290 MB in 20s (14.7 MB/s) Selecting previously unselected package dctrl-tools. (Reading database ... 187745 files and directories currently installed.) Preparing to unpack .../00-dctrl-tools_2.24-3build2_amd64.deb ... Unpacking dctrl-tools (2.24-3build2) ... Selecting previously unselected package dkms. Preparing to unpack .../01-dkms_2.8.7-2+elementary3~ubuntu22.04.1_all.deb ... Unpacking dkms (2.8.7-2+elementary3~ubuntu22.04.1) ... Selecting previously unselected package libnvidia-cfg1-525:amd64. Preparing to unpack .../02-libnvidia-cfg1-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking libnvidia-cfg1-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package libnvidia-common-525. Preparing to unpack .../03-libnvidia-common-525_525.85.05-0ubuntu0.22.04.1_all.deb ... Unpacking libnvidia-common-525 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package libnvidia-decode-525:amd64. Preparing to unpack .../04-libnvidia-decode-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking libnvidia-decode-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package libnvidia-egl-wayland1:amd64. Preparing to unpack .../05-libnvidia-egl-wayland1_1%3a1.1.9-1.1_amd64.deb ... Unpacking libnvidia-egl-wayland1:amd64 (1:1.1.9-1.1) ... Selecting previously unselected package libnvidia-encode-525:amd64. Preparing to unpack .../06-libnvidia-encode-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking libnvidia-encode-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package libnvidia-extra-525:amd64. Preparing to unpack .../07-libnvidia-extra-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking libnvidia-extra-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package libnvidia-fbc1-525:amd64. Preparing to unpack .../08-libnvidia-fbc1-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking libnvidia-fbc1-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package libnvidia-gl-525:amd64. Preparing to unpack .../09-libnvidia-gl-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking libnvidia-gl-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package libxnvctrl0:amd64. Preparing to unpack .../10-libxnvctrl0_510.47.03-0ubuntu1_amd64.deb ... Unpacking libxnvctrl0:amd64 (510.47.03-0ubuntu1) ... Selecting previously unselected package nvidia-compute-utils-525. Preparing to unpack .../11-nvidia-compute-utils-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking nvidia-compute-utils-525 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package nvidia-kernel-source-525. Preparing to unpack .../12-nvidia-kernel-source-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking nvidia-kernel-source-525 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package nvidia-kernel-common-525. Preparing to unpack .../13-nvidia-kernel-common-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking nvidia-kernel-common-525 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package nvidia-dkms-525. Preparing to unpack .../14-nvidia-dkms-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking nvidia-dkms-525 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package nvidia-utils-525. Preparing to unpack .../15-nvidia-utils-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking nvidia-utils-525 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package xserver-xorg-video-nvidia-525. Preparing to unpack .../16-xserver-xorg-video-nvidia-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking xserver-xorg-video-nvidia-525 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package nvidia-driver-525. Preparing to unpack .../17-nvidia-driver-525_525.85.05-0ubuntu0.22.04.1_amd64.deb ... Unpacking nvidia-driver-525 (525.85.05-0ubuntu0.22.04.1) ... Selecting previously unselected package nvidia-prime. Preparing to unpack .../18-nvidia-prime_0.8.17.1_all.deb ... Unpacking nvidia-prime (0.8.17.1) ... Selecting previously unselected package pkg-config. Preparing to unpack .../19-pkg-config_0.29.2-1ubuntu3_amd64.deb ... Unpacking pkg-config (0.29.2-1ubuntu3) ... Selecting previously unselected package screen-resolution-extra. Preparing to unpack .../20-screen-resolution-extra_0.18.2_all.deb ... Unpacking screen-resolution-extra (0.18.2) ... Selecting previously unselected package nvidia-settings. Preparing to unpack .../21-nvidia-settings_510.47.03-0ubuntu1_amd64.deb ... Unpacking nvidia-settings (510.47.03-0ubuntu1) ... Setting up nvidia-utils-525 (525.85.05-0ubuntu0.22.04.1) ... Setting up libnvidia-fbc1-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Setting up nvidia-compute-utils-525 (525.85.05-0ubuntu0.22.04.1) ... Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory Adding system user `nvidia-persistenced' (UID 117) ... Adding new group `nvidia-persistenced' (GID 125) ... Adding new user `nvidia-persistenced' (UID 117) with group `nvidia-persistenced' ... Not creating home directory `/nonexistent'. Setting up libnvidia-extra-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Setting up nvidia-prime (0.8.17.1) ... Setting up nvidia-kernel-common-525 (525.85.05-0ubuntu0.22.04.1) ... update-initramfs: deferring update (trigger activated) Setting up libxnvctrl0:amd64 (510.47.03-0ubuntu1) ... Setting up libnvidia-egl-wayland1:amd64 (1:1.1.9-1.1) ... Setting up pkg-config (0.29.2-1ubuntu3) ... Setting up libnvidia-cfg1-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Setting up screen-resolution-extra (0.18.2) ... Setting up nvidia-kernel-source-525 (525.85.05-0ubuntu0.22.04.1) ... Setting up libnvidia-common-525 (525.85.05-0ubuntu0.22.04.1) ... Setting up nvidia-settings (510.47.03-0ubuntu1) ... Setting up libnvidia-decode-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Setting up dctrl-tools (2.24-3build2) ... Setting up xserver-xorg-video-nvidia-525 (525.85.05-0ubuntu0.22.04.1) ... Setting up libnvidia-gl-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Setting up dkms (2.8.7-2+elementary3~ubuntu22.04.1) ... Setting up nvidia-dkms-525 (525.85.05-0ubuntu0.22.04.1) ... update-initramfs: deferring update (trigger activated) INFO:Enable nvidia 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 Loading new nvidia-525.85.05 DKMS files... Building for 5.19.0-35-generic Usage: lsb_release [options] lsb_release: error: no such option: -u /usr/lib/dkms/common.postinst: 204: [: =: unexpected operator Building for architecture x86_64 Building initial module for 5.19.0-35-generic Done. nvidia.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.19.0-35-generic/extra/ nvidia-modeset.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.19.0-35-generic/extra/ nvidia-drm.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.19.0-35-generic/extra/ nvidia-uvm.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.19.0-35-generic/extra/ nvidia-peermem.ko: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/5.19.0-35-generic/extra/ depmod......... Setting up libnvidia-encode-525:amd64 (525.85.05-0ubuntu0.22.04.1) ... Setting up nvidia-driver-525 (525.85.05-0ubuntu0.22.04.1) ... Processing triggers for bamfdaemon (0.5.6+22.04.20220217-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for desktop-file-utils (0.26-1ubuntu3) ... Processing triggers for gnome-menus (3.36.0-1ubuntu3) ... Processing triggers for libc-bin (2.35-0ubuntu3.1) ... Processing triggers for man-db (2.10.2-1) ... Processing triggers for mailcap (3.70+nmu1ubuntu1) ... Processing triggers for initramfs-tools (0.140ubuntu13.1) ... update-initramfs: Generating /boot/initrd.img-5.19.0-35-generic cryptsetup: WARNING: Resume target cryptswap uses a key file |
그리고 부팅. 원하던 로그인 화면을 만났습니다. 이제 중요한 Davinchi Resolve를 설치합니다.
2.
다시금 홈페이지에서 파일을 받아서 실행합니다. Nvidia Driver를 정상적으로 설치했으니까 문제가 없겠지만 혹시나 하는 마음으로 아이콘을 누릅니다.
정상 동작합니다. 그리고 지난 번 설치할 때 lightdm이 죽는 문제와 관련하여
sudo dpkg-reconfigure lightdm
라고 하던 부분을 해보니까 달라지는 부분이 없네요. nvidia driver를 설치하기 위해 kernel module을 만들어야 하는데 kernel-header가 없어서 이와 관련한 작업을 하지 못했고 nvidia driver를 위한 모듈을 실행할 수 없었습니다. 아마도 이와 같은 이유가 아닐까 합니다
1 2 3 4 5 6 7 |
smallake@windows:~$ lsmod | grep nvidia nvidia_uvm 1384448 0 nvidia_drm 69632 7 nvidia_modeset 1216512 14 nvidia_drm nvidia 56369152 706 nvidia_uvm,nvidia_modeset drm_kms_helper 200704 1 nvidia_drm drm 581632 11 drm_kms_helper,nvidia,nvidia_drm |