我的最终目标是在现代 Linux Gnome 桌面上使用 Geforce GTX 550 Ti。由于最近的 Ubuntu 版本停止支持所需的Nvidia 390 驱动程序,因此我选择了Debian Sid(又名 Unstable),它提供了看似简单的安装说明。
尝试安装它们后,我看到的是白色的“出现问题”低分辨率 GUI 错误屏幕,而不是登录屏幕(没有按钮,没有光标),切换到控制台不会给我登录提示,而只有黑屏和左上角无响应的插入符号。然后我需要重新启动并进行安全启动才能访问控制台。更新:经过一段时间后,full-upgrade
我现在最终使用软件渲染,从技术上讲,这比重新启动要好,但也好不到哪里去。
我做了什么
- 安装了Debian Testing
nouveau
amd64 每周 DVD 版本。在 Gnome 桌面和 Wayland中运行良好。 - 用适当的内容填充我的
sources.list
,因为除了对安装媒体 (USB iso) 的引用外,它完全是空的。在此之前,我甚至无法执行。我不知道为什么在全新安装后立即apt update
留下了一个基本上是空的。sources.list
- 按照Debian 的说明
unstable
在 中添加一行即可在 测试 中启用。sources.list
unstable
- 按照上面链接的 wiki 页面中有关Sid 的 Nvidia 390 驱动程序的说明进行操作。是的,我忘记在执行此操作之前安装内核头文件了。
- 最终系统无法正常工作,如上所述,因此我再次使用 safe-boot (
nvidia-legacy-390xx-driver
firmware-misc-nonfree
) 卸载了两个驱动程序包,并删除了所有三个 nvidia 符号链接etc/modprobe.d
(其中一个是 blacklistingnouveau
)。我恢复了正常工作的系统。 - 我意识到了自己的错误,并根据说明安装了内核头文件( )。
linux-headers-amd64
- 我再次尝试安装驱动程序(
nvidia-legacy-390xx-driver
firmware-misc-nonfree
),但重启后结果与之前相同。 - 在安装驱动程序包时,我没有看到太多实际的构建操作,因此我尝试了
--reinstall
该nvidia-legacy-390xx-kernel-dkms
包,它最终实际上提到了“构建”某些东西。 - 我仍然遇到同样的情况,即在正常启动期间没有登录屏幕并且无法访问控制台。
我不确定我是否不小心弄乱了某件事,并且没有正确修复它,或者此时问题可能是什么。解决这种情况的最佳方法是什么?
我还采取了full-upgrade
适当的措施来确保所有软件包都是最新的。
观察结果
- 当系统工作时(使用
nouveau
),Gnome 桌面在 Wayland 上工作正常,但使用 Xorg 上的 Gnome 登录时,会出现全屏“出现问题”GUI 错误屏幕。它有一个“注销”按钮,我可以用空格键(没有鼠标光标)单击它。不过 MATE 桌面工作正常,它也使用 Xorg。我同意 Xorg 上的 Gnome 暂时不工作——毕竟它是测试版 + 不稳定版,但我想如果gdm
图形驱动程序工作正常(就像使用一样nouveau
),至少登录屏幕()和控制台应该可以工作? - 我特意选择 Debian Testing(即 Debian 13 Trixie)而不是 Debian 12 的一个原因是,我需要确保我拥有最新的
nouveau
版本。这是因为即使在最新的 Ubuntu 24.10 上,nouveau
驱动程序也会在一段时间后冻结整个系统(我已通过实验确定了这一点;Ubuntu 仅在加载时锁定nouveau
,仅在英特尔集成显卡上运行时永远不会锁定)。我正在尝试最大限度地提高nouveau
成功的机会(Windows 10 不会冻结,所以我将其归因于nouveau
驱动程序,而不是硬件)。
附加信息
来源列表
由于某种原因,我必须在操作系统安装后立即重建此文件,因为它只包含第一行(现在已被注释掉)。
# deb cdrom:[Debian GNU/Linux testing _Trixie_ - Official Snapshot amd64 DVD Binary-1 with firmware 20250310-03:29]/ trixie contrib main non-free-firmware
# unstable
deb http://deb.debian.org/debian unstable main contrib non-free non-free-firmware
deb http://deb.debian.org/debian testing main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian testing main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security/ testing-security main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian-security/ testing-security contrib non-free main non-free-firmware
deb http://deb.debian.org/debian testing-updates contrib non-free main non-free-firmware
deb-src http://deb.debian.org/debian testing-updates contrib non-free main non-free-firmware
Xorg 日志错误
这些可能不相关,因为我甚至无法进入登录屏幕和控制台,并且 MATE 在 Xorg 上运行,但是为了完整性我将它们包括在内,直到我知道它们可以被忽略。
$ grep EE /var/log/Xorg.0.log
[ 74.735] Current Operating System: Linux debian 6.12.17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.17-1 (2025-03-01) x86_64
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 75.166] (EE) systemd-logind: failed to take device /dev/dri/card0: Invalid argument
[ 77.033] (EE) Failed to load module "nv" (module does not exist, 0)
[ 77.552] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[ 77.552] (EE) open /dev/dri/card0: Invalid argument
[ 77.552] (EE) open /dev/dri/card0: Invalid argument
[ 77.562] (EE) Unable to find a valid framebuffer device
[ 77.563] (EE) Screen 0 deleted because of no matching config section.
[ 77.563] (EE) Screen 0 deleted because of no matching config section.
[ 77.653] (II) Initializing extension MIT-SCREEN-SAVER
[ 77.667] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
[ 78.331] (EE) systemd-logind: failed to take device /dev/dri/card0: Invalid argument
$ grep EE /var/log/Xorg.0.log.old
[ 23.670] Current Operating System: Linux debian 6.12.17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.17-1 (2025-03-01) x86_64
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 23.970] (EE) systemd-logind: failed to take device /dev/dri/card0: Invalid argument
[ 25.852] (EE) Failed to load module "nv" (module does not exist, 0)
[ 26.471] (EE) [drm] Failed to open DRM device for pci:0000:01:00.0: -19
[ 26.471] (EE) open /dev/dri/card0: Invalid argument
[ 26.472] (EE) open /dev/dri/card0: Invalid argument
[ 26.490] (EE) Unable to find a valid framebuffer device
[ 26.491] (EE) Screen 0 deleted because of no matching config section.
[ 26.491] (EE) Screen 0 deleted because of no matching config section.
[ 26.522] (II) Initializing extension MIT-SCREEN-SAVER
[ 26.535] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
[ 27.025] (EE) systemd-logind: failed to take device /dev/dri/card0: Invalid argument
如果还有任何相关内容请随意询问,我会添加。