更新:首先看到这个是否相关?Nvidia 驱动程序 460 不适用于 Ubuntu 18.04 中的 5.4.0-64 内核
无论您使用什么版本的驱动程序,都安装了 nvidia-settings 460这些版本的东西可能会破坏一切?包回购使这个无法修复?
以下不起作用:https ://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux
它也没有提到测试结果是否有效。
这是我的测试:
$ 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.
我过去曾多次这样做,并且指的是我的旧笔记,但没有任何效果。
我在两者之间清除 nvidia nad cuda。
我纯粹在命令行上运行,所以我只关心最少的命令行指令。
我想知道 20.04 中的路径是否发生了变化。有这个奇怪的文件
cat /usr/lib/nvidia/alternate-install-available
The NVIDIA driver provided by Ubuntu can be installed by launching the "Software & Updates" application, and by selecting the NVIDIA driver from the "Additional Drivers" tab.
而且我应该提到我在无头模式下运行(没有连接监视器),所以如果有任何奇怪的触发器,监视器的使用恰好触发了这将是有用的。这不是我过去安装在服务器上的情况。
我有一个 GeForce RTX 2070 ......也许这就是问题所在。还不确定。
更新:插入显示器并重新启动,绝对没有出现。黑屏。我仍然可以 ssh 进入盒子。
inxi
CPU: 6-Core Intel Core i7-8700 (-MT MCP-) speed/min/max: 800/800/4600 MHz Kernel: 5.4.0-65-generic x86_64 Up: 5m
Mem: 1631.7/32075.2 MiB (5.1%) Storage: 465.76 GiB (54.9% used) Procs: 406 Shell: bash 5.0.17 inxi: 3.0.38
(38) $ inxi -F
System: Host: xxx Kernel: 5.4.0-65-generic x86_64 bits: 64 Console: tty 1 Distro: Ubuntu 20.04.2 LTS (Focal Fossa)
Machine: Type: Desktop Mobo: Micro-Star model: Z370-A PRO (MS-7B48) v: 1.0 serial: <superuser/root required>
UEFI: American Megatrends v: 2.40 date: 03/08/2018
CPU: Topology: 6-Core model: Intel Core i7-8700 bits: 64 type: MT MCP L2 cache: 12.0 MiB
Speed: 800 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800
9: 800 10: 800 11: 800 12: 800
Graphics: Device-1: NVIDIA TU106 [GeForce RTX 2070] driver: N/A
Display: server: X.org 1.20.9 driver: fbdev,nouveau unloaded: modesetting,vesa tty: 181x44
Message: Advanced graphics data unavailable in console. Try -G --display
Audio: Device-1: Intel 200 Series PCH HD Audio driver: snd_hda_intel
Device-2: NVIDIA TU106 High Definition Audio driver: snd_hda_intel
Sound Server: ALSA v: k5.4.0-65-generic
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169
IF: enp3s0 state: down mac: 30:9c:23:d0:bb:05
Device-2: TP-Link TL-WN722N v2 type: USB driver: rtl8812au
IF: enx503eaa4de20b state: up speed: N/A duplex: N/A mac: 50:3e:aa:4d:e2:0b
IF-ID-1: docker0 state: down mac: 02:42:f8:2b:a8:df
Drives: Local Storage: total: 465.76 GiB used: 255.67 GiB (54.9%)
ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 500GB size: 465.76 GiB
Partition: ID-1: / size: 456.96 GiB used: 255.66 GiB (55.9%) fs: ext4 dev: /dev/nvme0n1p2
Sensors: System Temperatures: cpu: 35.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info: Processes: 416 Uptime: 5m Memory: 31.32 GiB used: 1.60 GiB (5.1%) Init: systemd runlevel: 5 Shell: bash
inxi: 3.0.38
更新:设法安装了一些 nvidia 驱动程序,现在显示器正在工作,但分辨率太低。
一些新的事物组合有一些非常非常破碎的东西。我怎样才能恢复到以前的状态。运动部件太多。
更新:
sudo gpu-manager
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
can't access /run/u-d-c-nvidia-was-loaded file
can't access /opt/amdgpu-pro/bin/amdgpu-pro-px
Looking for nvidia modules in /lib/modules/5.4.0-65-generic/updates/dkms
Looking for amdgpu modules in /lib/modules/5.4.0-65-generic/updates/dkms
Is nvidia loaded? no
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is intel loaded? no
Is radeon loaded? no
Is radeon blacklisted? no
Is amdgpu loaded? no
Is amdgpu blacklisted? no
Is amdgpu versioned? no
Is amdgpu pro stack? no
Is nouveau loaded? no
Is nouveau blacklisted? yes
Is nvidia kernel module available? no
Is amdgpu kernel module available? no
Vendor/Device Id: 10de:1f02
BusID "PCI:1@0:0:0"
Is boot vga? yes
Error: can't access /sys/bus/pci/devices/0000:01:00.0/driver
The device is not bound to any driver.
Error : Failed to open /dev/dri
Error : Failed to open /dev/dri
Error : Failed to open /dev/dri
Error : Failed to open /dev/dri
Does it require offloading? no
last cards number = 1
Has amd? no
Has intel? no
Has nvidia? yes
How many cards? 1
Has the system changed? No
Single card detected
Nothing to do
以下似乎工作。也许 nvidia 驱动程序 460 不适用于 Ubuntu 18.04 中的 5.4.0-64 内核
并确保查看
对于任何奇怪的版本分歧。在所有情况下,nvidia-settings 都以某种方式固定在 460。