[SOLVED] Error during a 8.4.9 no-subscription version upgrade

Philby2530

Member
Oct 18, 2021
5
1
8
67
My current version:

pve-manager/8.4.12/c2ea8261d32a5020 (running kernel: 6.8.12-14-pve)

During a standard upgrade, I am getting an error stating that I am trying to permanentely remove "Proxmox-ve" from my system (see below)

--------------------------------------
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
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

--------------------------------------

Any idea how I should fix this error?
Many thanks for any help you can provide.
Philippe
 
Do you still have the Debian kernel installed? What is the output of apt update (in CODE-tags please)?

PS: You can probably fix the locale warning by running dpkg-reconfigure locales and selecting your locale as well as en_US.UTF-8.
 
Thanks a lot for your reply.
Here what I got from the APT update.

Code:
Hit:1 http://security.debian.org/debian-security trixie-security InRelease
Hit:2 http://ftp.debian.org/debian trixie InRelease
Hit:3 http://download.proxmox.com/debian/ceph-reef bookworm InRelease
Hit:4 http://ftp.debian.org/debian trixie-updates InRelease
Hit:5 http://download.proxmox.com/debian/pve bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
181 packages can be upgraded. Run 'apt list --upgradable' to see them.
 
You are mixing Trixie (PVE 9) with Bookworm (PVE 8). I don't think your "standard upgrade" went well. Maybe check https://pve.proxmox.com/wiki/Upgrade_from_8_to_9 to see if you missed any steps. Or fix your repositories (including Ceph): https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_package_repositories .

EDIT: If you did not intend to update from PVE 8 to PVE 9 then you should not update the Debian repositories to Trixie and maybe try if going back to Bookworm fixes it. If that does not work then maybe move forward to PVE 9 following the upgrade guide?
 
Last edited:
Thanks. I was not rying to upgrade to PVE 9. I'll try to fix the repositories first. If this doesn't work, I'll try upgrade to 9. I don't have a clue of what has created this mess. I never tried "volontarily" to install Trixie.

I am just afraid to make things even worse.
 
Hi Leesten,
I went through all steps to upgarde from 8 to 9. (I had to remove systemd-boot as I was getting an error in pve8to9).
I rebooted my system and unfortunately I don't get acces to PVE web interface. I am still able to access through SSH though.
Running pveversion i am getting the same version as before:

Code:
pve-manager/8.4.12/c2ea8261d32a5020 (running kernel: 6.14.11-1-pve)

and when I run pve8to9, I am getting the following errors:

Code:
Attempt to reload PVE/HA/Config.pm aborted.
Compilation failed in require at /usr/share/perl5/PVE/HA/Env/PVE2.pm line 20.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/HA/Env/PVE2.pm line 20.
Compilation failed in require at /usr/share/perl5/PVE/API2/LXC/Status.pm line 24.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2/LXC/Status.pm line 29.
Compilation failed in require at /usr/share/perl5/PVE/API2/LXC.pm line 28.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/API2/LXC.pm line 28.
Compilation failed in require at /usr/share/perl5/PVE/CLI/pve8to9.pm line 10.
BEGIN failed--compilation aborted at /usr/share/perl5/PVE/CLI/pve8to9.pm line 10.
Compilation failed in require at /usr/bin/pve8to9 line 6.
BEGIN failed--compilation aborted at /usr/bin/pve8to9 line 6.

I checked some network config according to :
Code:
https://forum.proxmox.com/threads/cant-access-web-gui-only-ssh.143258/

Code:
root@bourdais:/etc/apt/sources.list.d# cat /etc/network/interfaces
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.100.73/24
    gateway 192.168.100.1
    bridge-ports eno1
    bridge-stp off
    bridge-fd 0


source /etc/network/interfaces.d/*
root@bourdais:/etc/apt/sources.list.d# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel master vmbr0 state UP group default qlen 1000
    link/ether 10:e7:c6:02:e6:dc brd ff:ff:ff:ff:ff:ff
    altname enp0s31f6
3: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 10:e7:c6:02:e6:dc brd ff:ff:ff:ff:ff:ff
    inet 192.168.100.73/24 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::12e7:c6ff:fe02:e6dc/64 scope link
       valid_lft forever preferred_lft forever
4: tailscale0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none
    inet 100.88.243.113/32 scope global tailscale0
       valid_lft forever preferred_lft forever
    inet6 fd7a:115c:a1e0::b401:f371/128 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::f134:604e:717b:90f1/64 scope link stable-privacy
       valid_lft forever preferred_lft forever
root@bourdais:/etc/apt/sources.list.d# ip r
default via 192.168.100.1 dev vmbr0 proto kernel onlink
192.168.100.0/24 dev vmbr0 proto kernel scope link src 192.168.100.73
root@bourdais:/etc/apt/sources.list.d# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.100.73 bourdais.net bourdais

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
root@bourdais:/etc/apt/sources.list.d# cat /etc/hostname
bourdais

What can I check and or Fix from there?
Thanks for your support.
 
Last edited:
You must have gotten some errors somewhere when upgrading to PVE 9 if pveversion still shows PVE 8. I don't really know how to fix this or what information to ask, sorry.
If this upgrade from PVE 8 to 9 went so badly that you still have a mix of different versions that don't work together then it might be easier to install PVE 9 fresh and restore your VM/CTs from backups.
 
Dear Leesteken,

After many attemps and read-through, I cleaned the sources.list and created the necessary .sources files.
I managed to finalize the upgrade to version 9 and my web UI is back online.
Thanks a lot for your support.
 
  • Like
Reactions: leesteken