How to update free version.

Baldi Francesco

New Member
Aug 2, 2019
7
0
1
49
Hello to everyone,
I am at my first experience with Proxmox and virtualization.
I would like to know if it's possible to update the free version to the last release without having a valid subscription
Thank you
 
Yes it is, but sadly it requires manual interaction.

You have to remove the enterprise respository.
Then you have to add the no-subscription respository.

Execute the following to upgrade your system:
rm /etc/apt/sources.list.d/pve-enterprise.list
echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
apt update
apt full-upgrade
 
  • Like
Reactions: kenchilada
I have following issues when replace source list.
root@pve1:~# rm /etc/apt/sources.list.d/pve-enterprise.list
root@pve1:~# ls /etc/apt/
apt.conf.d auth.conf.d keyrings listchanges.conf listchanges.conf.d preferences.d sources.list sources.list.d trusted.gpg.d
root@pve1:~# ls
root@pve1:~# ls
root@pve1:~# cd /etc/apt/sources.list.d/
root@pve1:/etc/apt/sources.list.d# ls
ceph.list
root@pve1:/etc/apt/sources.list.d# echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
root@pve1:/etc/apt/sources.list.d# apt update
Get:1 http://download.proxmox.com/debian/pve buster InRelease [2,659 B]
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://ftp.debian.org/debian bookworm InRelease
Hit:4 http://ftp.debian.org/debian bookworm-updates InRelease
Err:5 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease
401 Unauthorized [IP: 103.76.41.50 443]
Err:1 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
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease 401 Unauthorized [IP: 103.76.41.50 443]
E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm 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: 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
E: The repository 'http://download.proxmox.com/debian/pve buster 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.
 
I have following issues when replace source list.
root@pve1:~# rm /etc/apt/sources.list.d/pve-enterprise.list
root@pve1:~# ls /etc/apt/
apt.conf.d auth.conf.d keyrings listchanges.conf listchanges.conf.d preferences.d sources.list sources.list.d trusted.gpg.d
root@pve1:~# ls
root@pve1:~# ls
root@pve1:~# cd /etc/apt/sources.list.d/
root@pve1:/etc/apt/sources.list.d# ls
ceph.list
root@pve1:/etc/apt/sources.list.d# echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
root@pve1:/etc/apt/sources.list.d# apt update
Get:1 http://download.proxmox.com/debian/pve buster InRelease [2,659 B]
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://ftp.debian.org/debian bookworm InRelease
Hit:4 http://ftp.debian.org/debian bookworm-updates InRelease
Err:5 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease
401 Unauthorized [IP: 103.76.41.50 443]
Err:1 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
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease 401 Unauthorized [IP: 103.76.41.50 443]
E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm 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: 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
E: The repository 'http://download.proxmox.com/debian/pve buster 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.
Replace buster with bookworm in /etc/apt/sources.list.d/pve-no-subscription.list
 
Thanks LeCaNo. how about that ceph.list? can we upgrade that component?

root@pve1:/etc/apt/sources.list.d# cp /tmp/ceph.list .
root@pve1:/etc/apt/sources.list.d# ls
ceph.list pve-no-subscription.list
root@pve1:/etc/apt/sources.list.d# apt update
Hit:1 http://security.debian.org bookworm-security InRelease
Hit:2 http://ftp.debian.org/debian bookworm InRelease
Hit:3 http://ftp.debian.org/debian bookworm-updates InRelease
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease
Err:5 https://enterprise.proxmox.com/debian/ceph-quincy bookworm InRelease
401 Unauthorized [IP: 103.76.41.50 443]
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/ceph-quincy/dists/bookworm/InRelease 401 Unauthorized [IP: 103.76.41.50 443]
E: The repository 'https://enterprise.proxmox.com/debian/ceph-quincy bookworm 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.
 
Hi @yixuan178

If you don't use Ceph you can simply remove it.

Or:

Bash:
rm /etc/apt/sources.list.d/ceph.list
echo "deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list
apt update
apt full-upgrade
 
