Operational system: Lubuntu 18.04 // upgraded forcefully from 16.04
architeture: amd64
Video graphic card: GeForce 7200 GS / 7300 SE
一切都运行正常,但有时当我在 YouTube 上观看视频时 [在 G. Chromer 中] 屏幕会冻结,只有视频声音继续播放,甚至尝试打开/关闭 Num/Caps Lock 键也不起作用,所以当这种情况发生时我不得不重新启动计算机。我认为问题可能出在驱动程序上,所以我想我应该重新安装驱动程序。我清除了 nvidia 驱动程序,并尝试重新安装它,但它把一切都搞乱了。现在我的屏幕是宽屏和拉伸的,图像很差。我尝试再次重新安装驱动程序 [通过 apt-get install 和 aptitude install],但安装驱动程序后什么也没发生。
我无法打开 Nvidia X 服务器设置 [它在菜单中,如果我单击它,什么也不会发生]。我使用的一些命令及其输出:
nvidia-settings
ERROR: Unable to load info from any available system
。
$ lsmod | grep nvidia
$: command not found
。
$ sudo lshw -c display
*-display UNCLAIMED
description: VGA compatible controller
product: G72 [GeForce 7200 GS / 7300 SE]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:02:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list
configuration: latency=0
resources: memory:fa000000-faffffff memory:e0000000-efffffff memory:fb000000-fbffffff memory:c0000-dffff
我该怎么办?我在这个网站上寻找了很多解决方案,但没有一个对我有用。
任何帮助,将不胜感激。
编辑:我尝试了 Terrance 的链接步骤,我得到的结果是:
$ nvidia-settings
ERROR: NVIDIA driver is not loaded
ERROR: Unable to load info from any available system
$ nvidia-smi
Command 'nvidia-smi' not found, but can be installed with:
sudo apt install nvidia-340
sudo apt install nvidia-utils-390
我仍然无法打开 NVidia Server X 设置,也无法更改屏幕尺寸等内容。哦,支持我的显卡的最新驱动程序是 304,所以我认为安装这些不支持我的显卡的驱动程序可能会让一切变得更加混乱。命令“lsmod | grep nvidia”没有返回任何输出。
编辑²:已尝试
$ sudo apt install nvidia-304
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
lib32gcc1 libc6-i386
Recommended packages:
libcuda1-304 nvidia-opencl-icd-304
The following packages will be REMOVED:
libgl1-mesa-glx libglx-mesa0
The following NEW packages will be installed:
lib32gcc1 libc6-i386 nvidia-304
0 upgraded, 3 newly installed, 2 to remove and 0 not upgraded.
Need to get 0 B/38,5 MB of archives.
After this operation, 188 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 171909 files and directories currently installed.)
Removing libgl1-mesa-glx:amd64 (18.0.0~rc5-1ubuntu1) ...
Removing libglx-mesa0:amd64 (18.0.0~rc5-1ubuntu1) ...
Selecting previously unselected package libc6-i386.
(Reading database ... 171896 files and directories currently installed.)
Preparing to unpack .../libc6-i386_2.27-3ubuntu1_amd64.deb ...
Unpacking libc6-i386 (2.27-3ubuntu1) ...
Selecting previously unselected package lib32gcc1.
Preparing to unpack .../lib32gcc1_1%3a8-20180414-1ubuntu2_amd64.deb ...
Unpacking lib32gcc1 (1:8-20180414-1ubuntu2) ...
Selecting previously unselected package nvidia-304.
Preparing to unpack .../nvidia-304_304.137-0ubuntu2_amd64.deb ...
Unpacking nvidia-304 (304.137-0ubuntu2) ...
Setting up libc6-i386 (2.27-3ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up lib32gcc1 (1:8-20180414-1ubuntu2) ...
Setting up nvidia-304 (304.137-0ubuntu2) ...
update-alternatives: using /usr/lib/nvidia-304/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-304/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/share/nvidia-304/glamor.conf to provide /usr/share/X11/xorg.conf.d/glamoregl.conf (glamor_conf) in auto mode
dpkg: error: version '-' has bad syntax: revision number is empty
dpkg: error: version '-' has bad syntax: revision number is empty
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia-304
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Loading new nvidia-304-304.137 DKMS files...
Building for 4.15.0-20-generic
Building for architecture x86_64
Building initial module for 4.15.0-20-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-304.0.crash'
Error! Bad return status for module build on kernel: 4.15.0-20-generic (x86_64)
Consult /var/lib/dkms/nvidia-304/304.137/build/make.log for more information.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for initramfs-tools (0.130ubuntu3) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-20-generic
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/i386-linux-gnu_GL.conf: No such file or directory
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf: No such file or directory
$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with NVIDIA driver. Make sure that latest NVIDIA driver is installed and running.
答案1
sudo apt-get install --reinstall xserver-xorg-core libgl1-mesa-glx
答案2
nvidia-304 驱动程序已从 18.04 中删除,因为它不再受支持,而且内核 4.15 不会编译它。这里有一个补丁,但我还没有测试过 https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1737750
Nouveau 是 ubuntu 提供的选项,但我可能遇到一些问题,例如 Kodi 不支持 nouveau。更多信息:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-304/+bug/1748000
答案3
我修复了这个问题:
sudo apt install libwayland-egl1
sudo dpkg -a --configure
reboot
似乎 2 个文件 libwayland-egl1 和安装 libwayland-egl1-mesa 的文件存在某种问题。我注意到,安装 libwayland-egl1-mesa 后,出现了很多问题,例如无法打开项目等。这可能是升级问题,因为到目前为止,我只在升级情况下遇到过这种情况。
答案4
$ sudo prime-select nvidia
注销并重新登录,nvidia-settings
就可以打开 nvidia-gui