Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



Proxmox - Update ap...
 
Share:
Notifications
Clear all

[Solved] Proxmox - Update apt-get lists for non-subscribers

1 Posts
1 Users
0 Reactions
520 Views
 Hans
(@hans)
Famed Member Admin
Joined: 11 years ago
Posts: 2728
Topic starter  

I'm using Proxmox, without the subscription, for my private little experiments.
With that I noticed an update warning "TASK ERROR: command 'apt-get update' failed: exit code 100".
Looking at it in a shell, running apt-get update, I noticed errors with the source of the updates, to find out that as a non-paying users, I cannot use the enterprise grade update sources. So that sucks ... but there is a fix for it.

Open a shell, and got to the directory where the update source files are:

cd /etc 
cd apt/sources.list.d/

(Note: modsecurity, the rules that protect this website, didn't like it when I typed this in one sentence - any experts out there that can help, it's rule 950018)

Here we will create two files. 

Tip: I like using "nano" as a text editor, which you close with CTRL+X.

nano pve-no-subscription.list

and paste this content in this first file;

# For non-paying users:
# NOT recommended for production use

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

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

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

Now create the next file:

nano ceph-no-subscription.list

And paste this in that file:

deb  http://download.proxmox.com/debian/ceph-reef  bookworm no-subscription

 

Now that we updated these sources, we will need to do a few updates:

apt-get update
apt-get dist-upgrade

Seems recommended, I'm not an expert, to always run "apt-get dist-upgrade", and not just "apt-get upgrade".
I read somewhere that dist-upgrade ensures that all packages and their dependencies are updated.

Also not that the no-subscription repositories may not be guaranteed to be stable and more likely to be cutting edge. So Promox does not recommended this for enterprise/production environments.

This topic was modified 3 months ago by Hans

   
ReplyQuote
Share: