J'ai essayé avec be.archive.ubuntu.com
Merci N_Bah
J'ai édité /etc/apt/sources.list de mon VPS
pour y remplacer http://nova.clouds.archive.ubuntu.com
par http://be.archive.ubuntu.com comme chez moi
Mais il y a encore des erreurs
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
Last login: Thu Apr 20 14:47:16 2023 from 212.224.230.189
ubuntu@vps-********:~$ sudo su && sleep 2m && exit
root@vps-e5a04887:/home/ubuntu# apt-get update
Ign:1 http://security.ubuntu.com/ubuntu impish-security InRelease
Err:2 http://security.ubuntu.com/ubuntu impish-security Release
404 Not Found [IP: 2001:67c:1562::15 80]
Ign:3 http://be.archive.ubuntu.com/ubuntu impish InRelease
Ign:4 http://be.archive.ubuntu.com/ubuntu impish-updates InRelease
Ign:5 http://be.archive.ubuntu.com/ubuntu impish-backports InRelease
Err:6 http://be.archive.ubuntu.com/ubuntu impish Release
404 Not Found [IP: 2001:67c:1562::15 80]
Err:7 http://be.archive.ubuntu.com/ubuntu impish-updates Release
404 Not Found [IP: 2001:67c:1562::15 80]
Err:8 http://be.archive.ubuntu.com/ubuntu impish-backports Release
404 Not Found [IP: 2001:67c:1562::15 80]
Reading package lists... Done
E: The repository 'http://security.ubuntu.com/ubuntu impish-security 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.
E: The repository 'http://be.archive.ubuntu.com/ubuntu impish Release' does not have 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.
E: The repository 'http://be.archive.ubuntu.com/ubuntu impish-updates Release' does not have 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.
E: The repository 'http://be.archive.ubuntu.com/ubuntu impish-backports Release' does not have 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.
root@vps-********:/home/ubuntu# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
root@vps-********:/home/ubuntu# |
Pourtant, chez moi, dans mon /etc/apt/sources.list, il référence aussi be.archive.ubuntu.com,
et ça marche. L'upgrade se fait sans erreur.
Mon VPS est à Strasbourg, chez OVH
Est-ce dû au fait que je référence une source belge, depuis un serveur situé en France ?
Ca m'étonnerait.
Ca ne marche toujours pas
Merci Chrtophe, mais ça ne marche toujours pas.
J'ai pourtant créé le fichier que tu m'as indiqué
Code:
1 2
|
echo "Acquire::ForceIPv4 \"true\";" > /etc/apt/apt.conf.d/cmascart |
Ensuite, j'ai fait un cat, pour m'assurer du contenu: OK
Mon VPS est sous Impish
Code:
1 2 3 4 5 6 7 8
|
root@vps-e5a04887:/home/ubuntu# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
root@vps-e5a04887:/home/ubuntu# |
Apt-get ne répond plus
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
root@vps-e5a04887:/home/ubuntu# apt-get update
Ign:1 http://nova.clouds.archive.ubuntu.com/ubuntu impish InRelease
Ign:2 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates InRelease
Ign:3 http://nova.clouds.archive.ubuntu.com/ubuntu impish-backports InRelease
Err:4 http://nova.clouds.archive.ubuntu.com/ubuntu impish Release
404 Not Found [IP: 185.125.190.41 80]
Err:5 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates Release
404 Not Found [IP: 185.125.190.41 80]
Err:6 http://nova.clouds.archive.ubuntu.com/ubuntu impish-backports Release
404 Not Found [IP: 185.125.190.41 80]
Ign:7 http://security.ubuntu.com/ubuntu impish-security InRelease
Err:8 http://security.ubuntu.com/ubuntu impish-security Release
404 Not Found [IP: 91.189.91.39 80]
Reading package lists... Done
E: The repository 'http://nova.clouds.archive.ubuntu.com/ubuntu impish 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.
E: The repository 'http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates 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.
E: The repository 'http://nova.clouds.archive.ubuntu.com/ubuntu impish-backports 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.
E: The repository 'http://security.ubuntu.com/ubuntu impish-security 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.
root@vps-e5a04887:/home/ubuntu# |
Dans /etc/apt/sources.list
J'ai remplacé nova.clouds.ubuntu.com par be.ubuntu.com
Ainsi qu'essayé https au lieu de http, mais ça ne change rien.
Chez moi, c'est http://be.ubuntu.com et ça marche
Par contre, ça ne va pas sur mon VPS
Tu me proposes d'installer apt-transport-https
Mais je ne sais plus rien apt-get du tout.
Tant sur nova.clouds.ubuntu.com que sur be.ubuntu.com
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
root@vps-e5a04887:/home/ubuntu# apt-get -y install apt-transport-https
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 1514 B of archives.
After this operation, 167 kB of additional disk space will be used.
Err:1 http://nova.clouds.archive.ubuntu.com/ubuntu impish-updates/universe amd64 apt-transport-https all 2.3.9ubuntu0.1
404 Not Found [IP: 2001:67c:1562::29 80]
E: Failed to fetch http://nova.clouds.archive.ubuntu.com/ubuntu/pool/universe/a/apt/apt-transport-https_2.3.9ubuntu0.1_all.deb 404 Not Found [IP: 2001:67c:1562::29 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@vps-e5a04887:/home/ubuntu# |
A mon avis, il ne sait pas résoudre l'IP V6, vu la 404 Not Found
Même en forçant l'IP V4, ça ne change rien.
Upgrade Ubuntu 21 réussi !
Voilà, j'ai trouvé la solution sur
https://serverfault.com/questions/11...2-04-after-eol
Il faut éditer etc/apt/sources.list
Remplacez http://nova.clouds.archive.ubuntu.com/ubuntu.
Par http://old-releases.ubuntu.com/ubuntu/
en sudo, faites
apt-get update
apt-get dist-update
do-release-upgrade
et c'est parti !
Ensuite, dans ma session ssh
nohup sleep 2m && init 6 &
Le temps de déloguer, avant de rebooter
Puis problème avec Apache2, qui ne sait pas redémarrer: Error 503, service unavailable.
Mon VPS ne répond plus aux requêtes http.
systemctl status apache2.service
Il ne trouve plus le fichier php8.0
Normal, en tapant php -version, je suis passé sous php 8.1
nano /etc/apache2/mods-enabled/php8.0.load
Modifier la ligne LoadModule php_module /usr/lib/apache2/modules/libphp8.0.so
Par LoadModule php_module /usr/lib/apache2/modules/libphp8.1.so
Il suffit de remplacer libphp8.0 par libphp8.1
Ensuite, service apache2 restart
Et le VPS répond aux requêtes https, mon site web fonctionne à nouveau
Tout est en ordre.
Merci pour votre aide.
Je déplore, toutefois, qu'une version soit si vite obsolète, et non supportée.
Mon Ubuntu 21 n'avait que deux ans, et est déjà abandonné.
Bien à vous,
Christian.