[求助] Ubuntu 18.04.3 中 NVIDIA 显卡驱动的安装问题

CPU/显卡/打印机/USB设备等硬件问题
回复
2019_application
帖子: 1
注册时间: 2019-11-20 13:14
系统: Ubuntu 18.04.3 WSL

[求助] Ubuntu 18.04.3 中 NVIDIA 显卡驱动的安装问题

#1

帖子 2019_application » 2019-11-20 13:29

請問在Windows Subsystem for Linux 中ubuntu 18.04.3 command line 安nvidia driver时, 经常显示沒此command, 如何解决?
ubuntu18@LAPTOP-349D1N14:~$ lsmod | grep nvidia
libkmod: ERROR ../libkmod/libkmod-module.c:1657 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error: could not get list of modules: No such file or directory
libkmod: ERROR ../libkmod/libkmod-module.c:1657 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error: could not get list of modules: No such file or directory

ubuntu18@LAPTOP-349D1N14:~$ sudo apt-get install nvidia-430
[sudo] password for ubuntu18:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nvidia-430
ubuntu18@LAPTOP-349D1N14:~$ sudo service lightdm start
lightdm: unrecognized service
ubuntu18@LAPTOP-349D1N14:~$ nvidia-settings
Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help` for usage
information.

ubuntu18@LAPTOP-349D1N14:~$ sudo apt-get install nvidia-settings
Reading package lists... Done
Building dependency tree
Reading state information... Done
nvidia-settings is already the newest version (440.33.01-0ubuntu1).
nvidia-settings set to manually installed.
The following packages were automatically installed and are no longer required:
lib32gcc1 libc6-i386 ocl-icd-libopencl1 xserver-xorg-legacy
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ubuntu18@LAPTOP-349D1N14:~$ nvidia-settings
Unable to init server: Could not connect: Connection refused

ERROR: The control display is undefined; please run `nvidia-settings --help` for usage
information.
谢谢协助
onlylove
论坛版主
帖子: 5244
注册时间: 2007-01-14 16:23

Re: [求助] Ubuntu 18.04.3 中 NVIDIA 显卡驱动的安装问题

#3

帖子 onlylove » 2019-11-20 17:32

我个人单纯觉得,做事情不能简单的复制粘贴
要知道每一条命令的作用,以及正确的输出,最好还要知道遇到错误以后怎么办

E: Unable to locate package nvidia-430

没找到包,嗯,装不上,往下的命令都是白做工

lightdm: unrecognized service

1804好像默认gnome?所以大概率是gdm
回复