Cómo eliminar un kernel viejo de un SUSE Linux para liberar espacio.
Hoy he actualizado un SUSE Linux Enterprise Server y el sistema me ha devuelto un error indicando que faltaba espacio en disco para instalar un nuevo kernel:
...
(182/184) Installing: kernel-default-5.3.18-59.19.1.x86_64 ......................................................................[error]
Installation of kernel-default-5.3.18-59.19.1.x86_64 failed:
Error: Subprocess failed. Error: RPM failed: installing package kernel-default-5.3.18-59.19.1.x86_64 needs 76MB on the /boot filesystem
Para hacer espacio, tenía dos opciones:
- Borrar archivos no usados.
- Añadir espacio en disco a la máquina virtual.
He optado por la primera y he eliminado el kernel antiguo:
HOST # zypper purge-kernels
Reading installed packages...
Preparing to purge obsolete kernels...
Configuration: latest,latest-1,running
Running kernel release: 4.12.14-150.32-default
Running kernel arch: x86_64
Resolving package dependencies...
The following package is going to be REMOVED:
kernel-default-4.12.14-150.22.1
1 package to remove.
After the operation, 218.7 MiB will be freed.
Continue? [y/n/v/...? shows all options] (y):
Tras eliminar el kernel viejo, el nuevo kernel se ha instalado sin problemas:
HOST # zypper up
Refreshing service 'Basesystem_Module_x86_64'.
Refreshing service 'Containers_Module_x86_64'.
Refreshing service 'Desktop_Applications_Module_x86_64'.
Refreshing service 'Development_Tools_Module_x86_64'.
Refreshing service 'Legacy_Module_x86_64'.
Refreshing service 'Public_Cloud_Module_x86_64'.
Refreshing service 'Python_2_Module_x86_64'.
Refreshing service 'SUSE_Cloud_Application_Platform_Tools_Module_x86_64'.
Refreshing service 'SUSE_Linux_Enterprise_Server_x86_64'.
Refreshing service 'Server_Applications_Module_x86_64'.
Loading repository data...
Reading installed packages...
The following NEW package is going to be installed:
kernel-default-5.3.18-59.19.1
The following package requires a system reboot:
kernel-default-5.3.18-59.19.1
1 new package to install.
Overall download size: 64.2 MiB. Already cached: 0 B. After the operation, additional 148.4 MiB will be used.
Note: System reboot required.
Continue? [y/n/v/...? shows all options] (y): y
Retrieving package kernel-default-5.3.18-59.19.1.x86_64 (1/1), 64.2 MiB (148.4 MiB unpacked)
Retrieving: kernel-default-5.3.18-59.19.1.x86_64.rpm ......[done (11.7 MiB/s)]
Checking for file conflicts: ...........................................[done]
(1/1) Installing: kernel-default-5.3.18-59.19.1.x86_64 .................[done]
Tras esto, el nuevo kernel ha quedado instalado.
0 comentarios:
Publicar un comentario