Menú alternativo
Toggle preferences menu
Menú alternativo personal
No has accedido
Tu dirección IP será visible si haces alguna edición

Diferencia entre revisiones de «Ubuntu»

De TechShareRoom wiki
Sin resumen de edición
 
(No se muestran 11 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 algunas cosas dejene de funcionar.
Un ejemplo de ellos es si usabas ufw o similares, debes reinstalarlo (la actualización lo puede borrar) y reiniciar 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]]
*[[Mantenimiento Ubuntu avanzado]]
*[[Mantenimiento Ubuntu avanzado]]
== Reparación ==


== 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:


<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


Install linux-purge tool like this.
apt install dialog
</syntaxhighlight>
 
Para saber los kernel que hay instalados:
 
<syntaxhighlight lang="bash ">
dpkg --list | grep linux-image
</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:


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


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


'''linux-purge --keep 1 --choose'''
<syntaxhighlight lang="bash ">
linux-purge --keep 1 --choose
</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 - 11:54 21 abr 2025

Comandos

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

Tras realizar la actualización y reiniciar, posiblemente algunas cosas dejene de funcionar.

Un ejemplo de ellos es si usabas ufw o similares, debes reinstalarlo (la actualización lo puede borrar) y reiniciar 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