Diferencia entre revisiones de «Ubuntu»

De TechShareRoom wiki
Ir a la navegación Ir a la búsqueda
Sin resumen de edición
Sin resumen de edición
 
(No se muestran 8 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
== Comandos ==
*Actualizar a versión superior del sistema
<syntaxhighlight lang="bash ">
do-release-upgrade
</syntaxhighlight>
Tras realizar la actualización y reiniciar, posiblemente pierdas acceso desde fuera a determinados servicios que tengas relacionados con algunos puertos, por lo que si usabas ufw, debes reinstalarlo (la actualización lo puede borrar) y reinciar los servicios o el sistema y todo debería funcionar como siempre.
<syntaxhighlight lang="bash ">
apt install ufw
ufw enable
</syntaxhighlight>
También te tocará volver a habilitar los repositorios de terceros que se deshabilitaron por la actualización.
== Recursos ==
*[https://en.wikipedia.org/wiki/Ubuntu_version_history#Table_of_versions Tabla de versiones]
== Mantenimiento ==
== Mantenimiento ==
*[[Mantenimiento Ubuntu básico]]
*[[Mantenimiento Ubuntu básico]]
Línea 4: Línea 22:


== Solución a problemas ==
== Solución a problemas ==
 
*[https://askubuntu.com/questions/171209/my-boot-partition-hit-100-and-now-i-cant-upgrade-cant-remove-old-kernels-to/1165681#1165681 '''My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room''']
*[https://askubuntu.com/questions/171209/my-boot-partition-hit-100-and-now-i-cant-upgrade-cant-remove-old-kernels-to/1165681#1165681 My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room]
**[https://launchpad.net/linux-purge/+announcement/15313 linux-purge]
**[https://launchpad.net/linux-purge/+announcement/15313 linux-purge]
**Instalar con:
**Instalar con:


<nowiki>
<syntaxhighlight lang="bash ">
sh -c 'cd /tmp && wget -N https://git.launchpad.net/linux-purge/plain/install-linux-purge.sh && chmod +x ./install-linux-purge.sh && sudo ./install-linux-purge.sh && rm ./install-linux-purge.sh' && [ "$BASH" ] && echo Replaced current shell in order to make the Bash completion work && exec bash
sh -c 'cd /tmp && wget -N https://git.launchpad.net/linux-purge/plain/install-linux-purge.sh && chmod +x ./install-linux-purge.sh && sudo ./install-linux-purge.sh && rm ./install-linux-purge.sh' && [ "$BASH" ] && echo Replaced current shell in order to make the Bash completion work && exec bash


apt install dialog
apt install dialog
</nowiki>
</syntaxhighlight>


Para saber los kernel que hay instalados:
Para saber los kernel que hay instalados:


<nowiki>
<syntaxhighlight lang="bash ">
dpkg --list | grep linux-image
dpkg --list | grep linux-image
</nowiki>
</syntaxhighlight>


Then run this in terminal, use "sudo" if proceed in your case:
Then run this in terminal, use "sudo" if proceed in your case:


<nowiki>
<syntaxhighlight lang="bash ">
linux-purge --clear-boot
linux-purge --clear-boot
</nowiki>
</syntaxhighlight>


Then go on removing kernels by e.g.
Then go on removing kernels by e.g.


<nowiki>
<syntaxhighlight lang="bash ">
linux-purge --keep 1 --choose
linux-purge --keep 1 --choose
</nowiki>
</syntaxhighlight>
 
*[https://www.techrepublic.com/article/how-to-fix-apts-the-following-packages-have-been-kept-back-issue/ The following packages have been kept back]
 
*'''Cannot load /usr/lib/apache2/modules/libphp8.1.so into server, cannot open shared object file: no such file or directoy'''
 
Si has actualizado Ubuntu, en este caso de la versión 22.04 a la versión 24.04 y utilizas php, te habrás encontrado con que te ha dejado de funcionar. Esto es debido a que en esta nueva versión se utiliza la versión 8.3. Por lo que habrá que deshabilitar el módulo de la 8.1 y habilitar el de la 8.3.
 
<syntaxhighlight lang="bash ">
a2dismod php8.1
a2enmod php8.3
systemctl restart apache2
</syntaxhighlight>
 
*[https://askubuntu.com/questions/1515321/apache2-on-24-04-wont-start-when-php-is-installed Fuente]

Revisión actual - 01:08 9 oct 2024

Comandos

  • Actualizar a versión superior del sistema
do-release-upgrade

Tras realizar la actualización y reiniciar, posiblemente pierdas acceso desde fuera a determinados servicios que tengas relacionados con algunos puertos, por lo que si usabas ufw, debes reinstalarlo (la actualización lo puede borrar) y reinciar los servicios o el sistema y todo debería funcionar como siempre.

apt install ufw
ufw enable

También te tocará volver a habilitar los repositorios de terceros que se deshabilitaron por la actualización.

Recursos

Mantenimiento

Solución a problemas

sh -c 'cd /tmp && wget -N https://git.launchpad.net/linux-purge/plain/install-linux-purge.sh && chmod +x ./install-linux-purge.sh && sudo ./install-linux-purge.sh && rm ./install-linux-purge.sh' && [ "$BASH" ] && echo Replaced current shell in order to make the Bash completion work && exec bash

apt install dialog

Para saber los kernel que hay instalados:

dpkg --list | grep linux-image

Then run this in terminal, use "sudo" if proceed in your case:

linux-purge --clear-boot

Then go on removing kernels by e.g.

linux-purge --keep 1 --choose
  • Cannot load /usr/lib/apache2/modules/libphp8.1.so into server, cannot open shared object file: no such file or directoy

Si has actualizado Ubuntu, en este caso de la versión 22.04 a la versión 24.04 y utilizas php, te habrás encontrado con que te ha dejado de funcionar. Esto es debido a que en esta nueva versión se utiliza la versión 8.3. Por lo que habrá que deshabilitar el módulo de la 8.1 y habilitar el de la 8.3.

a2dismod php8.1
a2enmod php8.3
systemctl restart apache2