从 17.10 安装 18.04 后损坏的软件包修复

从 17.10 安装 18.04 后损坏的软件包修复

从 17.10 升级到 18.04 后,我出现了黑屏,然后从终端,我尝试卸载 Nvidia。

从 Grub,我按下“e”并添加 nouveau.modeset=0。

我可以成功登录,但如果我尝试修复损坏的软件包

sudo dpkg --configure -a

终端卡在Building initial module for 4.15.0-24-generic

sudo dpkg --configure -a 之后的完整输出

Processing triggers for initramfs-tools (0.130ubuntu3.2) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-24-generic
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf.d/i386-linux-gnu_EGL.conf: No such file or directory
Setting up nvidia-dkms-390 (390.67-0ubuntu0~gpu18.04.1) ...
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
Removing old nvidia-390.67 DKMS files...

-------- Uninstall Beginning --------
Module:  nvidia
Version: 390.67
Kernel:  4.15.0-24-generic (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod......

DKMS: uninstall completed.

------------------------------
Deleting module version: 390.67
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-390.67 DKMS files...
Building for 4.15.0-24-generic
Building for architecture x86_64
Building initial module for 4.15.0-24-generic

答案1

通过“软件和更新”进行更新后,我能够解决此问题。然后我点击了此链接

尝试为 ubuntu Desktop 18.04 LTS 安装 nvidia 驱动程序

应该检查这个文件:

/etc/modprobe.d/disable-nouveau.conf
blacklist nouveau
blacklist vga16fb
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
blacklist amd76_edac
options nouveau modeset=0

相关内容