0%

NVIDIA-Driver-bug-201015

前言

本篇记录在尝试使用 DeepSpeech2 过程中,安装NVIDIA Driver 过程中的报错及解决方法(没能解决的优雅一些)。

正文

https://gitee.com/paddlepaddle/DeepSpeech?utm_source=alading&utm_campaign=repo#%E5%9C%A8Docker%E5%AE%B9%E5%99%A8%E4%B8%8A%E8%BF%90%E8%A1%8C

首先在 DeepSpeech2 的 Readme 中看到,使用 Docker 容器是最为方便的,可以保证依赖已安装。于是需要安装 nvidia-docker 。在后者的 Readme 中找到了 NVIDIA Docker 的安装说明:https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html。

在 NVIDIA Docker 的安装说明中我们看到需要先安装 NVIDIA Driver,在下面的链接中按照流程执行命令。Ubuntu 18.04 全程没有遇到任何问题。(当然建议先把镜像源换到国内)

https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html#ubuntu-lts

然后就发现安装死了……

安装完毕后需要按照 https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions 执行安装后指令。

有两个包出了问题始终安装不上。出了问题以后其他的东西也都无法安装。具体如下。

执行 apt-get -y install cuda-drivers 后输出如下:

1
2
3
4
5
Errors were encountered while processing:
/tmp/apt-dpkg-install-zMuLZ8/089-nvidia-compute-utils-455_455.23.05-0ubuntu1_amd64.deb
/tmp/apt-dpkg-install-zMuLZ8/095-nvidia-utils-455_455.23.05-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

