我尝试使用以下命令更新我的 Debian 8 系统
apt update
apt upgrade
之后我的系统不再启动图形环境(KDE)。我已经尝试过标准命令apt-get clean
,apt-get install --fix-broken
...
/etc/init.d/kdm stop
/etc/init.d/kdm start
也显示没有错误。
寻找错误给了我:
grep \(EE\) /var/log/Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 146.464] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[ 146.464] (EE) NVIDIA: system's kernel log for additional error messages and
[ 146.464] (EE) NVIDIA: consult the NVIDIA README for details.
[ 146.464] (EE) No devices detected.
[ 146.464] (EE)
[ 146.464] (EE) no screens found(EE)
[ 146.464] (EE)
[ 146.464] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 146.464] (EE)
正如@Kevin Lemaire 指出的:
lspci| grep VGA
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
根据以下内容更新的 NVIDIA 软件包/var/log/apt/history.log
:
Upgrade: nvidia-alternative:amd64 (340.102-1, 340.106-1), libegl1-nvidia:amd64 (340.102-1, 340.106-1), nvidia-driver:amd64 (340.102-1, 340.106-1), xserver-xorg-video-nvidia:amd64 (340.102-1, 340.106-1), nvidia-opencl-common:amd64 (340.102-1, 340.106-1), nvidia-glx:amd64 (340.102-1, 340.106-1), nvidia-opencl-icd:amd64 (340.102-1, 340.106-1), libnvidia-compiler:amd64 (340.102-1, 340.106-1), libgl1-nvidia-glx:amd64 (340.102-1, 340.106-1), libgl1-nvidia-glx:i386 (340.102-1, 340.106-1), nvidia-kernel-dkms:amd64 (340.102-1, 340.106-1), libnvidia-ml1:amd64 (340.102-1, 340.106-1), nvidia-vdpau-driver:amd64 (340.102-1, 340.106-1), nvidia-driver-bin:amd64 (340.102-1, 340.106-1), nvidia-smi:amd64 (340.102-1, 340.106-1), libnvidia-eglcore:amd64 (340.102-1, 340.106-1)
(我只过滤了包含单词 的包nvidia
)。
更新
我删除了/etc/X11/xorg.conf
似乎解决了问题的文件。图形环境可以再次启动。然而,现在有时速度会变慢,并且无法再使用第二个显示器。 VGA信息发生变化
❯ lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 630 OEM] (rev a1)
答案1
问题是您安装了 nvidia 驱动程序,但实际上没有 nvidia 卡。
要找出安装了哪些软件包:
dpkg -l | grep -i nvidia
要删除找到的包:
sudo apt-get remove --purge nvidia-package-name
答案2
作为凯文·勒梅尔指出,问题在于实际上没有NVIDIA GPU。不过更新后/etc/X11/xorg.conf
指定了NVIDIA GPU。删除文件mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
解决了问题。
答案3
进入cli模式
sudo apt-get remove --purge nvidia*
sudo apt-get install ubuntu-desktop
sudo apt-get autoremove
sudo rm /etc/X11/xorg.conf
echo "nouveau" | sudo tee -a /etc/modules
sudo reboot
重新启动后,您应该可以使用 nouveau 驱动程序恢复操作。
sudo add-apt-repository --remove ppa:graphics-drivers/ppa
sudo apt-get autoremove
sudo apt-get autoclean