Ubuntu显卡驱动问题

Bionic Beaver
回复
docky
帖子: 3
注册时间: 2018-08-02 9:18
送出感谢: 0
接收感谢: 0

Ubuntu显卡驱动问题

#1

帖子 docky » 2018-08-02 9:50

请教各位大神,Ubuntu 18.04 装完显卡驱动后显示器分辨率变高,但过几天后恢复原样,重装驱动:
sudo add-apt-repository ppa:graphics-drivers 
sudo apt-get update 
sudo apt-get install nvidia-390
sudo apt-get install mesa-common-dev 
sudo apt-get install freeglut3-dev
nvidia-smi 
提示显卡驱动有问题:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
应该怎么解决?
头像
astolia
论坛版主
帖子: 3842
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 640 次

Re: Ubuntu显卡驱动问题

#2

帖子 astolia » 2018-08-02 10:14

估计当前用的是intel的核显,或者退回到开源的nouveau驱动去了。
看下 lspci -k 的输出结果
docky
帖子: 3
注册时间: 2018-08-02 9:18
送出感谢: 0
接收感谢: 0

Re: Ubuntu显卡驱动问题

#3

帖子 docky » 2018-08-02 12:12

astolia 写了:
2018-08-02 10:14
估计当前用的是intel的核显,或者退回到开源的nouveau驱动去了。
看下 lspci -k 的输出结果
运行apt-get install nvidia-390这一步报错:

Setting up nvidia-compute-utils-390 (390.77-0ubuntu0~gpu18.04.1) ...
Warning: The home dir /nonexistent you specified can't be accessed: No such file or directory
Adding system user `nvidia-persistenced' (UID 121) ...
Adding new group `nvidia-persistenced' (GID 127) ...
Adding new user `nvidia-persistenced' (UID 121) with group `nvidia-persistenced' ...
Not creating home directory `/nonexistent'.
Setting up nvidia-dkms-390 (390.77-0ubuntu0~gpu18.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-390.77 DKMS files...
Building for 4.15.0-29-generic
Building for architecture x86_64
Building initial module for 4.15.0-29-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-390.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-29-generic (x86_64)
Consult /var/lib/dkms/nvidia/390.77/build/make.log for more information.
dpkg: error processing package nvidia-dkms-390 (--configure):
installed nvidia-dkms-390 package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-390:
nvidia-driver-390 depends on nvidia-dkms-390 (= 390.77-0ubuntu0~gpu18.04.1); however:
Package nvidia-dkms-390 is not configured yet.
dpkg: error processing package nvidia-390 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for initramfs-tools (0.130ubuntu3) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-29-generic
Errors were encountered while processing:
nvidia-dkms-390
nvidia-driver-390
nvidia-390
E: Sub-process /usr/bin/dpkg returned an error code (1)

请指教怎么操作
头像
astolia
论坛版主
帖子: 3842
注册时间: 2008-09-18 13:11
送出感谢: 1 次
接收感谢: 640 次

Re: Ubuntu显卡驱动问题

#4

帖子 astolia » 2018-08-02 16:00

看 /var/lib/dkms/nvidia/390.77/build/make.log 中的具体错误信息
fuhuizn
帖子: 850
注册时间: 2006-01-06 22:55
系统: ubuntu
送出感谢: 0
接收感谢: 21 次
联系:

Re: Ubuntu显卡驱动问题

#5

帖子 fuhuizn » 2018-08-06 22:02

官方源里的 nvidia-driver-390 有没有试一下
docky
帖子: 3
注册时间: 2018-08-02 9:18
送出感谢: 0
接收感谢: 0

Re: Ubuntu显卡驱动问题

#6

帖子 docky » 2018-08-09 9:37

fuhuizn 写了:
2018-08-06 22:02
官方源里的 nvidia-driver-390 有没有试一下
已解决。原因是gcc和g++降级导致,升回原来版本后重装驱动即可恢复正常。
tony2278
帖子: 13
注册时间: 2018-08-28 16:16
系统: Ubuntu
送出感谢: 0
接收感谢: 0

Re: Ubuntu显卡驱动问题

#7

帖子 tony2278 » 2018-08-30 13:27

我在内核4.14.30的Ubuntu上安装Nvidia的显卡驱动,没有成功。重启后会不能进入系统。卸载Nvidia的显卡驱动后,就能够进入系统了。请问怎样可以成功安装Nvidia驱动?
答案
poloshiao
论坛版主
帖子: 18280
注册时间: 2009-08-04 16:33
送出感谢: 21 次
接收感谢: 1954 次

Re: Ubuntu显卡驱动问题

#8

帖子 poloshiao » 2018-08-30 15:46

我在内核4.14.30的Ubuntu上安装Nvidia的显卡驱动,没有成功。重启后会不能进入系统。卸载Nvidia的显卡驱动后,就能够进入系统了。请问怎样可以成功安装Nvidia驱动?
因為每個使用者情況可能不同
幫你獨立新建一個主題
viewtopic.php?f=42&t=488384#p3209325
回复

回到 “Ubuntu 18.04 LTS”