之后我觉得用 docker 流程太多了,执行了 DeepSpeech2 官网的命令 apt-get install -y pkg-config libflac-dev libogg-dev libvorbis-dev libboost-dev swig python-dev,输出如下。

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
Reading package lists... Done
Building dependency tree
Reading state information... Done
pkg-config is already the newest version (0.29.1-0ubuntu2).
pkg-config set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
cuda-drivers-455 : Depends: nvidia-compute-utils-455 (>= 455.23.05) but it is not going to be installed
Depends: nvidia-utils-455 (>= 455.23.05) but it is not going to be installed
libboost-dev : Depends: libboost1.65-dev but it is not going to be installed
libflac-dev : Depends: libflac8 (= 1.3.2-1) but it is not going to be installed
libogg-dev : Depends: libogg0 (= 1.3.2-1) but it is not going to be installed
libvorbis-dev : Depends: libvorbis0a (= 1.3.5-4.2) but it is not going to be installed
Depends: libvorbisenc2 (= 1.3.5-4.2) but it is not going to be installed
Depends: libvorbisfile3 (= 1.3.5-4.2) but it is not going to be installed
nvidia-driver-455 : Depends: nvidia-compute-utils-455 (= 455.23.05-0ubuntu1) but it is not going to be installed
Depends: nvidia-utils-455 (= 455.23.05-0ubuntu1) but it is not going to be installed
Recommends: libnvidia-compute-455:i386 (= 455.23.05-0ubuntu1) but it is not installable
Recommends: libnvidia-decode-455:i386 (= 455.23.05-0ubuntu1) but it is not installable
Recommends: libnvidia-encode-455:i386 (= 455.23.05-0ubuntu1) but it is not installable
Recommends: libnvidia-ifr1-455:i386 (= 455.23.05-0ubuntu1) but it is not installable
Recommends: libnvidia-fbc1-455:i386 (= 455.23.05-0ubuntu1) but it is not installable
Recommends: libnvidia-gl-455:i386 (= 455.23.05-0ubuntu1) but it is not installable
python-dev : Depends: python (= 2.7.15~rc1-1) but it is not going to be installed
Depends: libpython-dev (= 2.7.15~rc1-1) but it is not going to be installed
Depends: python2.7-dev (>= 2.7.15~rc1-1~) but it is not going to be installed
swig : Depends: swig3.0 (>= 3.0.12-1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

于是我按照输出又执行了 apt --fix-broken install

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
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
nvidia-compute-utils-455 nvidia-utils-455
The following NEW packages will be installed:
nvidia-compute-utils-455 nvidia-utils-455
0 upgraded, 2 newly installed, 0 to remove and 110 not upgraded.
170 not fully installed or removed.
Need to get 474 kB of archives.
After this operation, 1489 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64 nvidia-compute-utils-455 455.23.05-0ubuntu1 [106 kB]
Get:2 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64 nvidia-utils-455 455.23.05-0ubuntu1 [368 kB]
Fetched 474 kB in 5s (97.4 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 69587 files and directories currently installed.)
Preparing to unpack .../nvidia-compute-utils-455_455.23.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-compute-utils-455 (455.23.05-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-compute-utils-455_455.23.05-0ubuntu1_amd64.deb (--unpack):
unable to make backup link of './usr/bin/nvidia-cuda-mps-control' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../nvidia-utils-455_455.23.05-0ubuntu1_amd64.deb ...
Unpacking nvidia-utils-455 (455.23.05-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/nvidia-utils-455_455.23.05-0ubuntu1_amd64.deb (--unpack):
unable to make backup link of './usr/bin/nvidia-debugdump' before installing new version: Invalid cross-device link
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/nvidia-compute-utils-455_455.23.05-0ubuntu1_amd64.deb
/var/cache/apt/archives/nvidia-utils-455_455.23.05-0ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

修复失败,多次执行修复命令后输出没有发生变化。而此时我现在不能安装新的包,这几个包也修不好,陷入僵持。

网上搜到最接近我的问题的链接:https://askubuntu.com/questions/1252188/cuda-install-issue-invalid-cross-device-link

还有几个类似的:

尝试无果后,我想既然也无法安装,那便卸载了,结果发现单独的卸载某个包都会出问题报错,必须将几个有问题的包一起卸载才可以。具体执行的命令:apt remove cuda-drivers nvidia-driver-455 cuda-drivers-455

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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
adwaita-icon-theme at-spi2-core dconf-gsettings-backend dconf-service dkms fontconfig fontconfig-config fonts-dejavu-core glib-networking glib-networking-common glib-networking-services
gsettings-desktop-schemas gtk-update-icon-cache hicolor-icon-theme humanity-icon-theme keyboard-configuration kmod libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatspi2.0-0 libavahi-client3
libavahi-common-data libavahi-common3 libcairo-gobject2 libcairo2 libcolord2 libcroco3 libcups2 libdatrie1 libdconf1 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2
libegl-mesa0 libegl1 libelf1 libepoxy0 libfontconfig1 libfontenc1 libfreetype6 libgbm1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgl1 libgl1-mesa-dri libglapi-mesa libgles2
libglvnd0 libglx-mesa0 libglx0 libgraphite2-3 libgtk-3-0 libgtk-3-bin libgtk-3-common libharfbuzz0b libjansson4 libjbig0 libjson-glib-1.0-0 libjson-glib-1.0-common liblcms2-2 libllvm10
libnvidia-cfg1-455 libnvidia-common-455 libnvidia-compute-455 libnvidia-decode-455 libnvidia-encode-455 libnvidia-extra-455 libnvidia-fbc1-455 libnvidia-gl-455 libnvidia-ifr1-455 libopengl0
libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0 libpixman-1-0 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libproxy1v5 librest-0.7-0 librsvg2-2 librsvg2-common
libsensors4 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtiff5 libunwind8 libvdpau1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libwayland-server0 libx11-xcb1 libxaw7 libxcb-dri2-0
libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcomposite1 libxcursor1 libxdamage1 libxfixes3 libxfont2 libxi6 libxinerama1 libxkbcommon0 libxkbfile1
libxmu6 libxnvctrl0 libxpm4 libxrandr2 libxshmfence1 libxt6 libxtst6 libxxf86vm1 linux-headers-4.15.0-121 linux-headers-4.15.0-121-generic linux-headers-generic mesa-vdpau-drivers nvidia-dkms-455
nvidia-kernel-common-455 nvidia-kernel-source-455 nvidia-modprobe nvidia-prime nvidia-settings pkg-config policykit-1 policykit-1-gnome python3-xkit screen-resolution-extra sudo ubuntu-mono udev
vdpau-driver-all x11-xkb-utils xfonts-base xfonts-encodings xfonts-utils xkb-data xserver-common xserver-xorg-core-hwe-18.04 xserver-xorg-video-nvidia-455
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
cuda-drivers cuda-drivers-455 nvidia-driver-455
0 upgraded, 0 newly installed, 3 to remove and 110 not upgraded.
170 not fully installed or removed.
After this operation, 1237 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 69587 files and directories currently installed.)
Removing cuda-drivers (455.23.05-1) ...
Removing cuda-drivers-455 (455.23.05-1) ...
Removing nvidia-driver-455 (455.23.05-0ubuntu1) ...
Setting up libxkbfile1:amd64 (1:1.0.9-2) ...
Setting up libxi6:amd64 (2:1.7.9-1) ...
Setting up libxcb-present0:amd64 (1.13-2~ubuntu18.04) ...
Setting up libglvnd0:amd64 (1.0.0-2ubuntu2.3) ...
Setting up libopengl0:amd64 (1.0.0-2ubuntu2.3) ...
Setting up libnss-systemd:amd64 (237-3ubuntu10.42) ...
First installation detected...
Checking NSS setup...
Setting up libxinerama1:amd64 (2:1.1.3-1) ...
Setting up libxcb-dri2-0:amd64 (1.13-2~ubuntu18.04) ...
Setting up libxcb-dri3-0:amd64 (1.13-2~ubuntu18.04) ...
Setting up kmod (24-1ubuntu3.5) ...
Setting up libxcb-glx0:amd64 (1.13-2~ubuntu18.04) ...
Setting up libjson-glib-1.0-common (1.4.2-3ubuntu0.18.04.1) ...
Setting up libxcb-xfixes0:amd64 (1.13-2~ubuntu18.04) ...
Setting up libxcb-render0:amd64 (1.13-2~ubuntu18.04) ...
Setting up libllvm10:amd64 (1:10.0.0-4ubuntu1~18.04.2) ...
Setting up glib-networking-common (2.56.0-1ubuntu0.1) ...
Setting up nvidia-prime (0.8.8.2) ...
Setting up libxdamage1:amd64 (1:1.1.4-3) ...
Setting up libxfixes3:amd64 (1:5.0.3-1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Setting up sudo (1.8.21p2-3ubuntu1.2) ...
Setting up liblcms2-2:amd64 (2.9-1ubuntu0.1) ...
Setting up libjbig0:amd64 (2.1-3.1build1) ...
Setting up fonts-dejavu-core (2.37-1) ...
Setting up linux-headers-4.15.0-121 (4.15.0-121.123) ...
Setting up systemd-sysv (237-3ubuntu10.42) ...
Setting up libelf1:amd64 (0.170-0.4ubuntu0.1) ...
Processing triggers for libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.4) ...
Setting up libxshmfence1:amd64 (1.3-1) ...
Setting up libwayland-client0:amd64 (1.16.0-1ubuntu1.1~18.04.3) ...
Setting up xkb-data (2.23.1-1ubuntu1.18.04.1) ...
Setting up libjansson4:amd64 (2.11-1) ...
Setting up libproxy1v5:amd64 (0.4.15-1ubuntu0.1) ...
Setting up linux-headers-4.15.0-121-generic (4.15.0-121.123) ...
Setting up libvdpau1:amd64 (1.1.1-3ubuntu1) ...
Setting up libgdk-pixbuf2.0-common (2.36.11-2) ...
Setting up glib-networking-services (2.56.0-1ubuntu0.1) ...
Setting up libdatrie1:amd64 (0.2.10-7) ...
Setting up libtiff5:amd64 (4.0.9-5ubuntu0.3) ...
Setting up libglapi-mesa:amd64 (20.0.8-0ubuntu1~18.04.1) ...
Setting up xfonts-encodings (1:1.0.4-2) ...
Setting up libxmuu1:amd64 (2:1.1.2-2) ...
Setting up libfreetype6:amd64 (2.8.1-2ubuntu2) ...
Setting up libxtst6:amd64 (2:1.2.3-1) ...
Setting up libdrm-common (2.4.101-2~18.04.1) ...
Setting up libjson-glib-1.0-0:amd64 (1.4.2-3ubuntu0.18.04.1) ...
Setting up libgraphite2-3:amd64 (1.3.11-2) ...
Setting up libcroco3:amd64 (0.6.12-2) ...
Setting up libxcb-sync1:amd64 (1.13-2~ubuntu18.04) ...
Setting up xauth (1:1.0.10-1) ...
Setting up libatk1.0-data (2.28.1-1) ...
Setting up pkg-config (0.29.1-0ubuntu2) ...
Setting up libx11-xcb1:amd64 (2:1.6.4-3ubuntu0.3) ...
Setting up libpixman-1-0:amd64 (0.34.0-2) ...
Setting up libnvidia-extra-455:amd64 (455.23.05-0ubuntu1) ...
Setting up libxcursor1:amd64 (1:1.1.15-1) ...
Setting up dkms (2.3-3ubuntu9.7) ...
Setting up libunwind8:amd64 (1.2.1-8) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libepoxy0:amd64 (1.4.3-1) ...
Setting up udev (237-3ubuntu10.42) ...
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libnvidia-cfg1-455:amd64 (455.23.05-0ubuntu1) ...
Setting up libatk1.0-0:amd64 (2.28.1-1) ...
Setting up libnvidia-compute-455:amd64 (455.23.05-0ubuntu1) ...
Setting up libfakeroot:amd64 (1.22-2ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10.42) ...
Setting up nvidia-modprobe (455.23.05-0ubuntu1) ...
Setting up libfontenc1:amd64 (1:1.1.3-1) ...
Setting up libdconf1:amd64 (0.26.0-2ubuntu3) ...
Setting up libxcomposite1:amd64 (1:0.4.4-2) ...
Setting up libxcb-shm0:amd64 (1.13-2~ubuntu18.04) ...
Setting up liblocale-gettext-perl (1.07-3build2) ...
Setting up dmsetup (2:1.02.145-4.1ubuntu3.18.04.3) ...
Setting up libxpm4:amd64 (1:3.5.12-1) ...
Setting up libxt6:amd64 (1:1.1.5-1) ...
Setting up libpciaccess0:amd64 (0.14-1) ...
Setting up libsensors4:amd64 (1:3.4.0-4) ...
Setting up libgles2:amd64 (1.0.0-2ubuntu2.3) ...
Setting up shared-mime-info (1.9-2) ...
Setting up libxkbcommon0:amd64 (0.8.2-1~ubuntu18.04.1) ...
Setting up libnvidia-common-455 (455.23.05-0ubuntu1) ...
Setting up libcolord2:amd64 (1.3.3-2build1) ...
Setting up libthai-data (0.1.27-2) ...
Setting up libxxf86vm1:amd64 (1:1.1.4-1) ...
Setting up nvidia-kernel-source-455 (455.23.05-0ubuntu1) ...
Setting up hicolor-icon-theme (0.17-2) ...
Setting up libwayland-cursor0:amd64 (1.16.0-1ubuntu1.1~18.04.3) ...
Setting up libxnvctrl0:amd64 (455.23.05-0ubuntu1) ...
Setting up libwayland-egl1:amd64 (1.16.0-1ubuntu1.1~18.04.3) ...
Setting up networkd-dispatcher (1.7-0ubuntu3.3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/networkd-dispatcher.service → /lib/systemd/system/networkd-dispatcher.service.
Setting up libxrandr2:amd64 (2:1.5.1-1) ...
Setting up libpolkit-gobject-1-0:amd64 (0.105-20ubuntu0.18.04.5) ...
Setting up libdbus-1-3:amd64 (1.12.2-1ubuntu1.2) ...
Setting up libavahi-common-data:amd64 (0.7-3.1ubuntu1.2) ...
Setting up python3-xkit (0.5.0ubuntu2) ...
Setting up libwayland-server0:amd64 (1.16.0-1ubuntu1.1~18.04.3) ...
Setting up linux-headers-generic (4.15.0.121.108) ...
Setting up nvidia-kernel-common-455 (455.23.05-0ubuntu1) ...
Setting up keyboard-configuration (1.178ubuntu2.9) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
Setting up fontconfig-config (2.12.6-0ubuntu2) ...
Setting up libnvidia-decode-455:amd64 (455.23.05-0ubuntu1) ...
Setting up dconf-service (0.26.0-2ubuntu3) ...
Setting up libpolkit-agent-1-0:amd64 (0.105-20ubuntu0.18.04.5) ...
Setting up libatspi2.0-0:amd64 (2.28.0-1) ...
Setting up at-spi2-core (2.28.0-1) ...
Setting up libgdk-pixbuf2.0-0:amd64 (2.36.11-2) ...
Setting up libgdk-pixbuf2.0-bin (2.36.11-2) ...
Setting up libxfont2:amd64 (1:2.0.3-1) ...
Setting up libharfbuzz0b:amd64 (1.7.2-1ubuntu1) ...
Setting up xfonts-utils (1:7.7+6) ...
Setting up libthai0:amd64 (0.1.27-2) ...
Setting up fakeroot (1.22-2ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/fakeroot.1.gz because associated file /usr/share/man/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/man1/faked.1.gz because associated file /usr/share/man/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/es/man1/fakeroot.1.gz because associated file /usr/share/man/es/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/es/man1/faked.1.gz because associated file /usr/share/man/es/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/fakeroot.1.gz because associated file /usr/share/man/fr/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/fr/man1/faked.1.gz because associated file /usr/share/man/fr/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/sv/man1/fakeroot.1.gz because associated file /usr/share/man/sv/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist
update-alternatives: warning: skip creation of /usr/share/man/sv/man1/faked.1.gz because associated file /usr/share/man/sv/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist
Setting up libxmu6:amd64 (2:1.1.2-2) ...
Setting up libdrm2:amd64 (2.4.101-2~18.04.1) ...
Setting up libdrm-intel1:amd64 (2.4.101-2~18.04.1) ...
Setting up gtk-update-icon-cache (3.22.30-1ubuntu4) ...
Setting up libpolkit-backend-1-0:amd64 (0.105-20ubuntu0.18.04.5) ...
Setting up libnvidia-encode-455:amd64 (455.23.05-0ubuntu1) ...
Setting up libatk-bridge2.0-0:amd64 (2.26.2-1) ...
Setting up libavahi-common3:amd64 (0.7-3.1ubuntu1.2) ...
Setting up libdrm-radeon1:amd64 (2.4.101-2~18.04.1) ...
Setting up dbus (1.12.2-1ubuntu1.2) ...
Setting up libdrm-nouveau2:amd64 (2.4.101-2~18.04.1) ...
Setting up nvidia-dkms-455 (455.23.05-0ubuntu1) ...

A modprobe blacklist file has been created at /etc/modprobe.d to prevent Nouveau
from loading. This can be reverted by deleting the following file:
/etc/modprobe.d/nvidia-graphics-drivers.conf

A new initrd image has also been created. To revert, please regenerate your
initrd by running the following command after deleting the modprobe.d file:
`/usr/sbin/initramfs -u`

*****************************************************************************
*** Reboot your computer and verify that the NVIDIA graphics driver can ***
*** be loaded. ***
*****************************************************************************

debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Loading new nvidia-455.23.05 DKMS files...
It is likely that 3.10.0-862.el7.x86_64 belongs to a chroot's host
Building for 4.15.0-121-generic
Building for architecture x86_64
Building initial module for 4.15.0-121-generic

Done.

nvidia:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.15.0-121-generic/updates/dkms/

nvidia-modeset.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.15.0-121-generic/updates/dkms/

nvidia-drm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.15.0-121-generic/updates/dkms/

nvidia-uvm.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.15.0-121-generic/updates/dkms/

depmod...

DKMS: install completed.
Setting up dconf-gsettings-backend:amd64 (0.26.0-2ubuntu3) ...
Setting up xfonts-base (1:1.0.4+nmu1) ...
Setting up libxaw7:amd64 (2:1.0.13-1) ...
Setting up libfontconfig1:amd64 (2.12.6-0ubuntu2) ...
Setting up libpam-systemd:amd64 (237-3ubuntu10.42) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Setting up gsettings-desktop-schemas (3.28.0-1ubuntu1) ...
Setting up x11-xkb-utils (7.7+3ubuntu0.18.04.1) ...
Setting up libdrm-amdgpu1:amd64 (2.4.101-2~18.04.1) ...
Setting up libgtk-3-common (3.22.30-1ubuntu4) ...
Setting up policykit-1 (0.105-20ubuntu0.18.04.5) ...
Setting up mesa-vdpau-drivers:amd64 (20.0.8-0ubuntu1~18.04.1) ...
Setting up libgbm1:amd64 (20.0.8-0ubuntu1~18.04.1) ...
Setting up libgl1-mesa-dri:amd64 (20.0.8-0ubuntu1~18.04.1) ...
Setting up glib-networking:amd64 (2.56.0-1ubuntu0.1) ...
Setting up libavahi-client3:amd64 (0.7-3.1ubuntu1.2) ...
Setting up libegl-mesa0:amd64 (20.0.8-0ubuntu1~18.04.1) ...
Setting up fontconfig (2.12.6-0ubuntu2) ...
Regenerating fonts cache... done.
Setting up libglx-mesa0:amd64 (20.0.8-0ubuntu1~18.04.1) ...
Setting up libcups2:amd64 (2.2.7-1ubuntu2.8) ...
Setting up vdpau-driver-all:amd64 (1.1.1-3ubuntu1) ...
Setting up libcairo2:amd64 (1.15.10-2ubuntu0.1) ...
Setting up xserver-common (2:1.19.6-1ubuntu4.7) ...
Setting up libcairo-gobject2:amd64 (1.15.10-2ubuntu0.1) ...
Setting up libsoup2.4-1:amd64 (2.62.1-1ubuntu0.4) ...
Setting up libsoup-gnome2.4-1:amd64 (2.62.1-1ubuntu0.4) ...
Setting up libegl1:amd64 (1.0.0-2ubuntu2.3) ...
Setting up libpango-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Setting up librest-0.7-0:amd64 (0.8.0-2) ...
Setting up libglx0:amd64 (1.0.0-2ubuntu2.3) ...
Setting up libpangoft2-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Setting up libgl1:amd64 (1.0.0-2ubuntu2.3) ...
Setting up xserver-xorg-core-hwe-18.04 (2:1.20.8-2ubuntu2.2~18.04.3) ...
Setting up libnvidia-fbc1-455:amd64 (455.23.05-0ubuntu1) ...
Setting up libpangocairo-1.0-0:amd64 (1.40.14-1ubuntu0.1) ...
Setting up libnvidia-gl-455:amd64 (455.23.05-0ubuntu1) ...
Setting up xserver-xorg-video-nvidia-455 (455.23.05-0ubuntu1) ...
Setting up libnvidia-ifr1-455:amd64 (455.23.05-0ubuntu1) ...
Setting up librsvg2-2:amd64 (2.40.20-2ubuntu0.2) ...
Setting up librsvg2-common:amd64 (2.40.20-2ubuntu0.2) ...
Setting up adwaita-icon-theme (3.28.0-1ubuntu1) ...
update-alternatives: using /usr/share/icons/Adwaita/cursor.theme to provide /usr/share/icons/default/index.theme (x-cursor-theme) in auto mode
Setting up humanity-icon-theme (0.6.15) ...
Setting up libgtk-3-0:amd64 (3.22.30-1ubuntu4) ...
Setting up libgtk-3-bin (3.22.30-1ubuntu4) ...
Setting up policykit-1-gnome (0.105-6ubuntu2) ...
Setting up screen-resolution-extra (0.17.3) ...
Setting up ubuntu-mono (16.10+18.04.20181005-0ubuntu1) ...
Setting up nvidia-settings (455.23.05-0ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10.42) ...
Processing triggers for dbus (1.12.2-1ubuntu1.2) ...
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.36.11-2) ...

中间也出了很多红字报错。不过似乎能安装新的包了。不知道有没有对服务器造成问题……服务器似乎自带了 CUDA 10.1 。