LXC container - Problème update Ubuntu 21.04 to 22.04

Hello !

Alors voilà je cherche simplement à mettre à jour mon container LXC sous Proxmox v7.4.3 qui se trouve actuellement sous Ubuntu 21.04 vers 22.04
Si quelqu’un a une idée, je suis preneur car je tourne en rond et je ne comprend pas où se trouve le problème.

Voilà ma version ainsi que la mise à jour dispo :

Welcome to Ubuntu 21.04 (GNU/Linux 5.15.104-1-pve x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife

New release '22.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Mon May 15 22:22:45 UTC 2023 on tty1

Voici lors de la mise à jour :

root@InfluxDB:~# apt-get update
Hit:1 https://repos.influxdata.com/debian stable InRelease
Get:2 https://repos.influxdata.com/ubuntu hirsute InRelease [7030 B]
Hit:3 http://old-releases.ubuntu.com/ubuntu hirsute InRelease
Hit:4 http://old-releases.ubuntu.com/ubuntu hirsute-updates InRelease
Err:1 https://repos.influxdata.com/debian stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
Hit:5 http://old-releases.ubuntu.com/ubuntu hirsute-security InRelease
Err:2 https://repos.influxdata.com/ubuntu hirsute InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
Fetched 7030 B in 1s (8481 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repos.influxdata.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repos.influxdata.com/ubuntu hirsute InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
W: Failed to fetch https://repos.influxdata.com/debian/dists/stable/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
W: Failed to fetch https://repos.influxdata.com/ubuntu/dists/hirsute/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@InfluxDB:~# 
root@InfluxDB:~# 
root@InfluxDB:~# 
root@InfluxDB:~# 
root@InfluxDB:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@InfluxDB:~# 
root@InfluxDB:~# 
root@InfluxDB:~# 
root@InfluxDB:~# 
root@InfluxDB:~# do-release-upgrade
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife


= Welcome to Ubuntu 22.04 'Jammy Jellyfish' =

The Ubuntu team is proud to announce Ubuntu 22.04 'Jammy Jellyfish'.

To see what's new in this release, visit:
  https://wiki.ubuntu.com/JammyJellyfish/ReleaseNotes

Ubuntu is a Linux distribution for your desktop or server, with a fast
and easy install, regular releases, a tight selection of excellent
applications installed by default, and almost any other software you
can imagine available through the network.

We hope you enjoy Ubuntu.

== Feedback and Helping ==

If you would like to help shape Ubuntu, take a look at the list of
ways you can participate at

  http://www.ubuntu.com/community/participate/

Your comments, bug reports, patches and suggestions will help ensure
that our next release is the best release of Ubuntu ever.  If you feel
that you have found a bug please read:

  http://help.ubuntu.com/community/ReportingBugs

Then report bugs using apport in Ubuntu.  For example:

  ubuntu-bug linux

will open a bug report in Launchpad regarding the linux package.

If you have a question, or if you think you may have found a bug but
aren't sure, first try asking on the #ubuntu or #ubuntu-bugs IRC
channels on Libera.Chat, on the Ubuntu Users mailing list, or on the
Ubuntu forums:

  http://help.ubuntu.com/community/InternetRelayChat
  http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
  http://www.ubuntuforums.org/


== More Information ==

You can find out more about Ubuntu on our website, IRC channel and wiki.
If you're new to Ubuntu, please visit:

  http://www.ubuntu.com/


To sign up for future Ubuntu announcements, please subscribe to Ubuntu's
very low volume announcement list at:

  http://lists.ubuntu.com/mailman/listinfo/ubuntu-announce


Continue [yN] y
Get:1 Upgrade tool signature [819 B]                                                                                                                                          
Get:2 Upgrade tool [1266 kB]                                                                                                                                                  
Fetched 1267 kB in 0s (0 B/s)                                                                                                                                                 
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg' 
extracting 'jammy.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Hit https://repos.influxdata.com/debian stable InRelease                                                                                                                      
Hit http://old-releases.ubuntu.com/ubuntu hirsute InRelease                                                                                                                   
Get:1 https://repos.influxdata.com/ubuntu hirsute InRelease [7030 B]                                                                                                          
Err https://repos.influxdata.com/debian stable InRelease                                                                                                                      
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E                                                           
Hit http://old-releases.ubuntu.com/ubuntu hirsute-updates InRelease                                                                                                           
Err https://repos.influxdata.com/ubuntu hirsute InRelease                                                                                                                     
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E                                                           
Hit http://old-releases.ubuntu.com/ubuntu hirsute-security InRelease                                                                                                          
Fetched 7030 B in 0s (0 B/s)                                                                                                                                                  
Reading package lists... Done    
Building dependency tree... Done 
Reading state information... Done

Updating repository information
Hit https://repos.influxdata.com/debian stable InRelease                                                                                                                      
Get:1 https://repos.influxdata.com/ubuntu hirsute InRelease [7030 B]                                                                                                          
Hit http://archive.ubuntu.com/ubuntu jammy InRelease                                                                                                                          
Err https://repos.influxdata.com/debian stable InRelease                                                                                                                      
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E                                                           
Err https://repos.influxdata.com/ubuntu hirsute InRelease                                                                                                                     
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E                                                           
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]                                                                                                       
Get:3 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                                                                                      
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [14.4 kB]                                                                                      
Fetched 251 kB in 0s (0 B/s)                                                                                                                                                  
Hit https://repos.influxdata.com/debian stable InRelease                                                                                                                      
Get:1 https://repos.influxdata.com/ubuntu hirsute InRelease [7030 B]                                                                                                          
Err https://repos.influxdata.com/debian stable InRelease                                                                                                                      
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E                                                           
Hit http://archive.ubuntu.com/ubuntu jammy InRelease                                                                                                                          
Err https://repos.influxdata.com/ubuntu hirsute InRelease                                                                                                                     
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E                                                           
Hit http://archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                                                                  
Hit http://archive.ubuntu.com/ubuntu jammy-security InRelease                                                                                                                 
Fetched 7030 B in 0s (0 B/s)                                                                                                                                                  
Hit https://repos.influxdata.com/debian stable InRelease                                                                                                                      
Get:1 https://repos.influxdata.com/ubuntu hirsute InRelease [7030 B]                                                                                                          
Hit http://archive.ubuntu.com/ubuntu jammy InRelease                                                                                                                          
Err https://repos.influxdata.com/debian stable InRelease                                                                                                                      
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E                                                           
Err https://repos.influxdata.com/ubuntu hirsute InRelease                                                                                                                     
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D8FF8E1F7DF8B07E                                                           
Hit http://archive.ubuntu.com/ubuntu jammy-updates InRelease                                                                                                                  
Hit http://archive.ubuntu.com/ubuntu jammy-security InRelease                                                                                                                 
Fetched 7030 B in 0s (0 B/s)                                                                                                                                                  

Error during update 

A problem occurred during the update. This is usually some sort of 
network problem, please check your network connection and retry. 


Restoring original system state

Aborting
Reading package lists... Done    
Building dependency tree... Done 
Reading state information... Done
root@InfluxDB:~# 

Les clés :

root@InfluxDB:~# apt-key list
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
/etc/apt/trusted.gpg
--------------------
pub   rsa4096 2023-01-18 [SC] [expires: 2026-01-17]
      9D53 9D90 D332 8DC7 D6C8  D3B9 D8FF 8E1F 7DF8 B07E
uid           [ unknown] InfluxData Package Signing Key <support@influxdata.com>

/etc/apt/trusted.gpg.d/ubuntu-keyring-2012-cdimage.gpg
------------------------------------------------------
pub   rsa4096 2012-05-11 [SC]
      8439 38DF 228D 22F7 B374  2BC0 D94A A3F0 EFE2 1092
uid           [ unknown] Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>

/etc/apt/trusted.gpg.d/ubuntu-keyring-2018-archive.gpg
------------------------------------------------------
pub   rsa4096 2018-09-17 [SC]
      F6EC B376 2474 EDA9 D21B  7022 8719 20D1 991B C93C
uid           [ unknown] Ubuntu Archive Automatic Signing Key (2018) <ftpmaster@ubuntu.com>

root@InfluxDB:~# 

Les sources :

## EOL upgrade sources.list
# Required
deb http://old-releases.ubuntu.com/ubuntu/ hirsutemain restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hirsute-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ hirsute-security main restricted universe multiverse

# Optional
#deb http://old-releases.ubuntu.com/ubuntu/ hirsute-backports main restricted universe multiverse

C’est pas ça le souci ?

Dans /etc/apt il y a le fichier source-list que tu montres, mais il y a aussi un répertoire source-list.d qui contient (je pense) des dépôts additionnels dont celui qui coince.
Il faut soit le virer le temps de l’upgrade système, soit comprendre pourquoi la clé n’est plus là/pas bonne.

En allant sur InfluxData - Package Repository ça donne la procédure à suivre pour mettre la clé qui va bien.

1 « J'aime »

Je pense aussi

C’est justement comme ça que j’ ai ajouté la clé du coup je comprend pas pourquoi ça coince.

Merci pour le second fichier, j’avoue que je ne suis pas expert dans les upgrades de distribution, j’ai juste essayé de suivre ce qu’il y a sur le site d’Ubuntu.

https://help.ubuntu.com/community/EOLUpgrades

@golfvert , effectivement tu as raison c’est bien le dépôt qui se trouve dans /etc/apt/sources.list.d/influxdb.list qui pose problème car si je le retire je n’ai plus de message d’erreur lors d’un « apt-get update »

=> Du coup je vais plutôt essayer de corriger le problème de clé, va falloir que je cherche un peu :slight_smile:

Bon du coup c’est bon grâce à toi !

J’ai mis à jour le fichier en corrigeant le chemin du fichier de la clé publique en me basant sur le chemin correspondant donnée par le résultat de la commande « apt-key list ».

Du coup plus d’erreur lors d’un apt-get update et apt-get upgrade

détails
root@InfluxDB:/etc/apt/sources.list.d# 
root@InfluxDB:/etc/apt/sources.list.d# apt-get update
Hit:1 http://old-releases.ubuntu.com/ubuntu hirsute InRelease
Hit:2 http://old-releases.ubuntu.com/ubuntu hirsute-updates InRelease
Hit:3 http://old-releases.ubuntu.com/ubuntu hirsute-security InRelease
Get:4 https://repos.influxdata.com/ubuntu hirsute InRelease [7030 B]
Get:5 https://repos.influxdata.com/ubuntu hirsute/stable amd64 Packages [4747 B]
Fetched 11.8 kB in 1s (16.5 kB/s)   
Reading package lists... Done
root@InfluxDB:/etc/apt/sources.list.d# 
root@InfluxDB:/etc/apt/sources.list.d# 
root@InfluxDB:/etc/apt/sources.list.d# 
root@InfluxDB:/etc/apt/sources.list.d# 
root@InfluxDB:/etc/apt/sources.list.d#                   
root@InfluxDB:/etc/apt/sources.list.d# 
root@InfluxDB:/etc/apt/sources.list.d# 
root@InfluxDB:/etc/apt/sources.list.d# 
root@InfluxDB:/etc/apt/sources.list.d# 
root@InfluxDB:/etc/apt/sources.list.d# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@InfluxDB:/etc/apt/sources.list.d# 

J’ai donc pu lancer jusqu’au vout la commande « do-release-upgrade » sans accros !

  • image

Un grand merci @golfvert car même si ce n’était pas grand chose, j’y étais depuis hier soir…