怎么删除不了这个内核的东西
发表于 : 2009-04-10 22:28
rodren@rodren:~$ sudo aptitude purge ~ilinux-image-.*\(\!`uname -r`\)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following packages are BROKEN:
linux-restricted-modules-2.6.27-9-generic
The following packages will be REMOVED:
linux-image-2.6.27-7-generic{ap} linux-image-2.6.27-9-generic{p}
linux-image-generic{p}
0 packages upgraded, 0 newly installed, 3 to remove and 135 not upgraded.
Need to get 0B of archives. After unpacking 189MB will be freed.
The following packages have unmet dependencies:
linux-restricted-modules-2.6.27-9-generic: Depends: linux-image-2.6.27-9-generic but it is not installable
The following actions will resolve these dependencies:
Remove the following packages:
linux-restricted-modules-2.6.27-9-generic
linux-restricted-modules-generic
Score is 188
Accept this solution? [Y/n/q/?] y
The following packages will be REMOVED:
linux-image-2.6.27-7-generic{ap} linux-image-2.6.27-9-generic{p}
linux-image-generic{p} linux-restricted-modules-2.6.27-9-generic{a}
linux-restricted-modules-generic{a}
0 packages upgraded, 0 newly installed, 5 to remove and 134 not upgraded.
Need to get 0B of archives. After unpacking 191MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 115710 files and directories currently installed.)
Removing linux-image-2.6.27-7-generic ...
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-2.6.27-12-generic
Found kernel: /boot/vmlinuz-2.6.27-9-generic
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done
Purging configuration files for linux-image-2.6.27-7-generic ...
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-2.6.27-12-generic
Found kernel: /boot/vmlinuz-2.6.27-9-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
rmdir: failed to remove `/lib/modules/2.6.27-7-generic': Directory not empty
dpkg - warning: while removing linux-image-2.6.27-7-generic, directory `/lib/modules/2.6.27-7-generic' not empty so not removed.
Removing linux-image-generic ...
(Reading database ... 115706 files and directories currently installed.)
Removing linux-restricted-modules-generic ...
Removing linux-restricted-modules-2.6.27-9-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.27-9-generic
(Reading database ... 115645 files and directories currently installed.)
Removing linux-image-2.6.27-9-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/last-good-boot
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-2.6.27-12-generic
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-2.6.27-9-generic ...
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-2.6.27-12-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
rmdir: failed to remove `/lib/modules/2.6.27-9-generic': Directory not empty
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Current status: 134 updates [-2].
看红色部分
为什么会这样
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following packages are BROKEN:
linux-restricted-modules-2.6.27-9-generic
The following packages will be REMOVED:
linux-image-2.6.27-7-generic{ap} linux-image-2.6.27-9-generic{p}
linux-image-generic{p}
0 packages upgraded, 0 newly installed, 3 to remove and 135 not upgraded.
Need to get 0B of archives. After unpacking 189MB will be freed.
The following packages have unmet dependencies:
linux-restricted-modules-2.6.27-9-generic: Depends: linux-image-2.6.27-9-generic but it is not installable
The following actions will resolve these dependencies:
Remove the following packages:
linux-restricted-modules-2.6.27-9-generic
linux-restricted-modules-generic
Score is 188
Accept this solution? [Y/n/q/?] y
The following packages will be REMOVED:
linux-image-2.6.27-7-generic{ap} linux-image-2.6.27-9-generic{p}
linux-image-generic{p} linux-restricted-modules-2.6.27-9-generic{a}
linux-restricted-modules-generic{a}
0 packages upgraded, 0 newly installed, 5 to remove and 134 not upgraded.
Need to get 0B of archives. After unpacking 191MB will be freed.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
(Reading database ... 115710 files and directories currently installed.)
Removing linux-image-2.6.27-7-generic ...
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-2.6.27-12-generic
Found kernel: /boot/vmlinuz-2.6.27-9-generic
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done
Purging configuration files for linux-image-2.6.27-7-generic ...
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-2.6.27-12-generic
Found kernel: /boot/vmlinuz-2.6.27-9-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
rmdir: failed to remove `/lib/modules/2.6.27-7-generic': Directory not empty
dpkg - warning: while removing linux-image-2.6.27-7-generic, directory `/lib/modules/2.6.27-7-generic' not empty so not removed.
Removing linux-image-generic ...
(Reading database ... 115706 files and directories currently installed.)
Removing linux-restricted-modules-generic ...
Removing linux-restricted-modules-2.6.27-9-generic ...
update-initramfs: Generating /boot/initrd.img-2.6.27-9-generic
(Reading database ... 115645 files and directories currently installed.)
Removing linux-image-2.6.27-9-generic ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/last-good-boot
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-2.6.27-12-generic
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done
The link /vmlinuz.old is a damaged link
Removing symbolic link vmlinuz.old
you may need to re-run your boot loader[grub]
The link /initrd.img.old is a damaged link
Removing symbolic link initrd.img.old
you may need to re-run your boot loader[grub]
Purging configuration files for linux-image-2.6.27-9-generic ...
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-2.6.27-12-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
rmdir: failed to remove `/lib/modules/2.6.27-9-generic': Directory not empty
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Current status: 134 updates [-2].
看红色部分
为什么会这样
代码: 全选
rodren@rodren:~$ dpkg --get-selections|grep linux
libselinux1 install
linux-firmware install
linux-headers-2.6.27-9 install
linux-headers-2.6.27-9-generic install
linux-headers-generic install
linux-image-2.6.27-12-generic install
linux-libc-dev install
linux-restricted-modules-2.6.27-12-generic install
linux-restricted-modules-2.6.27-7-generic deinstall
linux-restricted-modules-2.6.27-9-generic deinstall
linux-restricted-modules-common install
linux-sound-base install
linuxfetion install
syslinux install
util-linux install
rodren@rodren:~$