alexinux

New Member
Aug 21, 2023
13
0
1
Hello all,

I saw this post back when it was version 4.x (https://pve.proxmox.com/wiki/Upgrade_a_4.x_Installation_using_a_newer_ISO_image) and I followed the steps but in the end I get the CDROM cannot be used in apt-get, to instead use apt-cdrom (which I used previously in the steps). I'm trying to get from version 7.1 and 7.4 to 8.0.3 but I'm stuck. I also read this entire post (https://forum.proxmox.com/threads/upgrade-proxmox-without-internet.53744/) and they mentioned a bug while installing from CDROM for that version/release but the fix was installing all .deb files manually (which I tried and I get dependency/will break this errors) or fixing some file's linebreaks. Is there any new guidance on how to upgrade ProxmoxVE without connection to the internet and using the ISO on a repository or burned to a CD/DVD-ROM? I get to the step where I can see:

deb cdrom:[Proxmox 8.0.3]/ bookworm pve
deb cdrom:[Proxmox 8.0.3]/proxmox/packages/ /

but after this the error is "Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

I've searched Debian and other Linux Forums to see if I can upgrade without having to erase everything and start over again but no luck. Any help is greatly appreciated.
 

Attachments

  • ProxmoxVE CDROM Update Error.jpg
    ProxmoxVE CDROM Update Error.jpg
    421.2 KB · Views: 26
Hi alexinux!

I know it is an old thread and you might already solved this, but it might help others in the future.

I wanted to do the same thing as you, upgrade an older proxmox version to a specific stable release using the iso installer, so I can keep every machine in my cluster on the same version.
I tried to use apt-cdrom at first but that always unmounted my iso...

In the end I solved the issue by adding the iso repository as a normal local repo instead of a cdrom:

Mount the iso in a directory:
Code:
mount /root/proxmox-ve_8.1-1.iso /mnt/pmx-iso -o loop
Add it to the apt sources.list file: (don't forget to change the debian release repositories if needed)
Code:
deb [trusted=yes] file:///mnt/pmx-iso/ bookworm pve

After an apt update and apt dist-upgrade, I'm successfully upgraded from 7.3 to 8.1
 
  • Like
Reactions: leesteken
Hi alexinux!

I know it is an old thread and you might already solved this, but it might help others in the future.

I wanted to do the same thing as you, upgrade an older proxmox version to a specific stable release using the iso installer, so I can keep every machine in my cluster on the same version.
I tried to use apt-cdrom at first but that always unmounted my iso...

In the end I solved the issue by adding the iso repository as a normal local repo instead of a cdrom:

Mount the iso in a directory:
Code:
mount /root/proxmox-ve_8.1-1.iso /mnt/pmx-iso -o loop
Add it to the apt sources.list file: (don't forget to change the debian release repositories if needed)
Code:
deb [trusted=yes] file:///mnt/pmx-iso/ bookworm pve

After an apt update and apt dist-upgrade, I'm successfully upgraded from 7.3 to 8.1
Thank you Kegloadam for this answer. I'm completely new to Proxmox. So I would like to know if we are able to do the upgrading offline with this approach that you explained?

Best,
Nima
 
yes, it should work. a more easy way would be using Proxmox Offline Mirror, since that also allows syncing Debian repos so you can install any package, not just update the predefined set.
 
yes, it should work. a more easy way would be using Proxmox Offline Mirror, since that also allows syncing Debian repos so you can install any package, not just update the predefined set.
Thank you Fabian, I'm reading now t he documentation for the Proxmox Offline Mirror. I appreciate it if you can also tell me it its free of charge or we must necessarily buy the license for that in order to be able to use it. Sincerely, Nima
 
if you want to manage the subscription keys with POM, and/or mirror the enterprise repositories for systems that have a subscription, then yes, you need a subscription for POM as well. a POM key is included with the higher tiers of PVE subscriptions, see https://proxmox.com/en/proxmox-virtual-environment/pricing or contact the shop team for details.
 
Hi alexinux!

I know it is an old thread and you might already solved this, but it might help others in the future.

I wanted to do the same thing as you, upgrade an older proxmox version to a specific stable release using the iso installer, so I can keep every machine in my cluster on the same version.
I tried to use apt-cdrom at first but that always unmounted my iso...

In the end I solved the issue by adding the iso repository as a normal local repo instead of a cdrom:

Mount the iso in a directory:
Code:
mount /root/proxmox-ve_8.1-1.iso /mnt/pmx-iso -o loop
Add it to the apt sources.list file: (don't forget to change the debian release repositories if needed)
Code:
deb [trusted=yes] file:///mnt/pmx-iso/ bookworm pve

After an apt update and apt dist-upgrade, I'm successfully upgraded from 7.3 to 8.1

I have had success in the past updating PVE from ISO, most recently when updating to 8.2.2. However, when trying to use this method to upgrade to 8.3.0, I got an unexpected result:

# apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
proxmox-firewall
Use 'apt autoremove' to remove it.
The following packages will be REMOVED:
libpve-notify-perl proxmox-ve pve-container pve-ha-manager pve-manager qemu-server
The following NEW packages will be installed:
proxmox-kernel-6.8.12-4-pve-signed
The following packages have been kept back:
libgnutls-dane0 libgnutlsxx30 libnss-systemd libpam-systemd libperl5.36 libproxmox-rs-perl libpve-network-perl libpve-rs-perl
libsystemd-shared openssh-server openssh-sftp-server perl pve-cluster pve-firewall sqlite3 ssh systemd
The following packages will be upgraded:
bsdextrautils curl distro-info-data fdisk gnutls-bin ifupdown2 iputils-ping krb5-locales libarchive13 libc-l10n libcurl3-gnutls
libcurl4 libfdisk1 libglib2.0-0 libgstreamer-plugins-base1.0-0 libjs-extjs libmpg123-0 libnss3 libnvpair3linux liboath0
libopeniscsiusr libproxmox-acme-perl libproxmox-acme-plugins libpve-access-control libpve-cluster-api-perl libpve-cluster-perl
libpve-common-perl libpve-guest-common-perl libpve-http-server-perl libpve-storage-perl libqt5core5a libqt5dbus5 libqt5network5
libuutil3linux libzfs4linux libzpool5linux locales nano novnc-pve open-iscsi openssl postfix proxmox-archive-keyring
proxmox-backup-client proxmox-backup-file-restore proxmox-firewall proxmox-kernel-6.8 proxmox-mail-forward
proxmox-offline-mirror-docs proxmox-offline-mirror-helper proxmox-termproxy proxmox-widget-toolkit pve-docs
pve-esxi-import-tools pve-firmware pve-i18n pve-qemu-kvm python3-idna spl systemd-boot-efi systemd-sysv zfs-initramfs zfs-zed
zfsutils-linux
64 upgraded, 1 newly installed, 6 to remove and 17 not upgraded.
Need to get 0 B/337 MB of archives.
After this operation, 670 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 file:/mnt/pve-iso/proxmox/packages systemd-sysv 252.31-1~deb12u1 [42.5 kB]
Get:2 file:/mnt/pve-iso bookworm/pve amd64 libopeniscsiusr amd64 2.1.8-1.pve1 [59.8 kB]
// Omitted for brevity
Get:65 file:/mnt/pve-iso bookworm/pve amd64 zfs-zed amd64 2.2.6-pve1 [68.2 kB]
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

Why is this happening? How can I upgrade to 8.3.0 using the ISO file?
 

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!