Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I'm trying to apt-get update/upgrade or anything related to the kernel I get the following trace.

The kernel 3.5.0 is a kernel that was manually installed and manually removed. I probably missed something in the removal, and apt-get thinks it still exist.
Overall the commands fails, packages I want to remove still exist.

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)
share|improve this question
    
Have you seen that? ubuntuforums.org/showthread.php?t=1542698 –  Peterling Oct 9 '12 at 21:02
    
By manually what do you mean? Did you compile it yourself or install a .deb from somewhere, or something else? –  John S Gruber Oct 9 '12 at 21:42
add comment

1 Answer

Check the following locations for remnants of the old kernel:

  • /usr/src/
  • /lib/modules/
  • /var/lib/initramfs-tools/
share|improve this answer
    
I don't know if I should wake up this old thread, but I'm in the same situation. How exactly do you update the locations for the kernel? –  user140118 Mar 14 '13 at 1:52
    
@nitnelave look in each of those directories. If there are any folders that match the problem kernel's version (exactly), then delete them with sudo. –  naught101 Nov 11 '13 at 12:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.