apt dist-upgrade wants to remove proxmox backup packages

ktzwagner

New Member
May 25, 2023
4
0
1
Hi all,

One of our Proxmox backup servers is currently facing the following issue. After upgrading apt wants to get rid of all proxmox backup packages which does not make sense.

Code:
~# apt-get update && apt-get dist-upgrade
Hit:1 http://[local-mirror]/deb/debian bullseye InRelease
Hit:2 http://[local-mirror]/deb/debian-security bullseye-security InRelease
Hit:3 http://[local-mirror]/deb/debian bullseye-updates InRelease
Hit:4 http://[local-mirror]/deb/debian bullseye-backports InRelease
Hit:5 http://[local-mirror]/deb/proxmox-backup/debian/pbs bullseye InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  dmeventd fonts-font-awesome fonts-mathjax gdisk idn libaio1 libdevmapper-event1.02.1 libfuse3-3 libjs-extjs libjs-mathjax libjs-qrcodejs
  liblvm2cmd2.03 libnvpair3linux libproxmox-acme-plugins libsgutils2-2 libtinyxml2-8 libuutil3linux libzfs4linux libzpool5linux lvm2 pbs-i18n
  proxmox-archive-keyring proxmox-backup-client proxmox-backup-docs proxmox-backup-server proxmox-mail-forward proxmox-mini-journalreader
  proxmox-offline-mirror-docs proxmox-offline-mirror-helper proxmox-widget-toolkit pve-kernel-helper pve-xtermjs qrencode sg3-utils
  smartmontools thin-provisioning-tools zfs-zed zfsutils-linux
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Additional information:
Currently configured repositories (local mirror)
Code:
~# cat /etc/apt/sources.list /etc/apt/sources.list.d/*
deb http://[local-mirror]/deb/debian bullseye main contrib non-free
deb-src http://[local-mirror]/deb/debian bullseye main contrib non-free

deb http://[local-mirror]/deb/debian-security/ bullseye-security main contrib non-free
deb-src http://[local-mirror]/deb/debian-security/ bullseye-security main contrib non-free

deb http://[local-mirror]/deb/debian bullseye-updates main contrib non-free
deb-src http://[local-mirror]/deb/debian bullseye-updates main contrib non-free

deb http://[local-mirror]/deb/debian bullseye-backports main contrib non-free
deb-src http://[local-mirror]/deb/debian bullseye-backports main contrib non-free

deb  http://[local-mirror]/deb/proxmox-backup/debian/pbs bullseye pbs-no-subscription

Best regards
Torben
 
deb http://[local-mirror]/deb/proxmox-backup/debian/pbs bullseye pbs-no-subscription
Hi, this should be:
Code:
deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription
 
Hi, this should be:
Code:
deb http://download.proxmox.com/debian/pbs bullseye pbs-no-subscription
Hi Chris,

