Error updating 7.14 to 8.

dvdwsn

Member
Jul 29, 2022
20
1
8
I'm at the step sed -i -e 's/bullseye/bookworm/g' /etc/apt/sources.list.d/pve-install-repo.list
I get the error sed: can't read /etc/apt/sources.list.d/pve-install-repo.list: No such file or directory
I found this thread but it's for buster. https://forum.proxmox.com/threads/error-updating-to-6-from-5-4.56421/

Should I use the same command with buster swapped for bookworm? echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve.list

Also should the command be pve-install-repo.list instead of pve.list?
 
Do it old school rather than following cryptic commands.

To upgrade Debian (Ubuntu, Proxmox and more) Linux from one version to the next, you generally change a few files under /etc/apt/ and then do an update/upgrade and pick up the pieces afterwards.

What you need to change are the software sources and these live in a file called /etc/apt/sources.list and files in a directory called /etc/apt/sources.list.d/ The top level sources.list "belongs" to the OS and should not be touched (but you can do what you like if you know what you are doing). The ones under sources.list.d are for addons and such.

However, we are talking Proxmox here and it has a GUI and requires things to be in the right place. I have a PVE 8.2 machine or two lying around. Edit your top level sources files to match this and you should be good to upgrade:

Code:
# /etc/apt/sources.list

deb http://ftp.uk.debian.org/debian bookworm main contrib

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

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

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

After the file called /etc/apt/sources.list has the above in it, then run apt update and apt upgrade and run through the yes/no questions. Also, remove any other files under /etc/apt/sources.list.d unless you want them there and know what they are for.

If you have an Enterprise sub then get onto support. The above wont quite work for you. Same if you use ceph.
 
Thanks for the reply.
It looks like my /etc/apt/sources.list already has that. I believe that was done in one of the earlier steps in the tutorial I'm following. https://pve.proxmox.com/wiki/Upgrade_from_7_to_8

I did an apt update, apt upgrade before starting the 7 to 8 process. I think my next step if I don't need to worry about the pve-install-repo.list is to run apt update again, and then apt dist-upgrade?
 
Also I should mention there are no files under /etc/apt/sources.list.d.
Do you have a file named /etc/apt/sources.list (without ".d")?
That's the main file. The lines can be separated from it to extra files within the folder (with ".d"). But that is completely optional.

Can you post the content /etc/apt/sources.list it so we can check if the PVE 7.x repos are correct?
 
Do you have a file named /etc/apt/sources.list (without ".d")?
That's the main file. The lines can be separated from it to extra files within the folder (with ".d"). But that is completely optional.

Can you post the content /etc/apt/sources.list it so we can check if the PVE 7.x repos are correct?

Here is the content. It was updated with sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list

deb http://ftp.ca.debian.org/debian bookworm main contrib

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

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

deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
 
Looks good, but the Ceph repository is missing. PVE8 needs the repo just for its dependencies, even if you don't use Ceph.

If you didn't use Ceph before you don't need to upgrade it, so you can just add the most recent reef-repo to your sources.list (or create a file /etc/apt/sources.list.d/ceph.list like in in the documentation [1]):
Code:
deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription

Run apt update afterwards.

And don't forget to continuously use the pve7to8 checklist script [2] to check for warnings :)

[1] https://pve.proxmox.com/wiki/Package_Repositories#_ceph_reef_no_subscription_repository
[2] https://pve.proxmox.com/wiki/Upgrade_from_7_to_8#Continuously_use_the_pve7to8_checklist_script
 
Looks good, but the Ceph repository is missing. PVE8 needs the repo just for its dependencies, even if you don't use Ceph.

Ok I ran echo "deb [URL='http://download.proxmox.com/debian/ceph-quincy']http://download.proxmox.com/debian/ceph-[/URL]reef bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list
Then apt update, apt dist-upgrade and rebooted. All seems to be working fine. Thank you!
 

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!