Desinstalar viejos kernels y limpiar el menu de GRUB

Desinstalar viejos kernels y limpiar el menu de GRUB

1. Lo primero es ver que versiones de kernel tenemos instaladas en el sistema. Para ello hacemos:

~$ dpkg --get-selections | grep linux-image

2. A continuacion se trata de desinstalar (borrando los archivos de configuracion) los kernels no deseados (generalmente serian los antiguos, recomiendo dejar uno anterior al de uso cotidiano, por si las emergencias.

~# aptitude remove --purge linux-image-XXX

Donde debes sustituir XXX por la version de kernel que quieres desinstalar (por ej. 2.6.15-23-386).

Notese que solo necesitamos poderes de superusuario para eliminar el Kernel, no para buscarlos.

Para el dia 01/08/10 06:07 pm un amigo me pidio que le desistalara esos kernel que se lehabian  acumulado en el menu GRUB por lo que hice lo siguiente:

rodney@Kubuntu:~$ dpkg --get-selections | grep linux-image
linux-image-2.6.28-11-generic                   install
linux-image-2.6.28-15-generic                   install
linux-image-2.6.28-16-generic                   install
linux-image-2.6.31-14-generic                   install
linux-image-2.6.31-15-generic                   install
linux-image-2.6.31-17-generic                   install
linux-image-generic                                   install

Como se puede ver tiene 7 Kernel asi que procedi a quitarlos unoa uno asi  que:

rodney@Kubuntu:~$ sudo aptitude remove --purge linux-image-2.6.31-11-generic






rodney@Kubuntu:~$ sudo aptitude remove --purge linux-image-generic
Reading package lists... Done                                    
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages are BROKEN:
  linux-generic
The following packages will be REMOVED:
  linux-image-generic
0 packages upgraded, 0 newly installed, 1 to remove and 131 not upgraded.
Need to get 0B of archives. After unpacking 32.8kB will be freed.
The following packages have unmet dependencies:
  linux-generic: Depends: linux-image-generic (= 2.6.31.17.30) but it is not installable
The following actions will resolve these dependencies:

Remove the following packages:
linux-generic

Score is 119

Accept this solution? [Y/n/q/?] y
The following packages will be REMOVED:
  linux-generic{a} linux-image-generic
0 packages upgraded, 0 newly installed, 2 to remove and 131 not upgraded.
Need to get 0B of archives. After unpacking 65.5kB will be freed.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
(Reading database ... 135883 files and directories currently installed.)
Removing linux-generic ...
Removing linux-image-generic ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done

 

Comentarios

Entradas populares de este blog

Instalando El Entorno De Escritorio KDE En Debian

Instalar Watchtower Library en Linux.

Ha Muerto Ian Murdock, Fundador De Debian