Have a look at the following Git repository which contains a bunch of useful helper scripts for Proxmox.

https://github.com/community-scripts/ProxmoxVE

This script will assist in managing your repositories.

Why? It's also possible in the GUI with less chances to break things. You can also update Proxm8x VE from the GUI, so there is need for a helper script if yoz don't want to do it manually on the command line. But if you want to use the command line doing it manually makes it less likely to break something due to unintended consequences of the helper script. We have several examples in this forum of such housemade problems.

It's also a bad idea to download and execute something from the Internet without understanding how it works since in case a bad actor took over the download source you could have uninvited visitors on your system

For these readons I consider helper scripts actually not very helpful for newbies at all : They abstract the complexity behind the setup away which means that the users assume that they can get away with not doing much system administration. But at some point (some sooner, some later) they run into problems and can't resolve them since they don't know where to start. If they would have done the setup manually or by understanding the how the script works and changing it to their wishes they at least would have an idea where to start.

At least if the goal is to get some services running. For learning shell programming and system administration they are a great ressource: Read a script, try to understand how it works. Tweak it, look whether your changes work like you expected. Rince, repeat. But this doesn't seem what most people use them for
 
Last edited:
It's also a bad idea to download and execute something from the Internet without understanding how it works since in case a bad actor took over the download source you could have uninvited visitors on xozr system
I take it that you appreciate the whole open source ecosystem is largely based on people downloading and executing something from the internet without understanding how it works and trusting that a bad actor hasn't taken it over. Proxmox relies on the Debian repository which includes a bunch of obscure packages that don't get much attention.

For these readons I consider helper scripts actually not very helpful for newbies at al
With no disrespect to the OP intended in the following, if someone hasn't RTFM or attempted to use a basic search to find the multitude of written and video tutorials on this subject then maybe their goal is to have something quick and easy that will do a lot of it for them. Ultimately that's for them to decide what is suitable and what the acceptable risk profile is, and having the information available for all options out there helps broaden that knowledge.

I've found the community scripts to be helpful in leaning about many potential use cases for Proxmox that I hadn't considered, and how a lot of it works under the hood.
 
Hi @kesawi

We also advise against the use of such scripts and I have to agree with @Johannes S on this point.

There have also been customers in the enterprise sector who have damaged their systems considerably with such scripts and we have had to repair them. The same applies to the hobby and consumer sector.

These scripts are of course intended for simplification, but for the user it is worth more to deal with the matter and this also includes such questions in a forum, which are of course justified.

From an enterprise point of view, such scripts should be avoided.

Regards,
S. Müller
 
I take it that you appreciate the whole open source ecosystem is largely based on people downloading and executing something from the internet without understanding how it works and trusting that a bad actor hasn't taken it over. Proxmox relies on the Debian repository which includes a bunch of obscure packages that don't get much attention.

I'm not a fan of "curl https://projekt.io/install.bash|sh -c" or "binary self-update"(1) either. With Debian or Proxmox repositories I can at least verify the packages (since they are signed with gpg) and I trust their track record that they mostly don't mess things up. Of course people shouldn't add add repositories without doing their due dilligence.

I've found the community scripts to be helpful in leaning about many potential use cases for Proxmox that I hadn't considered, and how a lot of it works under the hood.

What potential? That you can install nearly every (if not all) software also in a vm or lxc container? That's the whole goal of virtualization.

How is it helpful if people run them and end up with problems since they followed reddit-style advice to "just use this helper script" ending up in problems like this?
https://forum.proxmox.com/threads/vms-stopping-and-starting-for-no-apparent-reason.149489/


These scripts are great for learning things, but not for "run and forget". This is especially true for the OPs question "how to update the free version" since this is possible just with the web interface which is propably the most easiest option for novices.

(1) This mis-feature seems to be particularly popular in projects based on rust or go, which strongly negates the security benefits of these languages design: These projects train their users to potentially dangerous behaviors.
 
Last edited:
  • Like
Reactions: smueller@TK