Update 6.4 (for a dummy)

Themk2.

New Member
Nov 6, 2021
13
1
3
35
Hi there,

I run Proxmox 6.4.15 on an intel NUC.
Within it I have a VM for HomeAssistant, Container for Unifi Controller, and I want to add a Container for PiHole.

I got as far as I've got by watching Youtube walkthroughs. I'm absolutely clueless with linux so please bear with me.


I've tried to follow a YT walkthrough today to create a CT running PiHole. It needs me to be running Ubuntu 22.04, which I'm not. I don't have a CT template for 22.04 and can only find a '.tar.zst' file, which my "upload" option won't recognise.

I therefore installed with 18.04.1-1 and then tried to upgrade - unfortunately it broke the CT and gave me a "1006" error.

I'm now getting lost down a rabbithole and I could really do with some help if possible?

I also think I best do a backup of my HA and Unifi but how on earth do I do it? and where to?

Please go easy on me - I'm useless with Linux/Proxmox and probably shouldn't have gotten into it - but Home Assistant was just too tempting over other 'off the shelf' alternatives.

Thanks in advance
 
Hello,

what is the error message when uploading the container image?

if you want to make a backup of a CT use the backup function and select a storage for storing the backups.

It would be better if you update your pve install since 6.x is not supported anymore.
If you do that you can also download a newer Ubuntu image with pveam (https://pve.proxmox.com/wiki/Linux_Container)

I would advice you to upgrade from 6 to 7 and than upgrade from 7 to 8, since 8 is the latest version. (support for 7 ends in 2024)

https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0
https://pve.proxmox.com/wiki/Upgrade_from_7_to_8
 
Hello,

what is the error message when uploading the container image?

if you want to make a backup of a CT use the backup function and select a storage for storing the backups.

It would be better if you update your pve install since 6.x is not supported anymore.
If you do that you can also download a newer Ubuntu image with pveam (https://pve.proxmox.com/wiki/Linux_Container)

I would advice you to upgrade from 6 to 7 and than upgrade from 7 to 8, since 8 is the latest version. (support for 7 ends in 2024)

https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0
https://pve.proxmox.com/wiki/Upgrade_from_7_to_8


Good afternoon and thanks for your reply.

So I'm very stuck. It appears I do need to upgrade from 6.4 to 7, then 7 to 8, but I'm stuck at the first hurdle.

I've shut down my Home Assistant VM and my Unifi CT ready to upgrade.

My "updates" tab has 593 items there. if I click "Upgrade" I get the error below:

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


System not fully up to date (found 662 new packages)
Please remember this is alien to me and I'm just trying to follow YouTube and the links you've posted above, to update from 6.4 to 7.
If I type "pve6to7" I get a yellow warning with hundreds of available package updates.


TOTAL: 21
PASSED: 17
SKIPPED: 3
WARNINGS: 1
FAILURES: 0

*EDIT* If I do "apt full-upgrade" it fetches 609 packages from "bullseye/main" but then kicks up the same error in blue above.


Thanks a lot
 
Last edited:
On this link (https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0) it has this message at the bottom - but I've absolutely no idea how to do this?

"If you see the following message:

W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!

then one or more of the currently existing packages cannot be upgraded since the proper Bullseye repository is not configured.

Check which of the previously used repositories (i.e. for Buster) do not exist for Bullseye or have not been upgraded to Bullseye ones.

If a corresponding Bullseye repository exists, upgrade the configuration"
 
Could you provide your /etc/apt/sources.list and the important pve repository files inside /etc/apt/sources.list.d/ ?

Please remember this is alien to me and I'm just trying to follow YouTube and the links you've posted above, to update from 6.4 to 7.
If I type "pve6to7" I get a yellow warning with hundreds of available package updates.
Did you run apt update && apt dist-upgrade before you changed the repository?
 
Could you provide your /etc/apt/sources.list and the important pve repository files inside /etc/apt/sources.list.d/ ?


Did you run apt update && apt dist-upgrade before you changed the repository?

Of course - how do I provide these? i.e. What command/s do I need to enter to provide you with these?

I know my updates list was empty before changing the repository. I definitely ran those commands.

Thanks
 
Code:
cat /etc/apt/sources.list
grep -r '' /etc/apt/sources.list*
 
Last edited:
Code:
cat /etc/apt/sources.list
grep -r '' /etc/apt/sources.list*
root@pve:~# cat /etc/apt/sources.list
deb http://ftp.uk.debian.org/debian bullseye main contrib

deb http://ftp.uk.debian.org/debian bullseye-updates main contrib

# security updates
deb http://security.debian.org bullseye-security main contrib







grep -r '' /etc/apt/sources.list*
/etc/apt/sources.list:deb http://ftp.uk.debian.org/debian bullseye main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ftp.uk.debian.org/debian bullseye-updates main contrib
/etc/apt/sources.list:
/etc/apt/sources.list:# security updates
/etc/apt/sources.list:deb http://security.debian.org bullseye-security main contrib
/etc/apt/sources.list.d/pve-no-enterprise.list:deb http://download.proxmox.com/debian/pve buster pve-no-subscription
/etc/apt/sources.list.d/pve-enterprise.list:deb https://enterprise.proxmox.com/debian/pve bullseye pve-enterprise






Thanks a lot
 
/etc/apt/sources.list.d/pve-no-enterprise.list:deb http://download.proxmox.com/debian/pve buster pve-no-subscription
You still use a PVE6 (buster) repo and not a PVE7 (bullseye) repo in /etc/apt/sources.list.d/pve-no-enterprise.list. So edit that with the text editor of your choice (for example nano /etc/apt/sources.list.d/pve-no-enterprise.list) to "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" like described here: https://pve.proxmox.com/wiki/Package_Repositories#_proxmox_ve_7_x_repositories

Then try that apt update && apt dist-upgrade again and see if it isn't complaining anymore.
 
  • Like
Reactions: Themk2.
You still use a PVE6 (buster) repo and not a PVE7 (bullseye) repo in /etc/apt/sources.list.d/pve-no-enterprise.list. So edit that with the text editor of your choice (for example nano /etc/apt/sources.list.d/pve-no-enterprise.list) to "deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription" like described here: https://pve.proxmox.com/wiki/Package_Repositories#_proxmox_ve_7_x_repositories

Then try that apt update && apt dist-upgrade again and see if it isn't complaining anymore.


Thanks a lot - I managed that!

Now I'm getting the following...

root@pve:~# apt update && apt dist-upgrade
Hit:1 http://security.debian.org bullseye-security InRelease
Err:2 https://enterprise.proxmox.com/debian/pve bullseye InRelease
401 Unauthorized [IP: $$.$$.$$.$$ 443]
Hit:3 http://ftp.uk.debian.org/debian bullseye InRelease
Hit:4 http://ftp.uk.debian.org/debian bullseye-updates InRelease
Hit:5 http://download.proxmox.com/debian/pve bullseye InRelease
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease 401 Unauthorized [IP: $$.$$.$$.$$ 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bullseye 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.



Now I've "$$" out the IP address as I'm not sure if it's mine or where it's trying to connect to.

Any ideas?
**It looks like it's trying to look at the enterprise repository but I've checked and confirmed that the previous step you gave me, to change to the "pve-no-enterprise" was saved correctly.**

Thanks
 
Last edited:
Okay... I've been impatient.

If I go to the "updates" tab and press REFRESH I get that same IP unauthorized error.
If I press UPGRADE on the available 589 items in the list however, it lets me continue.

I've now upgraded successfully (I think) to 7.4-16 - however due to that IP error I now can't REFRESH and find any further updates.

If I run "pve7to8" I get one warning -
WARN: systemd-timesyncd is not the best choice for time-keeping on servers, due to only applying updates on boot.
While not necessary for the upgrade it's recommended to use one of:
* chrony (Default in new Proxmox VE installations)
* ntpsec

* openntpd


Thanks In Advance!
 
Last edited:
Delete that /etc/apt/sources.list.d/pve-enterprise.list or at least comment out all lines in it by placing a "#" in front.
Or even better buy a subscription ;)
 
  • Like
Reactions: Themk2.
Delete that /etc/apt/sources.list.d/pve-enterprise.list or at least comment out all lines in it by placing a "#" in front.
Or even better buy a subscription ;)
root@pve:~# /etc/apt/sources.list.d/pve-enterprise.list
-bash: /etc/apt/sources.list.d/pve-enterprise.list: Permission denied

Sorry - As above - I'm winging my way through this (with help).
What am I doing wrong?
 
You really should learn the linux basics when running a linux server.

Either edit it with nano /etc/apt/sources.list.d/pve-enterprise.list or delete it with rm /etc/apt/sources.list.d/pve-enterprise.list.
 
  • Like
Reactions: Themk2.
You really should learn the linux basics when running a linux server.

Either edit it with nano /etc/apt/sources.list.d/pve-enterprise.list or delete it with rm /etc/apt/sources.list.d/pve-enterprise.list.

I should and getting into it just for Home Assistant (also a steep and constant learning curve) mightn't have been the best move I've made!

Thanks for the above - it worked.

I've also now updated the repositories to Bookworm and tried "pve7to8 --full" again.

I still get the following error:
WARN: systemd-timesyncd is not the best choice for time-keeping on servers, due to only applying updates on boot.
While not necessary for the upgrade it's recommended to use one of:
* chrony (Default in new Proxmox VE installations)
* ntpsec
* openntpd


I understand the meaning of this (ish) and should probably install "chrony"? before I upgrade to 8?


I also get the following:

FAIL: Found mixed old and new package repository suites, fix before upgrading! Mismatches:
found suite bookworm at in /etc/apt/sources.list:1
found suite bullseye at in /etc/apt/sources.list.d/pve-no-enterprise.list:1
Configure the same base-suite for all Proxmox and Debian provided repos and ask original vendor for any third-party repos.

E.g., for the upgrade to Proxmox VE 8 use the 'bookworm' suite.

I have no idea how I've got both listed?


Thanks
 
Last edited:
Upgrade should still work without it, but yes. Installing and setting up chrony would be a good idea.
 
  • Like
Reactions: Themk2.
Upgrade should still work without it, but yes. Installing and setting up chrony would be a good idea.

Thanks!

I've installed chrony and managed to upgrade from 6 to 7 then 7 to 8.0.4.
There are no packages to update and it looks like my HA and Unifi tools are working fine.
:)
 
  • Like
Reactions: G-Max

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!