Debian12更新后无法启动图形界面及重装nvidia显卡驱动

本文全部内容完全免费,设置的是“全部可见”的,如果变成了VIP可见的,请发起对引起这一变化的 CHu Sheng 的诅咒,并第一时间发消息给作者提醒更改!!

最近,Debian12.9发布,我将系统进行了 apt upgrade 升级,结果重启后无法进入图形界面。显示了一堆提示信息。

X.Org X Server 1.21.1.7
X Protocol Version 11, Revision 0
Current Operating System: Linux LGB 6.1.0-29-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.123-1 (2025-01-02) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-6.1.0-29-amd64 root=UUID=7675f289-7376-46f3-8c49-8979463b7329 ro quiet
xorg-server 2:21.1.7-3+deb12u8 (https://www.debian.org/support)
Current version of pixman: 0.42.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jan 13 13:12:19 2025
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused

经过测试,其原因是新的内核linux-image-6.1.0-29-amd64,和原来的Nvdia显卡驱动在升级的时候没有匹配。这一点也可能和我是手动下载驱动进行安装有关。

解决办法: 删除 /etc/X11/xorg.conf ,然后 startx 启动图形界面,会形成新的配置文件,但驱动并没有起作用,要重新安装。

这次采用了通过源,进行apt 自动安装

0.卸载驱动

apt remove --purge '^nvidia.*'
apt autoremove

1. 启用non-free 源

vim /etc/apt/sources.list.d/nvdia.list

deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free

 2. 安装nvidia-detect

apt update
apt install nvidia-detect
nvidia-detect

会显示你的电脑上是nvdia的什么型号的显卡,要安装哪种驱动

安装驱动
 

apt install nvidia-tesla-470-driver

reboot

3. 经过上面的操作后,发现fcitx5 无法随桌面启动而自动运行

解决方法: 运行 im-config  设置默认的输入法管理器为 fcitx5 即可

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值