[SOLVED] PVE upgrade from 5 to 6

Anddevvsss

New Member
Aug 7, 2024
3
0
1
Hello!

I have legacy Debian 9 with Proxmox5 and I'm trying to upgrade it to Buster and Proxmox6. I'm following this document https://pve.proxmox.com/wiki/Upgrade_from_5.x_to_6.0 but every time I got:

Code:
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://download.proxmox.com/debian/pve buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7BF2812E8A6E88E0
W: Failed to fetch http://download.proxmox.com/debian/pve/dists/buster/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 7BF2812E8A6E88E0
W: Some index files failed to download. They have been ignored, or old ones used instead.

when apt update executed.

I have downloaded proxmox-ve-release-6.x.gpg key to /etc/apt/trusted.gpg.d/ but it didn't help. There is the result of sha256sum on this file:

Code:
2781fd6fdcc63a95576bdbf3b95bbf21fac3ea330ad6a4311d4dfec4016ac02e  proxmox-ve-release-6.x.gpg

I'm using no-subscription apt repository. This is the content of the file /etc/apt/sources.list.d/pve-no-subscription.list :

Code:
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

Snippet of apt-key list:

Code:
/etc/apt/trusted.gpg.d/proxmox-ve-release-5.x.gpg
-------------------------------------------------
pub   rsa4096 2016-08-29 [SC] [expires: 2026-08-27]
      359E 9596 5E2C 3D64 3159  CD30 0D9A 1950 E2EF 0603
uid           [ unknown] Proxmox Virtual Environment 5.x Release Key <proxmox-release@proxmox.com>

/etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
-------------------------------------------------
pub   rsa4096 2018-11-19 [SC] [expires: 2028-11-16]
      3534 79F8 3781 D7F8 ED5F  5AC5 7BF2 812E 8A6E 88E0
uid           [ unknown] Proxmox Virtual Environment 6.x Release Key <proxmox-release@proxmox.com>



Did I miss something? Could you please help me to solve this issue?
 
Last edited:
Normaly an

Code:
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7BF2812E8A6E88E0

should solve your problem. So after an "apt-get update" the error should be gone.

But really, with such an old version, a new installation with Proxmox 8 and restoring backups would be the faster and cleaner way.
 
Normaly an

Code:
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7BF2812E8A6E88E0

should solve your problem. So after an "apt-get update" the error should be gone.

But really, with such an old version, a new installation with Proxmox 8 and restoring backups would be the faster and cleaner way.
Hi,

thanks for the suggestion! Unfortunately it is not possible to use a fresh Proxmox 8 installation. I have a multiple legacy nodes and I need to update them one by one.

I have executed
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7BF2812E8A6E88E0

but I got:

Code:
Executing: /tmp/apt-key-gpghome.rl1FNxoAHM/gpg.1.sh --recv-keys --keyserver keyserver.ubuntu.com 7BF2812E8A6E88E0
gpg: [don't know]: invalid packet (ctb=02)
gpg: keydb_get_keyblock failed: Value not found
gpg: [don't know]: invalid packet (ctb=02)
gpg: /tmp/apt-key-gpghome.rl1FNxoAHM/pubring.gpg: copy to '/tmp/apt-key-gpghome.rl1FNxoAHM/pubring.gpg.tmp' failed: Invalid packet
gpg: error writing keyring '/tmp/apt-key-gpghome.rl1FNxoAHM/pubring.gpg': Invalid packet
gpg: error reading '[stream]': Invalid packet
 
I tested this here with an Proxmox VE 5.x, the sources.list must be changed because Debian Stretch is archived.
https://www.debian.org/distrib/archive

Code:
deb http://archive.debian.org/debian stretch main contrib
deb http://archive.debian.org/debian stretch-proposed-updates main contrib
deb http://archive.debian.org/debian-security stretch/updates main
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

Code:
apt update

If you get an apt key error, you must install dirmngr first:
Code:
apt install dirmngr -y
After you can add the apt key:
Code:
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0E98404D386FA1D9

After upgrade your current 5.x PVE, and everything works fine you can beginn to Upgrade to PVE 6.x with this sources.list:

Code:
deb http://archive.debian.org/debian buster main contrib
deb http://archive.debian.org/debian buster-updates main contrib
deb http://security.debian.org/debian-security buster/updates main contrib
deb http://download.proxmox.com/debian/pve buster pve-no-subscription
 
Last edited:
I tested this here with an Proxmox VE 5.x, the sources.list must be changed because Debian Stretch is archived.
https://www.debian.org/distrib/archive

Code:
deb http://archive.debian.org/debian stretch main contrib
deb http://archive.debian.org/debian stretch-proposed-updates main contrib
deb http://archive.debian.org/debian-security stretch/updates main
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

Code:
apt update

If you get an apt key error, you must install dirmngr first:
Code:
apt install dirmngr -y
After you can add the apt key:
Code:
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0E98404D386FA1D9

After upgrade your current 5.x PVE, and everything works fine you can beginn to Upgrade to PVE 6.x with this sources.list:

Code:
deb http://archive.debian.org/debian buster main contrib
deb http://archive.debian.org/debian buster-updates main contrib
deb http://security.debian.org/debian-security buster/updates main contrib
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

thanks Fireon! Solved, apt update works and I'm able to perform apt dist-upgrade now :)
 
Perfect :cool: . If your issue is resolved, please mark your thread as resolved. You can do this by editing your first post and setting the flag.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!