[SOLVED] Upgrade PVE 6.4-13 to PVE 7 Failure

NotLarry

Active Member
Feb 26, 2019
7
2
43
35
Trying to upgrade from PVE 6.4-13 to PVE 7 and fails on apt dist-upgrade - This system was originally installed from pve5 and has been upgraded from pve5 to pve6 in the past.
Ceph is currently updated to octopus

I ran
#apt update
#apt dist-upgrade
#ceph osd set noout
#pve6to7 --full (see attached)
#sed -i 's/buster\/updates/bullseye-security/g;s/buster/bullseye/g' /etc/apt/sources.list
#apt update
#apt dist-upgrade
At this point it fails with the following warning;

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

I am attaching the following
pve6to7 --full output (prior to failure)
output of apt update && apt dist-upgrade -y
pve6to7 --full after failed upgrade
pveversion -v after failed upgrade
 

Attachments

I did, but "then one or more of the currently existing packages cannot be upgraded since the proper Bullseye repository is not configured" does not make sense to me.
A diff of the old sources.list and the new is below and it looks correct.

< deb http://ftp.debian.org/debian buster main contrib
< deb http://ftp.debian.org/debian buster-updates main contrib
---
> deb http://ftp.debian.org/debian bullseye main contrib
> deb http://ftp.debian.org/debian bullseye-updates main contrib

< deb http://download.proxmox.com/debian/pve buster pve-no-subscription
---
> deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

< deb http://security.debian.org/debian-security buster/updates main contrib
---
> deb http://security.debian.org/debian-security bullseye-security main contrib
 
Paste the content of: /etc/apt/sources.list

by the way... do u have anything in /etc/apt/sources.list.d/ ?
 
/etc/apt/sources.list.d/ceph.list was still pointing at buster. I changed that to bullseye and the upgrade is progressing.
I am confident this can be marked solved, thank you!
 
  • Like
Reactions: Whatever
Hi,
/etc/apt/sources.list.d/ceph.list was still pointing at buster. I changed that to bullseye and the upgrade is progressing.
I am confident this can be marked solved, thank you!
thank you for sharing your solution for other users! You can mark the thread as solved by editing the first post/thread and selecting the [SOLVED] prefix.
 

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!