Removing old kernel fails to remove /lib/modules/<kernel> directory
I tried to completely remove some old kernels (linux-
Synaptic ran but returned:
>> rmdir: failed to remove `/lib/modules/
and
>> rmdir: failed to remove `/lib/modules/
Is this a bug in the removal process or I am doing something wrong?
Can I safely delete those directories manually?
Below is relevant section from my /var/log/
Log started: 2008-06-22 08:12:47
(Reading database ... 156797 files and directories currently installed.)
Removing linux-restricte
Removing linux-ubuntu-
update-initramfs: Generating /boot/initrd.
(Reading database ... 156239 files and directories currently installed.)
Removing linux-image-
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Replacing config file /var/run/
Updating /boot/grub/menu.lst ... done
Purging configuration files for linux-image-
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Updating /boot/grub/menu.lst ... done
rmdir: failed to remove `/lib/modules/
(Reading database ... 154152 files and directories currently installed.)
Removing linux-restricte
Removing virtualbox-
Removing linux-ubuntu-
update-initramfs: Generating /boot/initrd.
(Reading database ... 153600 files and directories currently installed.)
Removing linux-image-
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Replacing config file /var/run/
Updating /boot/grub/menu.lst ... done
Purging configuration files for linux-image-
Running postrm hook script /sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-
Found kernel: /boot/vmlinuz-
Found kernel: /boot/memtest86
Updating /boot/grub/menu.lst ... done
rmdir: failed to remove `/lib/modules/
Log ended: 2008-06-22 08:13:27
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Old_Soldier
- Solved:
- Last query:
- Last reply: