Debian bookworm and problem with libgnutls30 dependency

tj59

New Member
Nov 17, 2023
5
1
3
Hi Proxmox Team,

On debian bookworm with all updates I cannot install Proxmox 8, there is a problem with the dependency libgnutls30 = 3.7.9-2
How to solve this dependency problem ?


Here is my log:
Code:
root@cs:~# uname -a
Linux cs 6.2.16-19-pve #1 SMP PREEMPT_DYNAMIC PMX 6.2.16-19 (2023-10-24T12:07Z) x86_64 GNU/Linux

root@cs:~# apt update
Hit:1 https://download.docker.com/linux/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm InRelease
Hit:4 https://deb.debian.org/debian sid InRelease
Hit:5 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:6 http://deb.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

root@cs:~# uname -a
Linux cs 6.2.16-19-pve #1 SMP PREEMPT_DYNAMIC PMX 6.2.16-19 (2023-10-24T12:07Z) x86_64 GNU/Linux

root@cs:~# apt install proxmox-ve postfix open-iscsi chrony
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
open-iscsi is already the newest version (2.1.9-1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgnutlsxx30 : Depends: libgnutls30 (= 3.7.9-2) but 3.8.1-4+b1 is to be installed
E: Unable to correct problems, you have held broken packages.

root@cs:~# apt-cache depends libgnutls30
libgnutls30
  Depends: libc6
  Depends: libgmp10
  Depends: libhogweed6
  Depends: libidn2-0
  Depends: libnettle8
  Depends: libp11-kit0
  Depends: libtasn1-6
  Depends: libunistring5
  Suggests: gnutls-bin

root@cs:~# apt list -a libgnutls30
Listing... Done
libgnutls30/unstable,now 3.8.1-4+b1 amd64 [installed]
libgnutls30/stable 3.7.9-2 amd64

root@cs:~# apt-get install libgnutls30=3.7.9-2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 apt : Depends: libgnutls30 (>= 3.8.1) but 3.7.9-2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

root@cs:~# apt list --installed | grep pve

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libnvpair3linux/stable,now 2.1.13-pve1 amd64 [installed,automatic]
libuutil3linux/stable,now 2.1.13-pve1 amd64 [installed,automatic]
libzfs4linux/stable,now 2.1.13-pve1 amd64 [installed,automatic]
libzpool5linux/stable,now 2.1.13-pve1 amd64 [installed,automatic]
proxmox-kernel-6.2.16-19-pve/stable,now 6.2.16-19 amd64 [installed,automatic]
pve-firmware/stable,now 3.8-3 all [installed,automatic]
pve-kernel-5.4.203-1-pve/now 5.4.203-1 amd64 [installed,local]
pve-kernel-5.4.65-1-pve/now 5.4.65-1 amd64 [installed,local]
pve-qemu-kvm/stable,now 8.1.2-1 amd64 [installed,automatic]
smartmontools/stable,now 7.3-pve1 amd64 [installed]
zfs-zed/stable,now 2.1.13-pve1 amd64 [installed]
zfsutils-linux/stable,now 2.1.13-pve1 amd64 [installed]
 
root@cs:~# apt update
Hit:1 https://download.docker.com/linux/debian bookworm InRelease
Hit:2 http://security.debian.org bookworm-security InRelease
Hit:3 http://deb.debian.org/debian bookworm InRelease
Hit:4 https://deb.debian.org/debian sid InRelease
Hit:5 http://download.proxmox.com/debian/pve bookworm InRelease
Hit:6 http://deb.debian.org/debian bookworm-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Why do you have sid on line 4? Sid is the "unstable" repository where development takes place. Mixing that with any stable release is a sure way to shoot your feet.

Likely problem is that you have installed something from that sid repository and it brought in a version of TLS that is newer than what other apps require. This is the tip of the iceberg of why you should never mix Debian distributions. It is also not generally a good idea to install Docker directly on the host OS so you might want to get rid of that too.

You will need to figure out what it is that you installed and remove it, then remove sid from your /etc/apt/sources.list. Or follow the recommended path and install a _clean_ Debian before installing PVE.
 
I removed the SID repo and have more conflicts, all packages have been rolled back to the stable version

Here is my log

Code:
root@cs:# vim /etc/apt/sources.list
root@cs:#
root@cs:#
root@cs:# apt update
Get:1 http://security.debian.org bookworm-security InRelease [48.0 kB]
Hit:2 http://deb.debian.org/debian bookworm InRelease
Get:3 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Hit:4 https://download.docker.com/linux/debian bookworm InRelease
Get:5 http://download.proxmox.com/debian/pve bookworm InRelease [2,768 B]
Get:6 http://security.debian.org bookworm-security/main Sources [60.0 kB]
Get:7 http://security.debian.org bookworm-security/main amd64 Packages [101 kB]
Get:8 http://security.debian.org bookworm-security/main Translation-en [58.9 kB]
Fetched 323 kB in 3s (114 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@cs:# apt full-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:
  alsa-topology-conf alsa-ucm-conf attr ceph-common dconf-gsettings-backend dconf-service glib-networking glib-networking-common glib-networking-services glusterfs-common gsettings-desktop-schemas gstreamer1.0-libav
  gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-x i965-va-driver intel-media-va-driver iso-codes libaa1 libaacs0 libasound2 libasound2-data libass9 libasyncns0 libavc1394-0 libavcodec60 libavfilter9 libavformat60
  libavutil58 libbabeltrace1 libbdplus0 libblas3 libbluray2 libboost-context1.74.0 libboost-filesystem1.74.0 libboost-program-options1.74.0 libbs2b0 libcaca0 libcairo-gobject2 libcdparanoia0 libcephfs2 libchromaprint1 libcjson1
  libcodec2-1.2 libdconf1 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libdv4 libepoxy0 libfdt1 libfftw3-double3 libflac12 libflite1 libgbm1 libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin
  libgdk-pixbuf2.0-common libgfchangelog0 libgfortran5 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0 libglx0 libgme0 libgoogle-perftools4 libgsm1 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgudev-1.0-0 libhwy1
  libiec61883-0 libigdgmm12 libinih1 libjack-jackd2-0 libjxl0.7 liblapack3 liblcms2-2 liblilv-0-0 libllvm16 liblua5.3-0 libmbedcrypto7 libmp3lame0 libmpg123-0 libmysofa1 libnorm1 liboath0 libogg0 libopenjp2-7 libopenmpt0 libopus0
  liborc-0.4-0 libpciaccess0 libpgm-5.3-0 libplacebo338 libpocketsphinx3 libpostproc57 libproxmox-backup-qemu0 libproxy1v5 libpulse0 librabbitmq4 libradosstriper1 libraw1394-11 librist4 librsvg2-2 librsvg2-common librubberband2
  libsamplerate0 libsensors-config libsensors5 libserd-0-0 libshine3 libshout3 libslirp0 libsnappy1v5 libsndfile1 libsord-0-0 libsoup2.4-1 libsoup2.4-common libsoxr0 libspeex1 libsphinxbase3 libspice-server1 libsratom-0-0
  libsrt1.5-gnutls libssh-gcrypt-4 libswresample4 libswscale7 libtag1v5 libtag1v5-vanilla libtcmalloc-minimal4 libtheora0 libtwolame0 libudfread0 libunwind8 liburcu8 libusbredirparser1 libv4l-0 libv4lconvert0 libva-drm2 libva-x11-2
  libva2 libvdpau-va-gl1 libvdpau1 libvidstab1.1 libvirglrenderer1 libvisual-0.4-0 libvorbis0a libvorbisenc2 libvorbisfile3 libvpl2 libvpx8 libvulkan1 libwavpack1 libwayland-client0 libwayland-server0 libwebpmux3 libx11-xcb1 libx264-164
  libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-sync1 libxcb-xfixes0 libxdamage1 libxfixes3 libxi6 libxshmfence1 libxv1 libxvidcore4 libxxf86vm1 libz3-4 libzimg2 libzix-0-0 libzmq5 libzvbi-common libzvbi0
  mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers numactl ocl-icd-libopencl1 pocketsphinx-en-us python3-ceph-argparse python3-ceph-common python3-cephfs python3-certifi python3-cffi-backend python3-chardet
  python3-charset-normalizer python3-cryptography python3-idna python3-jwt python3-pkg-resources python3-prettytable python3-rados python3-rbd python3-requests python3-six python3-urllib3 python3-wcwidth python3-yaml va-driver-all
  vdpau-driver-all xfsprogs
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

root@cs:# apt autoremove
                    (...)


root@cs:# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


root@cs:# apt install proxmox-ve postfix open-iscsi chrony
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
open-iscsi is already the newest version (2.1.9-1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ceph-common : Depends: librbd1 (= 16.2.11+ds-2) but 16.2.11+ds-5 is to be installed
               Depends: python3-cephfs (= 16.2.11+ds-2) but it is not going to be installed
               Depends: python3-rados (= 16.2.11+ds-2) but it is not going to be installed
               Depends: libradosstriper1 (>= 0.87) but it is not going to be installed
 libgnutls-dane0 : Depends: libgnutls30 (= 3.7.9-2) but 3.8.1-4+b1 is to be installed
 libgnutlsxx30 : Depends: libgnutls30 (= 3.7.9-2) but 3.8.1-4+b1 is to be installed
 proxmox-ve : Depends: pve-qemu-kvm but it is not installable
 qemu-server : Depends: pve-qemu-kvm (>= 7.1~) but it is not installable
 spiceterm : Depends: pve-qemu-kvm but it is not installable
E: Unable to correct problems, you have held broken packages.


root@cs:/# apt list --installed | grep sid

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libnfsidmap1/now 1:2.6.3-3 amd64 [installed,local]
root@cs:/#
root@cs:/# apt list --installed | grep testi

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
 
I don't know man. For some reason your grep for sid shows libnfsidmap1 as "now" rather than "stable/now" which is weird and I don't know how you would get it into that state. Wonder how many others there are? That could be the cause of the uninstallable packages.

Sounds like you've done some experimenting with mixing Debian releases against all advice to the contrary. You are probably either going to have to completely reinstall or track down each package that has an unexpected version and force reinstall them. Bummer.

ETA: Now that I think about it, the "now" thing might have been caused by installing from Sid. Then you removed Sid from your repository list but didn't quite get all of the packages reverted. So now apt knows that package is installed but doesn't know where it came from. Like I said, reinstall or manually hunt down and revert.
 
Last edited:
I have added this repo, the number of missing dependencies has been reduced.
I checked the local packages and they all have local status,

It was debian 8 updated to 9, 10, 11 and now to 12, I think something was messed up by these updates, I guess the only thing left is to reinstall the system.

Code:
root@cs# vim /etc/apt/sources.list.d/ceph.list
root@cs#
root@cs#
root@cs#
root@cs# apt update
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:3 http://security.debian.org bookworm-security InRelease [48.0 kB]
Get:4 https://download.docker.com/linux/debian bookworm InRelease [43.3 kB]
Get:5 http://download.proxmox.com/debian/ceph-quincy bookworm InRelease [3,470 B]
Get:6 http://download.proxmox.com/debian/pve bookworm InRelease [2,768 B]
Get:7 http://security.debian.org bookworm-security/main Sources [60.5 kB]
Get:8 http://security.debian.org bookworm-security/main amd64 Packages [103 kB]
Get:9 http://security.debian.org bookworm-security/main Translation-en [61.7 kB]
Get:10 https://download.docker.com/linux/debian bookworm/stable amd64 Packages [13.3 kB]
Get:11 http://download.proxmox.com/debian/ceph-quincy bookworm/no-subscription amd64 Packages [23.3 kB]
Get:12 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 Packages [186 kB]
Fetched 598 kB in 1s (605 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
10 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@cs# apt list --upgradable
Listing... Done
containerd.io/bookworm 1.6.25-1 amd64 [upgradable from: 1.6.24-1]
libnvpair3linux/stable 2.2.0-pve3 amd64 [upgradable from: 2.1.13-pve1]
librados2/stable 17.2.7-pve1 amd64 [upgradable from: 16.2.11+ds-5]
librbd1/stable 17.2.7-pve1 amd64 [upgradable from: 16.2.11+ds-5]
libuutil3linux/stable 2.2.0-pve3 amd64 [upgradable from: 2.1.13-pve1]
libzfs4linux/stable 2.2.0-pve3 amd64 [upgradable from: 2.1.13-pve1]
libzpool5linux/stable 2.2.0-pve3 amd64 [upgradable from: 2.1.13-pve1]
pve-firmware/stable 3.9-1 all [upgradable from: 3.8-3]
zfs-zed/stable 2.2.0-pve3 amd64 [upgradable from: 2.1.13-pve1]
zfsutils-linux/stable 2.2.0-pve3 amd64 [upgradable from: 2.1.13-pve1]

root@cs# apt 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:
  libboost-iostreams1.74.0 libboost-thread1.74.0
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  liblttng-ust-common1 liblttng-ust-ctl5 liblttng-ust1
The following packages will be upgraded:
  containerd.io libnvpair3linux librados2 librbd1 libuutil3linux libzfs4linux libzpool5linux pve-firmware zfs-zed zfsutils-linux
10 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 119 MB of archives.
After this operation, 8,485 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 libnvpair3linux amd64 2.2.0-pve3 [48.4 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64 liblttng-ust-common1 amd64 2.13.5-1 [61.5 kB]
Get:3 https://download.docker.com/linux/debian bookworm/stable amd64 containerd.io amd64 1.6.25-1 [28.7 MB]
Get:4 http://download.proxmox.com/debian/ceph-quincy bookworm/no-subscription amd64 librbd1 amd64 17.2.7-pve1 [3,326 kB]
Get:5 http://deb.debian.org/debian bookworm/main amd64 liblttng-ust-ctl5 amd64 2.13.5-1 [117 kB]
Get:6 http://deb.debian.org/debian bookworm/main amd64 liblttng-ust1 amd64 2.13.5-1 [220 kB]
Get:7 http://download.proxmox.com/debian/ceph-quincy bookworm/no-subscription amd64 librados2 amd64 17.2.7-pve1 [3,411 kB]
Get:8 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 libuutil3linux amd64 2.2.0-pve3 [39.5 kB]
Get:9 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 libzfs4linux amd64 2.2.0-pve3 [212 kB]
Get:10 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 libzpool5linux amd64 2.2.0-pve3 [1,306 kB]
Get:11 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 pve-firmware all 3.9-1 [80.7 MB]
Get:12 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 zfsutils-linux amd64 2.2.0-pve3 [539 kB]
Get:13 http://download.proxmox.com/debian/pve bookworm/pve-no-subscription amd64 zfs-zed amd64 2.2.0-pve3 [66.7 kB]
Fetched 119 MB in 8s (15.3 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 102303 files and directories currently installed.)
Preparing to unpack .../00-containerd.io_1.6.25-1_amd64.deb ...
Unpacking containerd.io (1.6.25-1) over (1.6.24-1) ...
Selecting previously unselected package liblttng-ust-common1:amd64.
Preparing to unpack .../01-liblttng-ust-common1_2.13.5-1_amd64.deb ...
Unpacking liblttng-ust-common1:amd64 (2.13.5-1) ...
Selecting previously unselected package liblttng-ust-ctl5:amd64.
Preparing to unpack .../02-liblttng-ust-ctl5_2.13.5-1_amd64.deb ...
Unpacking liblttng-ust-ctl5:amd64 (2.13.5-1) ...
Selecting previously unselected package liblttng-ust1:amd64.
Preparing to unpack .../03-liblttng-ust1_2.13.5-1_amd64.deb ...
Unpacking liblttng-ust1:amd64 (2.13.5-1) ...
Preparing to unpack .../04-libnvpair3linux_2.2.0-pve3_amd64.deb ...
Unpacking libnvpair3linux (2.2.0-pve3) over (2.1.13-pve1) ...
Preparing to unpack .../05-librbd1_17.2.7-pve1_amd64.deb ...
Unpacking librbd1 (17.2.7-pve1) over (16.2.11+ds-5) ...
Preparing to unpack .../06-librados2_17.2.7-pve1_amd64.deb ...
Unpacking librados2 (17.2.7-pve1) over (16.2.11+ds-5) ...
Preparing to unpack .../07-libuutil3linux_2.2.0-pve3_amd64.deb ...
Unpacking libuutil3linux (2.2.0-pve3) over (2.1.13-pve1) ...
Preparing to unpack .../08-libzfs4linux_2.2.0-pve3_amd64.deb ...
Unpacking libzfs4linux (2.2.0-pve3) over (2.1.13-pve1) ...
Preparing to unpack .../09-libzpool5linux_2.2.0-pve3_amd64.deb ...
Unpacking libzpool5linux (2.2.0-pve3) over (2.1.13-pve1) ...
Preparing to unpack .../10-pve-firmware_3.9-1_all.deb ...
Unpacking pve-firmware (3.9-1) over (3.8-3) ...
Preparing to unpack .../11-zfsutils-linux_2.2.0-pve3_amd64.deb ...
Unpacking zfsutils-linux (2.2.0-pve3) over (2.1.13-pve1) ...
Preparing to unpack .../12-zfs-zed_2.2.0-pve3_amd64.deb ...
Unpacking zfs-zed (2.2.0-pve3) over (2.1.13-pve1) ...
Setting up libnvpair3linux (2.2.0-pve3) ...
Setting up liblttng-ust-common1:amd64 (2.13.5-1) ...
Setting up pve-firmware (3.9-1) ...
Setting up liblttng-ust-ctl5:amd64 (2.13.5-1) ...
Setting up containerd.io (1.6.25-1) ...
Setting up libuutil3linux (2.2.0-pve3) ...
Setting up liblttng-ust1:amd64 (2.13.5-1) ...
Setting up libzpool5linux (2.2.0-pve3) ...
Setting up librados2 (17.2.7-pve1) ...
Setting up libzfs4linux (2.2.0-pve3) ...
Setting up zfsutils-linux (2.2.0-pve3) ...
Installing new version of config file /etc/default/zfs ...
Installing new version of config file /etc/zfs/zfs-functions ...
zfs-import-scan.service is a disabled or a static unit, not starting it.
Setting up librbd1 (17.2.7-pve1) ...
Setting up zfs-zed (2.2.0-pve3) ...
Installing new version of config file /etc/zfs/zed.d/zed-functions.sh ...
Installing new version of config file /etc/zfs/zed.d/zed.rc ...
Processing triggers for libc-bin (2.37-12) ...
root@cs# apt install proxmox-ve postfix open-iscsi chrony
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
open-iscsi is already the newest version (2.1.9-1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgnutls-dane0 : Depends: libgnutls30 (= 3.7.9-2) but 3.8.1-4+b1 is to be installed
 libgnutlsxx30 : Depends: libgnutls30 (= 3.7.9-2) but 3.8.1-4+b1 is to be installed
 proxmox-ve : Depends: pve-qemu-kvm but it is not installable
 qemu-server : Depends: pve-qemu-kvm (>= 7.1~) but it is not installable
 spiceterm : Depends: pve-qemu-kvm but it is not installable
E: Unable to correct problems, you have held broken packages.


root@cs# apt list --installed | grep local

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

adduser/now 3.137 all [installed,local]
apache2-utils/now 2.4.58-1 amd64 [installed,local]
apparmor/now 3.0.12-1 amd64 [installed,local]
apt-transport-https/now 2.7.6 all [installed,local]
apt/now 2.7.6 amd64 [installed,local]
aufs-dkms/now 5.2+20190909-1.1 all [installed,local]
aufs-tools/now 1:4.14+20190211-1 amd64 [installed,local]
base-files/now 13 amd64 [installed,local]
base-passwd/now 3.6.2 amd64 [installed,local]
bash-completion/now 1:2.11-8 all [installed,local]
bash/now 5.2.15-2+b6 amd64 [installed,local]
binutils-common/now 2.41-6 amd64 [installed,local]
binutils-x86-64-linux-gnu/now 2.41-6 amd64 [installed,local]
binutils/now 2.41-6 amd64 [installed,local]
bsdextrautils/now 2.39.2-6 amd64 [installed,local]
bsdutils/now 1:2.39.2-6 amd64 [installed,local]
busybox/now 1:1.36.1-4 amd64 [installed,local]
console-setup-linux/now 1.223 all [installed,local]
console-setup/now 1.223 all [installed,local]
coreutils/now 9.4-2+b1 amd64 [installed,local]
cpp-11/now 11.4.0-5 amd64 [installed,local]
cpp-13/now 13.2.0-6 amd64 [installed,local]
cpp/now 4:13.2.0-1 amd64 [installed,local]
cron-daemon-common/now 3.0pl1-178 all [installed,local]
cron/now 3.0pl1-178 amd64 [installed,local]
cryptsetup-bin/now 2:2.6.1-5 amd64 [installed,local]
curl/now 8.4.0-2 amd64 [installed,local]
dash/now 0.5.12-6 amd64 [installed,local]
dbus-bin/now 1.14.10-3 amd64 [installed,local]
dbus-daemon/now 1.14.10-3 amd64 [installed,local]
dbus-session-bus-common/now 1.14.10-3 all [installed,local]
dbus-system-bus-common/now 1.14.10-3 all [installed,local]
dbus-user-session/now 1.14.10-3 amd64 [installed,local]
dbus/now 1.14.10-3 amd64 [installed,local]
debian-archive-keyring/now 2023.4 all [installed,local]
debianutils/now 5.14 amd64 [installed,local]
dictionaries-common/now 1.29.7 all [installed,local]
diffutils/now 1:3.10-1 amd64 [installed,local]
dkms/now 3.0.11-3 all [installed,local]
dmidecode/now 3.5-2 amd64 [installed,local]
dpkg-dev/now 1.22.1 all [installed,local]
dpkg/now 1.22.1 amd64 [installed,local]
e2fsprogs/now 1.47.0-2+b1 amd64 [installed,local]
easy-rsa/now 3.1.7-1 all [installed,local]
exfatprogs/now 1.2.2-1 amd64 [installed,local]
fakeroot/now 1.32.2-1 amd64 [installed,local]
fdisk/now 2.39.2-6 amd64 [installed,local]
file/now 1:5.45-2 amd64 [installed,local]
findutils/now 4.9.0-5 amd64 [installed,local]
fontconfig-config/now 2.14.2-6 amd64 [installed,local]
fontconfig/now 2.14.2-6 amd64 [installed,local]
fonts-dejavu-core/now 2.37-8 all [installed,local]
fonts-dejavu-mono/now 2.37-8 all [installed,local]
fonts-liberation-sans-narrow/now 1:1.07.6-4 all [installed,local]
fonts-liberation2/now 1:2.1.5-3 all [installed,local]
fonts-liberation/now 1:2.1.5-3 all [installed,local]
fuse/now 2.9.9-8 amd64 [installed,local]
g++-13/now 13.2.0-6 amd64 [installed,local]
g++/now 4:13.2.0-1 amd64 [installed,local]
gcc-11-base/now 11.4.0-5 amd64 [installed,local]
gcc-11/now 11.4.0-5 amd64 [installed,local]
gcc-13-base/now 13.2.0-6 amd64 [installed,local]
gcc-13/now 13.2.0-6 amd64 [installed,local]
gcc-8-base/now 8.3.0-6 amd64 [installed,local]
gcc/now 4:13.2.0-1 amd64 [installed,local]
geoip-bin/now 1.6.12-11 amd64 [installed,local]
geoip-database/now 20231106-1 all [installed,local]
geoipupdate/now 6.0.0-2 amd64 [installed,local]
gettext-base/now 0.21-13+b1 amd64 [installed,local]
golang-1.21-go/now 1.21.4-1 amd64 [installed,local]
golang-1.21-src/now 1.21.4-1 all [installed,local]
golang-go/now 2:1.21~2 amd64 [installed,local]
(...)
 
Code:
root@cs# apt upgrade

Never use only: apt upgrade with Proxmox products! Ever use: apt full-upgrade. Even in your current state.
But that only as a sidenote...

I checked the local packages and they all have local status,
Code:
apt/now 2.7.6 amd64 [installed,local]
dpkg/now 1.22.1 amd64 [installed,local]
fdisk/now 2.39.2-6 amd64 [installed,local]

I checked three of them and those (versions) (and most likely all others too) are from Debian sid:

It was debian 8 updated to 9, 10, 11 and now to 12, I think something was messed up by these updates, I guess the only thing left is to reinstall the system.

Would highly recommend so, yes.