thank you for replying. Unfortunately the local mirror does not seem to be the issue as changing to the suggested repository did not fix the issue :(

Code:
~# apt-get update
Hit:1 http://[local-mirror]/deb/debian bullseye InRelease
Hit:2 http://[local-mirror]/deb/debian-security bullseye-security InRelease
Hit:3 http://[local-mirror]/deb/debian bullseye-updates InRelease
Hit:4 http://[local-mirror]/deb/debian bullseye-backports InRelease
Get:5 http://download.proxmox.com/debian/pbs bullseye InRelease [2,675 B]
Get:6 http://download.proxmox.com/debian/pbs bullseye/pbs-no-subscription amd64 Packages [249 kB]
Fetched 252 kB in 1s (301 kB/s)   
Reading package lists... Done

~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  dmeventd fonts-font-awesome fonts-mathjax gdisk idn libaio1 libdevmapper-event1.02.1 libfuse3-3 libjs-extjs libjs-mathjax libjs-qrcodejs
  liblvm2cmd2.03 libnvpair3linux libproxmox-acme-plugins libsgutils2-2 libtinyxml2-8 libuutil3linux libzfs4linux libzpool5linux lvm2 pbs-i18n
  proxmox-archive-keyring proxmox-backup-client proxmox-backup-docs proxmox-backup-server proxmox-mail-forward proxmox-mini-journalreader
  proxmox-offline-mirror-docs proxmox-offline-mirror-helper proxmox-widget-toolkit pve-kernel-helper pve-xtermjs qrencode sg3-utils
  smartmontools thin-provisioning-tools zfs-zed zfsutils-linux
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Do you maybe need additional output from our proxmox backup server?

We've tried various things such as rebuilding the apt list, checking the repositories, etc. that come to our minds.

Best regards
Torben
 
Hi Chris,

thank you for replying. Unfortunately the local mirror does not seem to be the issue as changing to the suggested repository did not fix the issue :(

Code:
~# apt-get update
Hit:1 http://[local-mirror]/deb/debian bullseye InRelease
Hit:2 http://[local-mirror]/deb/debian-security bullseye-security InRelease
Hit:3 http://[local-mirror]/deb/debian bullseye-updates InRelease
Hit:4 http://[local-mirror]/deb/debian bullseye-backports InRelease
Get:5 http://download.proxmox.com/debian/pbs bullseye InRelease [2,675 B]
Get:6 http://download.proxmox.com/debian/pbs bullseye/pbs-no-subscription amd64 Packages [249 kB]
Fetched 252 kB in 1s (301 kB/s) 
Reading package lists... Done

~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  dmeventd fonts-font-awesome fonts-mathjax gdisk idn libaio1 libdevmapper-event1.02.1 libfuse3-3 libjs-extjs libjs-mathjax libjs-qrcodejs
  liblvm2cmd2.03 libnvpair3linux libproxmox-acme-plugins libsgutils2-2 libtinyxml2-8 libuutil3linux libzfs4linux libzpool5linux lvm2 pbs-i18n
  proxmox-archive-keyring proxmox-backup-client proxmox-backup-docs proxmox-backup-server proxmox-mail-forward proxmox-mini-journalreader
  proxmox-offline-mirror-docs proxmox-offline-mirror-helper proxmox-widget-toolkit pve-kernel-helper pve-xtermjs qrencode sg3-utils
  smartmontools thin-provisioning-tools zfs-zed zfsutils-linux
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Do you maybe need additional output from our proxmox backup server?

We've tried various things such as rebuilding the apt list, checking the repositories, etc. that come to our minds.

Best regards
Torben
Okay, it seems that it only suggests that the packages are no longer needed since they were probably installed by a meta package.
Try to mark it as manually installed by running:
Bash:
apt-get install proxmox-backup-server
# If you also want to mark the proxmox-backup-client (not really needed on the server)
apt-get install proxmox-backup-client
 
Okay, it seems that it only suggests that the packages are no longer needed since they were probably installed by a meta package.
Try to mark it as manually installed by running:
Bash:
apt-get install proxmox-backup-server
# If you also want to mark the proxmox-backup-client (not really needed on the server)
apt-get install proxmox-backup-client
Dear Chris,

this approach does seem like were just treating the symptom and not the cause. Is there maybe a more long term sustainable solution like it was with a similar error that appeared with the PVE packages?

Best regards
Torben
 
Dear Chris,

this approach does seem like were just treating the symptom and not the cause. Is there maybe a more long term sustainable solution like it was with a similar error that appeared with the PVE packages?

Best regards
Torben
What do you mean by that? If a package is marked as manually installed, it will not be suggested for autoremoval. Seems like your PBS packages were automatically installed to satisfy the dependencies of another package (probably the proxmox-backup meta package), which since has been removed. So how did you install PBS in this case?
 
Last edited:
What do you mean by that, if a package is marked as manually installed, it will not be suggested for autoremoval. Seems like your PBS packages were automatically installed to satisfy the dependencies of another package, which since has been removed. So how did you install PBS in this case?
I assumed we had it installed through
Code:
apt get install proxmox-backup-server
but we had it installed through the general proxmox-ve package.
We've run your suggestion now to mark the packages as manually installed and it solved the issue.

Thank you for your help and best regards
Torben
 

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!