Nvidia 驱动程序 375 安装在 Ubuntu 16.04.1 上卡住了

Nvidia 驱动程序 375 安装在 Ubuntu 16.04.1 上卡住了

我曾多次尝试在 Ubuntu 16.04.1 上安装 Nvidia 驱动程序 (375)。我尝试了各种方法(apt、apt-get、synaptic)。我尝试了互联网上的一些建议,包括先卸载 Nouveau 驱动程序、登录前安装、在安全模式下安装等。但每次安装都会卡在:“为 4.4.0-59-generic 构建初始模块”。我甚至让电脑开机超过 24 小时,希望这一步能完成,但并没有。我尝试从 Nvidia 网站下载 Nvidia 驱动程序安装程序并按照说明操作。它卡在了类似的步骤。有什么建议吗?

以下是突触的输出:

Selecting previously unselected package libc6-i386.
(Reading database ... 276721 files and directories currently installed.)
Preparing to unpack .../libc6-i386_2.23-0ubuntu5_amd64.deb ...
Unpacking libc6-i386 (2.23-0ubuntu5) ...
Replaced by files in installed package libc6:i386 (2.23-0ubuntu5) ...
Selecting previously unselected package lib32gcc1.
Preparing to unpack .../lib32gcc1_1%3a6.0.1-0ubuntu1_amd64.deb ...
Unpacking lib32gcc1 (1:6.0.1-0ubuntu1) ...
Selecting previously unselected package nvidia-375.
Preparing to unpack .../nvidia-375_375.26-0ubuntu0~gpu16.04.1_amd64.deb ...
Unpacking nvidia-375 (375.26-0ubuntu0~gpu16.04.1) ...
Selecting previously unselected package libcuda1-375.
Preparing to unpack .../libcuda1-375_375.26-0ubuntu0~gpu16.04.1_amd64.deb ...
Unpacking libcuda1-375 (375.26-0ubuntu0~gpu16.04.1) ...
Selecting previously unselected package libjansson4:amd64.
Preparing to unpack .../libjansson4_2.7-3_amd64.deb ...
Unpacking libjansson4:amd64 (2.7-3) ...
Selecting previously unselected package libxnvctrl0.
Preparing to unpack .../libxnvctrl0_378.09-0ubuntu0~gpu16.04.1_amd64.deb ...
Unpacking libxnvctrl0 (378.09-0ubuntu0~gpu16.04.1) ...
Selecting previously unselected package nvidia-opencl-icd-375.
Preparing to unpack .../nvidia-opencl-icd-375_375.26-0ubuntu0~gpu16.04.1_amd64.deb ...
Unpacking nvidia-opencl-icd-375 (375.26-0ubuntu0~gpu16.04.1) ...
Selecting previously unselected package bbswitch-dkms.
Preparing to unpack .../bbswitch-dkms_0.8-3ubuntu1_amd64.deb ...
Unpacking bbswitch-dkms (0.8-3ubuntu1) ...
Selecting previously unselected package nvidia-prime.
Preparing to unpack .../nvidia-prime_0.8.2_amd64.deb ...
Unpacking nvidia-prime (0.8.2) ...
Selecting previously unselected package screen-resolution-extra.
Preparing to unpack .../screen-resolution-extra_0.17.1_all.deb ...
Unpacking screen-resolution-extra (0.17.1) ...
Selecting previously unselected package nvidia-settings.
Preparing to unpack .../nvidia-settings_378.09-0ubuntu0~gpu16.04.1_amd64.deb ...
Unpacking nvidia-settings (378.09-0ubuntu0~gpu16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for dbus (1.10.6-1ubuntu3.3) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160824-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Setting up libc6-i386 (2.23-0ubuntu5) ...
Setting up lib32gcc1 (1:6.0.1-0ubuntu1) ...
Setting up nvidia-375 (375.26-0ubuntu0~gpu16.04.1) ...
update-alternatives: using /usr/lib/nvidia-375/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-375/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-375/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-375/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/share/nvidia-375/glamor.conf to provide /usr/share/X11/xorg.conf.d/glamoregl.conf (glamor_conf) in auto mode
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-375
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Adding system user `nvidia-persistenced' (UID 124) ...
Adding new group `nvidia-persistenced' (GID 133) ...
Adding new user `nvidia-persistenced' (UID 124) with group `nvidia-persistenced' ...
Not creating home directory `/'.
Loading new nvidia-375-375.26 DKMS files...
First Installation: checking all kernels...
Building only for 4.4.0-59-generic
Building for architecture x86_64
Building initial module for 4.4.0-59-generic

答案1

抱歉,这个问题似乎在我之前的另一篇文章中已经回答过了。但我之前没有读过最后一条回复:

内核更新卡住(Ubuntu 16.04,内核 4.4.0-22)

所以,还是 Eset nod32 有问题。卸载后,重新启动 Ubuntu,并运行“sudo dpkg --configure -a”,安装成功完成。

顺便说一句,我按照以下说明获取驱动程序:

http://www.webupd8.org/2016/06/how-to-install-latest-nvidia-drivers-in.html

答案2

我也遇到了同样的问题。它似乎正在等待密码。

我输入了几次密码来解锁安装过程。

来源:https://devtalk.nvidia.com/default/topic/1036167/linux/stuck-trying-to-intall-nvidia-390-ubuntu-18-04-lts-/

相关内容