Al hacer un ‘apt update’ da el siguiente error:
Err:7 http://archive.ubuntu.com/ubuntu mantic-backports Release
404 Not Found [IP: 185.125.190.81 80]
Err:8 http://security.ubuntu.com/ubuntu mantic-security Release
404 Not Found [IP: 91.189.91.83 80]
Reading package lists... Done
E: The repository 'http://archive.ubuntu.com/ubuntu mantic Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
EL problema es que esta es una distribución no LTS y ha llegado al final de su ciclo de vida, hay que actualizar la direcciones dentro del archivo sources.list para poder seguir actualizando nuestro Ubuntu. Recomendado usar versiones LTS ya que reciben soporte durante más tiempo que las no LTS.
La solución es cambiar las entradas con archive.ubuntu.com y security.ubuntu.com con old-releases.ubuntu.com
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list




