当我尝试 apt-get update/upgrade 或任何与内核相关的东西时,我得到以下跟踪。
内核 3.5.0 是手动安装并手动删除的内核。我可能在删除时遗漏了某些内容,但 apt-get 认为它仍然存在。
总的来说,命令失败了,我想要删除的软件包仍然存在。
update-initramfs: deferring update (trigger activated)
update-initramfs: Generating /boot/initrd.img-3.2.0-31-generic-pae
INFO:Enable nvidia-current
DEBUG:Parsing /usr/share/nvidia-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/nvidia-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/nvidia-common/quirks/lenovo_thinkpad
DEBUG:Processing quirk Latitude E6530
DEBUG:Failure to match Gigabyte Technology Co., Ltd. with Dell Inc.
DEBUG:Quirk doesn't match
DEBUG:Processing quirk ThinkPad T420s
DEBUG:Failure to match Gigabyte Technology Co., Ltd. with LENOVO
DEBUG:Quirk doesn't match
Removing old nvidia-current-295.40 DKMS files...
Loading new nvidia-current-295.40 DKMS files...
Error! DKMS tree already contains: nvidia-current-295.40
You cannot add the same module/version combo more than once.
dpkg: error processing nvidia-current (--configure):
subprocess installed post-installation script returned error exit status 3
No apport report written because MaxReports is reached already
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.5.0
grep: /boot/config-3.5.0: No such file or directory
WARNING: missing /lib/modules/3.5.0
Device driver support needs thus be built-in linux image!
WARNING: Couldn't open directory /lib/modules/3.5.0: No such file or directory
FATAL: Could not open /lib/modules/3.5.0/modules.dep.temp for writing: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.5.0/modules.dep: No such file or directory
Errors were encountered while processing:
nvidia-current
E: Sub-process /usr/bin/dpkg returned an error code (1)
答案1
检查以下位置是否存在旧内核的残余:
- /usr/src/
- /lib/模块/
- /var/lib/initramfs 工具/