"apt dist-upgrade" fail every times

Matéo-France

New Member
Aug 11, 2023
11
0
1
Hello,

I just updated my Proxmox to version 8 and I tried to run the command "apt dist-upgrade" and the shell tells me that

Code:
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
W: (pve-apt-hook)       touch '/please-remove-proxmox-ve'
W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
W: (pve-apt-hook) and repeat your apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
W: (pve-apt-hook)       - your APT repository settings
W: (pve-apt-hook)       - that you are using 'apt full-upgrade' to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook


thanks
 
Usually that means you got wrong repositories configured. Check your /etc/apt/sources.list as well as all files in the /etc/apt/sources.list.d/ folder. There shouldn't be any line containing "bullseye".
 
Update i juste made "touch '/please-remove-proxmox-ve'" step and i can't access anymore myip:8006
 
Last edited:
Update i juste made "touch '/please-remove-proxmox-ve'" step and i can't access anymore myip:8006
Yes, because now you uninstalled Proxmox VE. That was the step that should prevent you from accidentally uninstalling PVE. With your touch '/please-remove-proxmox-ve you confirmed you really want to break your PVE installation. Fix your repos and then try to install it again with apt update && apt install proxmox-ve
 
Last edited:
Yes, because now you uninstalled Proxmox VE. That was the step that should prevent you from accidentally uninstalling PVE. With your touch '/please-remove-proxmox-ve you confirmed you really want to break your PVE installation. Fix your repos and then try to install it again with apt update && apt install proxmox-ve

After fixing
Code:
/etc/apt/sources.list

i made the
Code:
apt update && apt install proxmox-ve

and gave me
Code:
root@pve:~# apt update && apt install proxmox-ve
Hit:1 http://ftp.debian.org/debian bookworm InRelease
Hit:2 http://ftp.debian.org/debian bookworm-updates InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:5 http://download.proxmox.com/debian/ceph-pacific bullseye InRelease
Get:6 http://download.proxmox.com/debian/corosync-3 stretch InRelease [1,977 B]
Err:6 http://download.proxmox.com/debian/corosync-3 stretch InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0D9A1950E2EF0603
Reading package lists... Done
W: GPG error: http://download.proxmox.com/debian/corosync-3 stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0D9A1950E2EF0603
E: The repository 'http://download.proxmox.com/debian/corosync-3 stretch InRelease' is not signed.
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.
 
You still got wrong repos:

Correct upgrade procedure would have been to upgrade your ceph first and only after that your upgrade from PVE 7 to 8 like its written in the upgrade documentation:
 
Last edited:
And you got an old ceph repo added, so maybe also ceph installed? In that case also: https://pve.proxmox.com/wiki/Ceph_Pacific_to_Quincy
After trying to update Ceph i made an apt update and get this ;
Code:
root@pve:~# apt update
Hit:1 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease
Get:2 http://download.proxmox.com/debian/ceph-quincy bullseye InRelease [2,655 B]
Get:3 http://download.proxmox.com/debian/corosync-3 stretch InRelease [1,977 B]
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease
Get:5 http://download.proxmox.com/debian/ceph-quincy bullseye/main amd64 Packages [50.4 kB]
Err:3 http://download.proxmox.com/debian/corosync-3 stretch InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0D9A1950E2EF0603
Reading package lists... Done
N: Ignoring file 'proxmox-release-bookworm.gpg' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: GPG error: http://download.proxmox.com/debian/corosync-3 stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0D9A1950E2EF0603
E: The repository 'http://download.proxmox.com/debian/corosync-3 stretch InRelease' is not signed.
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.

My
Code:
/etc/apt/sources.list
look like this now
Capture d’écran 2023-08-11 à 23.04.44.png
 
Last edited:
After trying to update Ceph i made an apt update and get this ;
Code:
root@pve:~# apt update
Hit:1 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease
Get:2 http://download.proxmox.com/debian/ceph-quincy bullseye InRelease [2,655 B]
Get:3 http://download.proxmox.com/debian/corosync-3 stretch InRelease [1,977 B]
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease
Get:5 http://download.proxmox.com/debian/ceph-quincy bullseye/main amd64 Packages [50.4 kB]
Err:3 http://download.proxmox.com/debian/corosync-3 stretch InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0D9A1950E2EF0603
Reading package lists... Done
N: Ignoring file 'proxmox-release-bookworm.gpg' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
W: GPG error: http://download.proxmox.com/debian/corosync-3 stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0D9A1950E2EF0603
E: The repository 'http://download.proxmox.com/debian/corosync-3 stretch InRelease' is not signed.
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.

My
Code:
/etc/apt/sources.list
look like this now
View attachment 54158
My bad i added a "." at the end, so fixed that and get a lot of error due to the [QUOTE] NO_PUBKEY 0D9A1950E2EF0603 [/QUOTE]

Code:
apt update && apt install proxmox-

Hit:1 http://security.debian.org/debian-security bookworm-security InRelease

Hit:2 http://deb.debian.org/debian bookworm InRelease     

Hit:3 http://deb.debian.org/debian bookworm-updates InRelease

Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease

Hit:5 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease

Hit:6 http://download.proxmox.com/debian/ceph-quincy bullseye InRelease

Get:7 http://download.proxmox.com/debian/corosync-3 stretch InRelease [1,977 B]

Err:7 http://download.proxmox.com/debian/corosync-3 stretch InRelease

  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0D9A1950E2EF0603

Reading package lists... Done

N: Ignoring file 'proxmox-release-bookworm.gpg' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/pve-install-repo.list:1

W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/pve-install-repo.list:1

W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/pve-install-repo.list:1

W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/pve-install-repo.list:1

W: GPG error: http://download.proxmox.com/debian/corosync-3 stretch InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 0D9A1950E2EF0603

E: The repository 'http://download.proxmox.com/debian/corosync-3 stretch InRelease' is not signed.

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.

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:9

W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/pve-install-repo.list:1

W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/pve-install-repo.list:1

W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/pve-install-repo.list:1

W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:6 and /etc/apt/sources.list.d/pve-install-repo.list:1
 
Last edited:
You are still completely ignoring the files in the folder "/etc/apt/sources.list.d/" ...
Your apt update shouldn't try to get anything containing "stretch" or "bullseye"...
 
Last edited:
You are still completely ignoring the files in the folder "/etc/apt/sources.list.d/" ...
Your apt update shouldn't try to get anything containing "stretch" or "bullseye"...
no i edit the Ceph file to update it and it just work now hum :eek:
 

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!