[ubuntu-ar] Eliminar kernel anteriores tras actualización
Pablo Lillia
pablofer72 at yahoo.com.ar
Tue Dec 29 21:44:28 UTC 2015
Te creo, y por eso te digo que es rarísimo, y que tiene que haber algo
distinto que hicimos en algún punto. En mi equipo principal no sucede.
Recién fui al equipo de mi hermano e hice la misma prueba. Tampoco
remueve los kernels viejos el apt-get autoremove en su equipo. Te copio
la prueba que hice.
~$ sudo dpkg -l linux-image-* | grep ii
dpkg-query: aviso: al analizar el fichero `/var/lib/dpkg/available'
cerca de la línea 89900 paquete 'virtualbox-3.1':
error en la cadena `Version' `3.1.2-56127_Ubuntu_karmic': carácter
inválido en el número de revisión
dpkg-query: aviso: al analizar el fichero `/var/lib/dpkg/available'
cerca de la línea 89922 paquete 'virtualbox-3.0':
error en la cadena `Version' `3.0.12-54655_Ubuntu_karmic': carácter
inválido en el número de revisión
ii linux-image-3.13.0-39-generic
3.13.0-39.66~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-43-generic
3.13.0-43.72~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-44-generic
3.13.0-44.73~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-45-generic
3.13.0-45.74~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-46-generic
3.13.0-46.79~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-48-generic
3.13.0-48.80~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-49-generic
3.13.0-49.81~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-51-generic
3.13.0-51.84~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-54-generic
3.13.0-54.91~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-55-generic
3.13.0-55.94~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-57-generic
3.13.0-57.95~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-58-generic
3.13.0-58.97~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-59-generic
3.13.0-59.98~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-61-generic
3.13.0-61.100~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-62-generic
3.13.0-62.102~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-63-generic
3.13.0-63.104~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-65-generic
3.13.0-65.106~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-66-generic
3.13.0-66.108~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-67-generic
3.13.0-67.110~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-68-generic
3.13.0-68.111~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-71-generic
3.13.0-71.114~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.13.0-74-generic
3.13.0-74.118~precise1 Linux kernel image
for version 3.13.0 on 64 bit x86 SMP
ii linux-image-3.2.0-74-generic
3.2.0-74.109 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-75-generic
3.2.0-75.110 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-76-generic
3.2.0-76.111 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-77-generic
3.2.0-77.114 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-79-generic
3.2.0-79.115 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-80-generic
3.2.0-80.116 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-82-generic
3.2.0-82.119 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-85-generic
3.2.0-85.122 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-86-generic
3.2.0-86.124 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-87-generic
3.2.0-87.125 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-88-generic
3.2.0-88.126 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-89-generic
3.2.0-89.127 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-90-generic
3.2.0-90.128 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-91-generic
3.2.0-91.129 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-92-generic
3.2.0-92.131 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-93-generic
3.2.0-93.133 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-94-generic
3.2.0-94.134 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-95-generic
3.2.0-95.135 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.2.0-97-generic
3.2.0-97.137 Linux kernel image
for version 3.2.0 on 64 bit x86 SMP
ii linux-image-3.5.0-54-generic
3.5.0-54.81~precise1 Linux kernel image
for version 3.5.0 on 64 bit x86 SMP
ii linux-image-generic
3.2.0.97.113 Generic Linux kernel
image
ii linux-image-generic-lts-quantal
3.5.0.54.59 Generic Linux kernel
image
ii linux-image-generic-lts-trusty
3.13.0.74.66 Generic Linux kernel
image
~$ sudo apt-get autoremove
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
0 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise
Este es un Ubuntu 12.02, y ves que tiene varios kernels instalados de la
serie 3.2.x y del 3.13.x. Entonces le corro el sudo apt-get autoremove
igual que vos, y no encuentra nada para eliminar. Es cosa de Mandinga.
También volví a probarlo en este equipo desde el que te escribo, un
14.04. Ahora solamente tengo 3 kenels del 3.19.x, y lo mismo: no borra
ninguno, aunque todos fueron instalados por el update.
Me olvidé de probar en los equipos del laburo, que seguro hay algunos
con bocha de kernles viejos. Mañana trato de acordarme y lo hago. No
entiendo cómo te funka. Es un misterio rarísimo, y me gustaría
entenderlo porque sería muy práctico que el apt-get autoremove hiciera
lo mismo que a vos.
Un abrazo,
Pablo
El 25/12/15 a las 14:24, Guillermo Lisi escribió:
> No estoy vendiendo humo.
>
> En algunos casos en los que la primera vez que intente el autoremove no
> funciono, revise con aptitude y vi que removiendo manualmente todos las
> imagenes menos las dos ultimas instaladas hizo que comenzara a funcionar.
> Una sola intervencion manual y listo.
>
> No instale nada adicional para que esto funcione y lo uso con 12.04 y 14.04
> por igual.
>
> Ejemplo practico reciente:
>
> glisi en servidor:~$ sudo apt-get autoremove
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages will be REMOVED:
> linux-headers-3.2.0-94 linux-headers-3.2.0-94-generic
> linux-headers-3.2.0-95 linux-headers-3.2.0-95-generic
> linux-image-3.2.0-94-generic linux-image-3.2.0-95-generic
> 0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
> *After this operation, 437 MB disk space will be freed.*
> Do you want to continue [Y/n]?
> (Reading database ... 230184 files and directories currently installed.)
> Removing linux-headers-3.2.0-94-generic ...
> Removing linux-headers-3.2.0-94 ...
> Removing linux-headers-3.2.0-95-generic ...
> Removing linux-headers-3.2.0-95 ...
> Removing linux-image-3.2.0-94-generic ...
> Examining /etc/kernel/postrm.d .
> run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-94-generic
> /boot/vmlinuz-3.2.0-94-generic
> update-initramfs: Deleting /boot/initrd.img-3.2.0-94-generic
> run-parts: executing /etc/kernel/postrm.d/x-grub-legacy-ec2
> 3.2.0-94-generic /boot/vmlinuz-3.2.0-94-generic
> 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-3.2.0-97-generic
> Found kernel: /boot/vmlinuz-3.2.0-96-generic
> Found kernel: /boot/vmlinuz-3.2.0-95-generic
> Found kernel: /boot/memtest86+.bin
> Replacing config file /run/grub/menu.lst with new version
> Updating /boot/grub/menu.lst ... done
>
> run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-94-generic
> /boot/vmlinuz-3.2.0-94-generic
> Generating grub.cfg ...
> Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT
> is set is no longer supported.
> Found linux image: /boot/vmlinuz-3.2.0-97-generic
> Found initrd image: /boot/initrd.img-3.2.0-97-generic
> Found linux image: /boot/vmlinuz-3.2.0-96-generic
> Found initrd image: /boot/initrd.img-3.2.0-96-generic
> Found linux image: /boot/vmlinuz-3.2.0-95-generic
> Found initrd image: /boot/initrd.img-3.2.0-95-generic
> Found memtest86+ image: /boot/memtest86+.bin
> done
> Removing linux-image-3.2.0-95-generic ...
> Examining /etc/kernel/postrm.d .
> run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-95-generic
> /boot/vmlinuz-3.2.0-95-generic
> update-initramfs: Deleting /boot/initrd.img-3.2.0-95-generic
> run-parts: executing /etc/kernel/postrm.d/x-grub-legacy-ec2
> 3.2.0-95-generic /boot/vmlinuz-3.2.0-95-generic
> 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-3.2.0-97-generic
> Found kernel: /boot/vmlinuz-3.2.0-96-generic
> Found kernel: /boot/memtest86+.bin
> Replacing config file /run/grub/menu.lst with new version
> Updating /boot/grub/menu.lst ... done
>
> run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-95-generic
> /boot/vmlinuz-3.2.0-95-generic
> Generating grub.cfg ...
> Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT
> is set is no longer supported.
> Found linux image: /boot/vmlinuz-3.2.0-97-generic
> Found initrd image: /boot/initrd.img-3.2.0-97-generic
> Found linux image: /boot/vmlinuz-3.2.0-96-generic
> Found initrd image: /boot/initrd.img-3.2.0-96-generic
> Found memtest86+ image: /boot/memtest86+.bin
> done
>
>
>
>
> On Thu, Dec 24, 2015 at 10:02 PM Pablo Lillia <pablofer72 en yahoo.com.ar>
> wrote:
>
>> El 23/12/15 a las 18:05, Guillermo Lisi escribió:
>>> Puede ser que lo que haya dicho no sea correcto, pero vengo usando
>>> autoremove desde que salio la 14.04 y no solo elimina las entradas en
>> GRUB
>>> sino que tambien elimina kernels y headers del disco recuperando espacio.
>>> Siempre esta la opcion manual, es el metodo por defecto en todas las
>>> distribuciones.
>>> Antes, hace mucho, las elegia usando aptitude o Synaptics, pero cuando vi
>>> como funcionaba autoremove lo adopte.
>>>
>>> De hecho, cuando hay kernels, headers o archivos que ya no se requieren
>> mas
>>> en el sistema, luego de un apt-get dist-upgrade sale una recomendacion
>> para
>>> removerlos con autoremove. Y funciona.
>>>
>>> Varias decenas de servidores y algunas maquinas de uso personal verifican
>>> en la practica lo que dije.
>>>
>>>
>>>
>> En un Ubuntu limpio, hasta 14.04, estoy muy seguro que no es así, porque
>> incluso lo probé antes de responder la primera vez, que justo tenía
>> algunos kernels viejos acumulados aquí mismo... y nada, el sudo apt-get
>> autoremove eliminó una librería que ya no se usaba, pero todos los
>> kernels viejos (y eran muchos) quedaron ahí tranquilos en la suya :D.
>> Pero bueno, también puedo equivocarme, aunque extrañamente en mis
>> equipos no funciona el apt-get autoremove automágico :( y ojalá si lo
>> hiciera.
>>
>> Algunos links:
>>
>> http://askubuntu.com/questions/563483/why-doesnt-apt-get-autoremove-remove-my-old-kernels
>>
>> http://askubuntu.com/questions/590673/why-doesnt-ubuntu-remove-old-kernels-automatically
>>
>> http://askubuntu.com/questions/2793/how-do-i-remove-or-hide-old-kernel-versions-to-clean-up-the-boot-menu
>>
>> Yo te creo cuando decís que funka en tus equipos, no me vas a estar
>> macaneando... todavía no es 28-dic :D, no te pongo en duda. Pero tal vez
>> instalaste algo más, no se, quizás hacemos algo distinto, es bien raro.
>> Y me intriga, pero bueno, algún día con más tiempo lo voy investigar y
>> lo comparto. Te aseguro que a mi no me funciona así de fácil en ningún
>> equipo, para mi desgracia. Tal vez, paso por alto algo.
>>
>> Abrazo y felices fiestas!
>> Pablo
>>
>>
>> --
>> Ubuntu-ar lista de correo
>> Ubuntu-ar en lists.ubuntu.com
>> Modifica tus opciones o desuscribite en:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ar
>> Siempre leer, comprender y aplicar nuestra etiqueta:
>> https://wiki.ubuntu.com/ArgentinaTeam/EtiquetaML
>>
>>
More information about the Ubuntu-ar
mailing list