每当我尝试在系统中安装包时,我的终端中都会出现以下内容。
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-460.39 DKMS files...
------------------------------
Deleting module version: 460.39
completely from the DKMS tree.
------------------------------
Done.
Loading new nvidia-460.39 DKMS files...
Building for 5.10.1-051001-generic
Building for architecture x86_64
Building initial module for 5.10.1-051001-generic
ERROR (dkms apport): kernel package linux-headers-5.10.1-051001-generic is not s
upported
Error! Bad return status for module build on kernel: 5.10.1-051001-generic (x86_
64)
Consult /var/lib/dkms/nvidia/460.39/build/make.log for more information.
dpkg: error processing package nvidia-dkms-460 (--configure):
installed nvidia-dkms-460 package post-installation script subprocess returned
error exit status 10
Setting up nvidia-driver-460 (460.39-0ubuntu0.20.04.1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.4) ...
update-initramfs: Generating /boot/initrd.img-5.10.1-051001-generic
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i91
5
W: Possible missing firmware /lib/firmware/i915/tgl_huc_7.5.0.bin for module i91
5
Errors were encountered while processing:
nvidia-dkms-460
E: Sub-process /usr/bin/dpkg returned an error code (1)
一切都很顺利,直到我尝试使用 Ubuntu 更新程序更新固件。但出了点问题,之后就一直这样。
任何帮助都将不胜感激。谢谢。
答案1
如果您上次安装软件包时遇到问题,则更有可能出现此错误。要清除该问题,请运行以下命令。
sudo apt --fix-broken install
然后尝试安装您想要安装的包。
(我知道这不是正确答案。但我没有足够的声誉来发表评论。如果它错了,很抱歉。)