Upgrade from 6.x to 7.x pve-apt-hook error

Radu Erdei

Member
Feb 16, 2019
3
0
21
38
So since support for PVE 6.4 ended.... i'm trying to upgrade to 7.x. Following guide here: https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0

Updated sources.list to bullseye and updated:

Code:
root@raduerdei:~# apt update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
659 packages can be upgraded. Run 'apt list --upgradable' to see them.

and upgrade:

Code:
root@raduerdei:~# apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  bsdmainutils cpp-8 dh-python gcc-9-base libasan5 libfuse3-3 libisl19 libllvm7 libmpx2 libpve-cluster-perl libpython3.7-dev libqrencode4 libx86emu2
  proxmox-archive-keyring proxmox-backup-client proxmox-backup-file-restore proxmox-backup-restore-image pve-lxc-syscalld python3-asn1crypto
  python3-dbus python3-entrypoints python3-jeepney python3-keyring python3-keyrings.alt python3-pycryptodome python3-secretstorage python3-xdg
  qrencode zstd
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  criu g++-8 gcc-8 libgc1c2 libgcc-8-dev libldb1 libpolkit-backend-1-0 libpve-access-control libpve-cluster-api-perl libpve-guest-common-perl
  libpve-storage-perl libpve-u2f-server-perl libpython-stdlib librados2-perl libstdc++-8-dev lxc-pve proxmox-ve pve-cluster pve-container
  pve-firewall pve-ha-manager pve-manager python python-cephfs python-certifi python-chardet python-configparser python-future python-idna
  python-ipaddr python-minimal python-prettytable python-protobuf python-rados python-rbd python-requests python-talloc python-urllib3
  python3-crypto python3.7 python3.7-dev qemu-server
The following NEW packages will be installed:
  alsa-topology-conf alsa-ucm-conf bind9-dnsutils bind9-libs bsdextrautils cpp-10 distro-info-data g++-10 gcc-10 gcc-10-base gcc-9-base
  libapt-pkg6.0 libasan6 libatopology2 libboost-context1.74.0 libboost-coroutine1.74.0 libboost-iostreams1.74.0 libboost-program-options1.74.0
  libboost-thread1.74.0 libbpf0 libbrotli1 libc-devtools libcbor0 libcrypt-dev libcrypt1 libctf-nobfd0 libctf0 libdeflate0 libdns-export1110
  libdns1110 libevent-2.1-7 libffi7 libfido2-1 libgc1 libgcc-10-dev libgcc-s1 libglusterd0 libhogweed6 libicu67 libinih1 libip4tc2 libip6tc2
  libipset13 libisc-export1105 libisc1105 libisl23 libjson-c5 libldb2 libleveldb1d liblinear4 libllvm11 libmaxminddb0 libmd0 libmpdec3 libnettle8
  libnginx-mod-http-geoip2 libnginx-mod-stream-geoip libnginx-mod-stream-geoip2 libnl-genl-3-200 libnsl-dev libnsl2 libnss-nis libnss-nisplus
  liboath0 libopeniscsiusr libperl4-corelibs-perl libperl5.32 libprocps8 libpython3.9 libpython3.9-dev libpython3.9-minimal libpython3.9-stdlib
  librabbitmq4 libreadline8 libstdc++-10-dev libtirpc-dev libuv1 libvulkan1 libwayland-client0 libx86emu3 libxcb-randr0 libxcb-xfixes0 libxkbfile1
  libxxhash0 libz3-4 logsave lua-lpeg mailcap manpages-dev media-types mesa-vulkan-drivers ncal nginx-core pci.ids perl-modules-5.32
  python3-ceph-argparse python3-cephfs python3-jeepney python3-ldb python3-pycryptodome python3-rados python3-rbd python3-talloc python3.9
  python3.9-dev python3.9-minimal runit-helper systemd-timesyncd zlib1g-dev
The following packages will be upgraded:
  alsa-utils apparmor apt apt-listchanges apt-utils attr base-files base-passwd bash bash-completion bc bind9-host binutils binutils-common
  binutils-x86-64-linux-gnu bridge-utils bsd-mailx bsdmainutils bsdutils btrfs-progs build-essential busybox bzip2 ca-certificates ceph-common
  ceph-fuse cifs-utils console-setup console-setup-linux coreutils cpio cpp cron curl dash dbus dbus-user-session debconf debconf-i18n
  debian-archive-keyring debian-faq debianutils dh-python diffutils dirmngr dmeventd dmidecode dmsetup dnsutils doc-debian dosfstools dpkg dpkg-dev
  dtach e2fsprogs ebtables efibootmgr eject ethtool fail2ban fakeroot faketime fdisk fdutils file findutils fontconfig fontconfig-config
  fonts-dejavu-core fonts-font-awesome fonts-glyphicons-halflings fuse g++ gcc gdbm-l10n gdisk genisoimage gettext-base gir1.2-glib-2.0
  glusterfs-client glusterfs-common gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep groff-base
  grub-common grub-efi-amd64-bin grub-efi-ia32-bin grub-pc grub-pc-bin grub2-common gzip hddtemp hdparm hostname htop hwinfo idn ifenslave ifupdown
  init init-system-helpers initramfs-tools initramfs-tools-core inxi iproute2 ipset iptables iputils-ping isc-dhcp-client isc-dhcp-common iso-codes
  kbd keyboard-configuration keyutils klibc-utils kmod krb5-locales less libacl1 libacl1-dev libaio1 libalgorithm-diff-perl
  libalgorithm-diff-xs-perl libanyevent-http-perl libanyevent-perl libapparmor1 libappconfig-perl libapt-pkg-perl libarchive13 libasan5 libasound2
  libasound2-data libassuan0 libasyncns0 libatomic1 libattr1 libattr1-dev libaudit-common libaudit1 libauthen-pam-perl libavahi-client3
  libavahi-common-data libavahi-common3 libbabeltrace1 libbind9-161 libbinutils libblas3 libblkid1 libbsd0 libbz2-1.0 libc-bin libc-dev-bin
  libc-l10n libc6 libc6-dev libcaca0 libcairo2 libcap-ng0 libcap2 libcap2-bin libcc1-0 libcephfs2 libclone-perl libcom-err2 libcommon-sense-perl
  libconvert-asn1-perl libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libcrypt-random-seed-perl
  libcrypt-ssleay-perl libcryptsetup12 libcups2 libcurl3-gnutls libcurl4 libdatrie1 libdb5.3 libdbi1 libdbus-1-3 libdebconfclient0
  libdevmapper-event1.02.1 libdevmapper1.02.1 libdigest-hmac-perl libdpkg-perl libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2
  libdrm-radeon1 libdrm2 libdw1 libedit2 libefiboot1 libefivar1 libelf1 libencode-locale-perl libestr0 libexpat1 libexpat1-dev libext2fs2
  libfakeroot libfaketime libfastjson4 libfdisk1 libfile-chdir-perl libfile-fcntllock-perl libfile-listing-perl libfilesys-df-perl libflac8
  libfontconfig1 libfontenc1 libfreetype6 libfribidi0 libfstrm0 libfuse2 libfuse3-3 libgcrypt20 libgd3 libgdbm-compat4 libgdbm6 libgeoip1 libgfapi0
  libgfchangelog0 libgfortran5 libgfrpc0 libgfxdr0 libgif7 libgirepository-1.0-1 libgl1 libgl1-mesa-dri libglapi-mesa libglew2.1 libglib2.0-0
  libglib2.0-data libglu1-mesa libglusterfs-dev libglusterfs0 libglvnd0 libglx-mesa0 libglx0 libgmp10 libgnutls30 libgnutlsxx28 libgomp1
  libgoogle-perftools4 libgpg-error0 libgpm2 libgraphite2-3 libgssapi-krb5-2 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libharfbuzz0b libhd21
  libhtml-parser-perl libhtml-tagset-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libibverbs1 libice6
  libidn11 libidn2-0 libimlib2 libio-html-perl libio-multiplex-perl libio-socket-ssl-perl libiptc0 libirs161 libisccc161 libisccfg163 libiscsi7
  libisns0 libitm1 libjansson4 libjemalloc2 libjpeg62-turbo libjs-bootstrap libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl
  libjson-xs-perl libk5crypto3 libkeyutils1 libklibc libkmod2 libkrb5-3 libkrb5support0 libksba8 libldap-2.4-2 libldap-common liblinux-inotify2-perl
  liblmdb0 liblocale-gettext-perl liblockfile-bin liblockfile1 liblognorm5 liblsan0 liblua5.3-0 liblvm2cmd2.03 liblwp-mediatypes-perl
  liblwp-protocol-https-perl liblwres161 liblz4-1 liblzma5 liblzo2-2 libmagic-mgc libmagic1 libmath-random-isaac-perl libmime-base32-perl libmnl0
  libmount1 libmpc3 libmpfr6 libncurses6 libncursesw6 libnet-dbus-perl libnet-dns-perl libnet-http-perl libnet-ldap-perl libnet-ssleay-perl
  libnetfilter-conntrack3 libnetfilter-log1 libnewt0.52 libnfsidmap2 libnftnl11 libnghttp2-14 libnginx-mod-http-auth-pam libnginx-mod-http-dav-ext
  libnginx-mod-http-echo libnginx-mod-http-geoip libnginx-mod-http-image-filter libnginx-mod-http-subs-filter libnginx-mod-http-upstream-fair
  libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libnl-3-200 libnl-route-3-200 libnpth0 libnspr4 libnss-systemd libnss3
  libnuma1 libogg0 libopus0 liborc-0.4-0 libp11-kit0 libpam-modules libpam-modules-bin libpam-runtime libpam-systemd libpam0g libpango-1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0 libparted2 libpcap0.8 libpci3 libpciaccess0 libpcre2-8-0 libpcre3 libpipeline1 libpixman-1-0 libpng16-16
  libpolkit-agent-1-0 libpolkit-gobject-1-0 libpopt0 libprotobuf-c1 libpsl5 libpulse0 libpython2-stdlib libpython2.7 libpython2.7-minimal
  libpython2.7-stdlib libpython3-dev libpython3-stdlib libqrencode4 libquadmath0 librados2 libradosstriper1 librbd1 librdmacm1 librrd8 librrds-perl
  librtmp1 libsamplerate0 libsasl2-2 libsasl2-modules-db libsdl1.2debian libseccomp2 libselinux1 libsemanage-common libsemanage1 libsensors-config
  libsensors5 libsepol1 libslang2 libsmartcols1 libsmbclient libsnappy1v5 libsndfile1 libspice-server1 libsqlite3-0 libsquashfuse0 libss2 libssh2-1
  libssl1.1 libstatgrab10 libstdc++6 libsystemd0 libtalloc2 libtasn1-6 libtcmalloc-minimal4 libtdb1 libtemplate-perl libterm-readline-gnu-perl
  libtevent0 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libthai-data libthai0 libtiff5 libtimedate-perl libtinfo6
  libtirpc-common libtirpc3 libtsan0 libtypes-serialiser-perl libu2f-server0 libubsan1 libuchardet0 libudev1 libunistring2 libunwind8 liburcu6
  liburi-perl libusb-1.0-0 libusbredirparser1 libutempter0 libuuid-perl libuuid1 libvorbis0a libvorbisenc2 libwbclient0 libwebp6 libwrap0
  libwww-perl libx11-6 libx11-data libx11-xcb1 libxau6 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0 libxcb-shape0
  libxcb-shm0 libxcb-sync1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxml-libxml-perl libxml-namespacesupport-perl
  libxml-parser-perl libxml-sax-base-perl libxml-sax-perl libxml-twig-perl libxml2 libxslt1.1 libxt6 libxtables12 libyaml-0-2 libyaml-libyaml-perl
  libzstd1 linux-libc-dev lm-sensors locales login logrotate lsb-base lshw lsof lvm2 lxcfs lynx lynx-common lzop make man-db manpages mawk mc
  mc-data memtest86+ mime-support mlocate mount nano ncdu ncurses-base ncurses-bin ncurses-term net-tools netbase netcat-traditional nfs-common
  nginx nginx-common nginx-full nmap nmap-common numactl open-iscsi openssh-client openssh-server openssh-sftp-server openssl os-prober parted
  passwd patch pciutils perl perl-base perl-openssl-defaults pinentry-curses policykit-1 postfix ppp procmail procps psmisc python-apt-common
  python-pip-whl python-pkg-resources python-six python2 python2-minimal python2.7 python2.7-minimal python3 python3-apt python3-asn1crypto
  python3-certifi python3-cffi-backend python3-chardet python3-cryptography python3-dbus python3-debconf python3-debian python3-debianbts
  python3-dev python3-distutils python3-entrypoints python3-gi python3-httplib2 python3-idna python3-jwt python3-keyring python3-keyrings.alt
  python3-lib2to3 python3-minimal python3-pip python3-pkg-resources python3-prettytable python3-pycurl python3-pyinotify python3-pysimplesoap
  python3-reportbug python3-requests python3-secretstorage python3-setuptools python3-six python3-systemd python3-urllib3 python3-wheel python3-xdg
  qrencode ranger readline-common reportbug rpcbind rrdcached rsync rsyslog samba-common samba-libs sensible-utils smbclient snap snapd socat
  speedtest-cli sqlite3 squashfs-tools squashfuse ssh ssl-cert strace sudo systemd systemd-sysv sysvinit-utils tar tasksel tasksel-data tcpdump
  telnet thin-provisioning-tools time tmux traceroute tree tzdata ucf udev uidmap unzip usb.ids usbutils util-linux vim vim-common vim-runtime
  vim-tiny w3m w3m-img wakeonlan wamerican wget whiptail whois x11-common x11-utils xfsprogs xkb-data xsltproc xxd xz-utils zlib1g zstd
659 upgraded, 109 newly installed, 42 to remove and 0 not upgraded.
Need to get 0 B/407 MB of archives.
After this operation, 320 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
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

Found on the forum some had issues with old kernel images not removed... it doesn't seem to be my case.
Any help please? :)
 
Code:
root@raduerdei:~# apt update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
659 packages can be upgraded. Run 'apt list --upgradable' to see them.

You are missing a PVE-repository: [1]

Edit: The question is, how long it is missing. I would advise to revert all repos back to their equivalent buster version, add the appropriate PVE-buster-repo and update the system to the most recent PVE 6 version first!

[1] https://pve.proxmox.com/wiki/Package_Repositories
 
Last edited:
  • Like
Reactions: fabian
You are missing a PVE-repository: [1]

Edit: The question is, how long it is missing. I would advise to revert all repos back to their equivalent buster version, add the appropriate PVE-buster-repo and update the system to the most recent PVE 6 version first!

[1] https://pve.proxmox.com/wiki/Package_Repositories
Thank you, it worked. Reverted repos to buster and updated, moved to 7.x repos, started the upgrade, but hang around 63%... and it went belly-up and dead, beyond my abilities to fix it. So, I clean-installed and now it's fine :)
 
hello all !
Got same bug when tried to update 6 to 7 .
Any chance to fix it ? How to reverted repos to buster ?


After this operation, 171 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
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

System not fully up to date (found 658 new packages)
 
hello all !
Got same bug when tried to update 6 to 7 .
Any chance to fix it ? How to reverted repos to buster ?


After this operation, 171 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
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

System not fully up to date (found 658 new packages)

please post the full output of apt update and apt full-upgrade

thanks!
 
please post the full output of apt update and apt full-upgrade

thanks!
root@pve1:~# apt update
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Hit:3 http://download.proxmox.com/debian/ceph-luminous buster InRelease
Hit:4 http://ftp.debian.org/debian bullseye-updates InRelease
Err:5 https://enterprise.proxmox.com/debian/pve buster InRelease
401 Unauthorized [IP: 212.224.123.70 443]
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/buster/InRelease 401 Unauthorized [IP: 212.224.123.70 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@pve1:~#

AND

root@pve1:~# apt full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
bsdmainutils libfuse3-3 libqrencode4 proxmox-archive-keyring proxmox-backup-client
proxmox-backup-file-restore proxmox-backup-restore-image pve-kernel-5.4.101-1-pve
pve-kernel-5.4.189-1-pve pve-kernel-5.4.41-1-pve pve-kernel-5.4.44-2-pve pve-kernel-5.4.65-1-pve
pve-kernel-5.4.78-2-pve qrencode zstd
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
criu libldb1 libpve-access-control libpve-cluster-api-perl libpve-guest-common-perl
libpve-storage-perl libpve-u2f-server-perl libpython-stdlib librados2-perl lxc-pve proxmox-ve
pve-cluster pve-container pve-firewall pve-ha-manager pve-manager python python-cephfs python-certifi
python-chardet python-configparser python-future python-idna python-ipaddr python-minimal
python-prettytable python-protobuf python-rados python-rbd python-requests python-talloc
python-urllib3 python3.7 qemu-server
The following NEW packages will be installed:
alsa-topology-conf alsa-ucm-conf bind9-dnsutils bind9-libs bsdextrautils distro-info-data gcc-10-base
libapt-pkg6.0 libboost-context1.74.0 libboost-coroutine1.74.0 libboost-iostreams1.74.0
libboost-program-options1.74.0 libboost-thread1.74.0 libbpf0 libbrotli1 libc-devtools libcbor0
libcrypt-dev libcrypt1 libdeflate0 libdns-export1110 libdns1110 libevent-2.1-7 libffi7 libfido2-1
libgcc-s1 libgd3 libglusterd0 libhogweed6 libicu67 libinih1 libip4tc2 libip6tc2 libipset13
libisc-export1105 libisc1105 libjbig0 libjson-c5 libldb2 libleveldb1d liblinear4 libmaxminddb0 libmd0
libmpdec3 libnettle8 libnsl-dev libnsl2 libnss-nis libnss-nisplus liboath0 libopeniscsiusr
libperl4-corelibs-perl libperl5.32 libprocps8 libpython3.9 libpython3.9-minimal libpython3.9-stdlib
librabbitmq4 libreadline8 libtiff5 libtirpc-dev libuv1 libwebp6 libxpm4 libxxhash0 logsave lua-lpeg
mailcap manpages-dev media-types ncal pci.ids perl-modules-5.32 python3-ceph-argparse python3-cephfs
python3-ldb python3-rados python3-rbd python3-talloc python3.9 python3.9-minimal runit-helper
systemd-timesyncd
The following packages will be upgraded:
apparmor apt apt-listchanges apt-utils attr base-files base-passwd bash bash-completion bc bind9-host
bridge-utils bsd-mailx bsdmainutils bsdutils btrfs-progs busybox bzip2 ca-certificates ceph-common
ceph-fuse cifs-utils console-setup console-setup-linux coreutils cpio cron curl dash dbus debconf
debconf-i18n debian-archive-keyring debian-faq debianutils diffutils dirmngr dmeventd dmidecode
dmsetup dnsutils doc-debian dosfstools dpkg dtach e2fsprogs ebtables efibootmgr eject faketime fdisk
fdutils file findutils fontconfig fontconfig-config fonts-dejavu-core fonts-font-awesome
fonts-glyphicons-halflings fuse gdbm-l10n gdisk genisoimage gettext-base glusterfs-client
glusterfs-common gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf
gpgsm gpgv grep groff-base grub-common grub-efi-amd64-bin grub-efi-ia32-bin grub-pc grub-pc-bin
grub2-common gzip hdparm hostname idn init init-system-helpers initramfs-tools initramfs-tools-core
iproute2 ipset iptables iputils-ping isc-dhcp-client isc-dhcp-common iso-codes kbd
keyboard-configuration keyutils klibc-utils kmod krb5-locales less libacl1 libacl1-dev libaio1
libanyevent-http-perl libanyevent-perl libapparmor1 libappconfig-perl libapt-pkg-perl libarchive13
libasound2 libasound2-data libassuan0 libasyncns0 libattr1 libattr1-dev libaudit-common libaudit1
libauthen-pam-perl libavahi-client3 libavahi-common-data libavahi-common3 libbabeltrace1 libbind9-161
libblas3 libblkid1 libbsd0 libbz2-1.0 libc-bin libc-dev-bin libc-l10n libc6 libc6-dev libcaca0
libcairo2 libcap-ng0 libcap2 libcap2-bin libcephfs2 libclone-perl libcom-err2 libcommon-sense-perl
libconvert-asn1-perl libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl
libcrypt-openssl-rsa-perl libcrypt-random-seed-perl libcrypt-ssleay-perl libcryptsetup12 libcups2
libcurl3-gnutls libcurl4 libdatrie1 libdb5.3 libdbi1 libdbus-1-3 libdebconfclient0
libdevmapper-event1.02.1 libdevmapper1.02.1 libdigest-hmac-perl libdw1 libedit2 libefiboot1 libefivar1
libelf1 libencode-locale-perl libestr0 libexpat1 libext2fs2 libfaketime libfastjson4 libfdisk1
libfile-chdir-perl libfile-listing-perl libfilesys-df-perl libflac8 libfontconfig1 libfreetype6
libfribidi0 libfstrm0 libfuse2 libfuse3-3 libgcrypt20 libgdbm-compat4 libgdbm6 libgeoip1 libgfapi0
libgfchangelog0 libgfortran5 libgfrpc0 libgfxdr0 libglib2.0-0 libglusterfs-dev libglusterfs0 libgmp10
libgnutls30 libgnutlsxx28 libgoogle-perftools4 libgpg-error0 libgpm2 libgraphite2-3 libgssapi-krb5-2
libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libharfbuzz0b libhtml-parser-perl libhtml-tagset-perl
libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libibverbs1 libice6
libidn11 libidn2-0 libio-html-perl libio-multiplex-perl libio-socket-ssl-perl libiptc0 libirs161
libisccc161 libisccfg163 libiscsi7 libisns0 libjansson4 libjemalloc2 libjpeg62-turbo libjs-bootstrap
libjs-jquery libjs-sphinxdoc libjs-underscore libjson-perl libjson-xs-perl libk5crypto3 libkeyutils1
libklibc libkmod2 libkrb5-3 libkrb5support0 libksba8 libldap-2.4-2 libldap-common
liblinux-inotify2-perl liblmdb0 liblocale-gettext-perl liblockfile-bin liblockfile1 liblognorm5
liblua5.3-0 liblvm2cmd2.03 liblwp-mediatypes-perl liblwp-protocol-https-perl liblwres161 liblz4-1
liblzma5 liblzo2-2 libmagic-mgc libmagic1 libmath-random-isaac-perl libmime-base32-perl libmnl0
libmount1 libncurses6 libncursesw6 libnet-dbus-perl libnet-dns-perl libnet-http-perl libnet-ldap-perl
libnet-ssleay-perl libnetfilter-conntrack3 libnetfilter-log1 libnewt0.52 libnfsidmap2 libnftnl11
libnghttp2-14 libnl-3-200 libnl-route-3-200 libnpth0 libnspr4 libnss-systemd libnss3 libnuma1 libogg0
libopus0 liborc-0.4-0 libp11-kit0 libpam-modules libpam-modules-bin libpam-runtime libpam-systemd
libpam0g libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpcap0.8 libpci3 libpcre2-8-0 libpcre3
libpipeline1 libpixman-1-0 libpng16-16 libpopt0 libprotobuf-c1 libpsl5 libpulse0 libpython2-stdlib
libpython2.7 libpython2.7-minimal libpython2.7-stdlib libpython3-stdlib libqrencode4 libquadmath0
librados2 libradosstriper1 librbd1 librdmacm1 librrd8 librrds-perl librtmp1 libsasl2-2
libsasl2-modules-db libsdl1.2debian libseccomp2 libselinux1 libsemanage-common libsemanage1 libsepol1
libslang2 libsmartcols1 libsmbclient libsnappy1v5 libsndfile1 libspice-server1 libsqlite3-0 libss2
libssh2-1 libssl1.1 libstatgrab10 libstdc++6 libsystemd0 libtalloc2 libtasn1-6 libtcmalloc-minimal4
libtdb1 libtemplate-perl libterm-readline-gnu-perl libtevent0 libtext-charwidth-perl
libtext-iconv-perl libtext-wrapi18n-perl libthai-data libthai0 libtimedate-perl libtinfo6
libtirpc-common libtirpc3 libtypes-serialiser-perl libu2f-server0 libuchardet0 libudev1 libunistring2
libunwind8 liburcu6 liburi-perl libusb-1.0-0 libusbredirparser1 libuuid-perl libuuid1 libvorbis0a
libvorbisenc2 libwbclient0 libwrap0 libwww-perl libx11-6 libx11-data libx11-xcb1 libxau6
libxcb-render0 libxcb-shm0 libxcb1 libxext6 libxi6 libxml-libxml-perl libxml-namespacesupport-perl
libxml-parser-perl libxml-sax-base-perl libxml-sax-perl libxml-twig-perl libxml2 libxslt1.1
libxtables12 libyaml-0-2 libyaml-libyaml-perl libzstd1 linux-libc-dev locales login logrotate lsb-base
lsof lvm2 lxcfs lynx lynx-common lzop man-db manpages mawk mc mc-data memtest86+ mime-support mount
nano ncurses-base ncurses-bin ncurses-term netbase netcat-traditional nfs-common nmap nmap-common
numactl open-iscsi openssh-client openssh-server openssh-sftp-server openssl os-prober passwd patch
pciutils perl perl-base perl-openssl-defaults pinentry-curses postfix procmail procps psmisc
python-apt-common python-pkg-resources python-six python2 python2-minimal python2.7 python2.7-minimal
python3 python3-apt python3-certifi python3-chardet python3-debconf python3-debian python3-debianbts
python3-httplib2 python3-idna python3-jwt python3-minimal python3-pkg-resources python3-prettytable
python3-pycurl python3-pysimplesoap python3-reportbug python3-requests python3-six python3-urllib3
qrencode readline-common reportbug rpcbind rrdcached rsync rsyslog samba-common samba-libs
sensible-utils smbclient socat sqlite3 ssh ssl-cert strace systemd systemd-sysv sysvinit-utils tar
tasksel tasksel-data tcpdump telnet thin-provisioning-tools time traceroute tzdata ucf udev uidmap
unzip usb.ids usbutils util-linux vim-common vim-tiny wamerican wget whiptail x11-common xfsprogs
xkb-data xsltproc xxd xz-utils zlib1g zstd
519 upgraded, 83 newly installed, 34 to remove and 0 not upgraded.
Need to get 0 B/254 MB of archives.
After this operation, 171 MB of additional disk space will be used.
Do you want to continue? [Y/n]
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
root@pve1:~#
 
please follow the instructions on https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0 ! you have mixed buster and bullseye repositories configured, this is very likely to break your system. please first revert to the buster repositories, then follow the steps in the upgrade guide!
 
well, the same way you changed half of them to bullseye ;) (you can manually edit the sources.list files, for example)
 
well, the same way you changed half of them to bullseye ;) (you can manually edit the sources.list files, for example)
done, but ceph does not work.

Now sources.list like this -
"
deb http://download.proxmox.com/debian/pve buster pve-no-subscription

# security updates
"

then I tried upgrade and got error System not fully up to date

Starting system upgrade: apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
pve-kernel-5.4.101-1-pve pve-kernel-5.4.189-1-pve pve-kernel-5.4.41-1-pve
pve-kernel-5.4.44-2-pve pve-kernel-5.4.65-1-pve pve-kernel-5.4.78-2-pve
Use 'apt autoremove' to remove them.
The following packages have been kept back:
libradosstriper1 python-cephfs python-rados
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

System not fully up to date (found 8 new packages)

starting shell

also got error from ceph

root@pve1:~# ceph osd set noout
2022-11-18 13:02:29.650842 7f17f362d700 -1 Errors while parsing config file!
2022-11-18 13:02:29.650848 7f17f362d700 -1 parse_file: cannot open /etc/ceph/ceph.conf: (2) No such file or directory
2022-11-18 13:02:29.650849 7f17f362d700 -1 parse_file: cannot open ~/.ceph/ceph.conf: (2) No such file or directory
2022-11-18 13:02:29.650859 7f17f362d700 -1 parse_file: cannot open ceph.conf: (2) No such file or directory
Error initializing cluster client: ObjectNotFound('error calling conf_read_file',)
 
can you post the output of pveversion -v?
 
can you post the output of pveversion -v?
root@pve1:/# pveversion -v
proxmox-ve: 6.4-1 (running kernel: 5.4.203-1-pve)
pve-manager: 6.4-15 (running version: 6.4-15/af7986e6)
pve-kernel-5.4: 6.4-20
pve-kernel-helper: 6.4-20
pve-kernel-5.3: 6.1-6
pve-kernel-5.4.203-1-pve: 5.4.203-1
pve-kernel-5.4.195-1-pve: 5.4.195-1
pve-kernel-5.4.189-1-pve: 5.4.189-1
pve-kernel-5.4.101-1-pve: 5.4.101-1
pve-kernel-5.4.78-2-pve: 5.4.78-2
pve-kernel-5.4.65-1-pve: 5.4.65-1
pve-kernel-5.4.44-2-pve: 5.4.44-2
pve-kernel-5.4.41-1-pve: 5.4.41-1
pve-kernel-5.3.18-3-pve: 5.3.18-3
pve-kernel-5.3.18-2-pve: 5.3.18-2
ceph-fuse: 12.2.13-pve1
corosync: 3.1.5-pve2~bpo10+1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: residual config
ifupdown2: 3.0.0-1+pve4~bpo10
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.22-pve2~bpo10+1
libproxmox-acme-perl: 1.1.0
libproxmox-backup-qemu0: 1.1.0-1
libpve-access-control: 6.4-3
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.4-5
libpve-guest-common-perl: 3.1-5
libpve-http-server-perl: 3.2-5
libpve-storage-perl: 6.4-1
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.6-2
lxcfs: 4.0.6-pve1
novnc-pve: 1.1.0-1
proxmox-backup-client: 1.1.14-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.6-2
pve-cluster: 6.4-1
pve-container: 3.3-6
pve-docs: 6.4-2
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-4
pve-firmware: 3.3-2
pve-ha-manager: 3.1-1
pve-i18n: 2.3-1
pve-qemu-kvm: 5.2.0-8
pve-xtermjs: 4.7.0-3
qemu-server: 6.4-2
smartmontools: 7.2-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 2.0.7-pve1
 
you need to do this part as well when switching the repositories to bullseye, then it should work:
done
and now got this

root@pve1:~# apt updateHit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://download.proxmox.com/debian/pve bullseye InRelease
Hit:3 http://download.proxmox.com/debian/ceph-octopus bullseye InRelease
Err:4 https://enterprise.proxmox.com/debian/pve bullseye InRelease
401 Unauthorized [IP: 212.224.123.70 443]
Reading package lists... Done
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/bullseye/InRelease 401 Unauthorized [IP: 212.224.123.70 443]
E: The repository 'https://enterprise.proxmox.com/debian/pve bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.


And also have problems with ceph

root@pve1:~# ceph -s
2022-11-18 20:06:05.163393 7fa90e720700 -1 Errors while parsing config file!
2022-11-18 20:06:05.163396 7fa90e720700 -1 parse_file: cannot open /etc/ceph/ceph.conf: (2) No such file or directory
2022-11-18 20:06:05.163397 7fa90e720700 -1 parse_file: cannot open ~/.ceph/ceph.conf: (2) No such file or directory
2022-11-18 20:06:05.163420 7fa90e720700 -1 parse_file: cannot open ceph.conf: (2) No such file or directory
Error initializing cluster client: ObjectNotFound('error calling conf_read_file',)
 
Last edited:
After reboot server is almost down =(

Nov 18 20:23:01 pve1 systemd[1]: Failed to start Proxmox VE replication runner.
Nov 18 20:24:00 pve1 systemd[1]: Starting Proxmox VE replication runner...
Nov 18 20:24:01 pve1 pvesr[1725]: Can't locate loadable object for module PVE::RADOS in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/PVE/Storage/RBDPlugin.pm line 13.
Nov 18 20:24:01 pve1 pvesr[1725]: Compilation failed in require at /usr/share/perl5/PVE/Storage/RBDPlugin.pm line 13, <DATA> line 755.
Nov 18 20:24:01 pve1 pvesr[1725]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Storage/RBDPlugin.pm line 13, <DATA> line 755.
Nov 18 20:24:01 pve1 pvesr[1725]: Compilation failed in require at /usr/share/perl5/PVE/Storage.pm line 34, <DATA> line 755.
Nov 18 20:24:01 pve1 pvesr[1725]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Storage.pm line 34, <DATA> line 755.
Nov 18 20:24:01 pve1 pvesr[1725]: Compilation failed in require at /usr/share/perl5/PVE/Replication.pm line 15, <DATA> line 755.
Nov 18 20:24:01 pve1 pvesr[1725]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Replication.pm line 15, <DATA> line 755.
Nov 18 20:24:01 pve1 pvesr[1725]: Compilation failed in require at /usr/share/perl5/PVE/CLI/pvesr.pm line 16, <DATA> line 755.
Nov 18 20:24:01 pve1 pvesr[1725]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/CLI/pvesr.pm line 16, <DATA> line 755.
Nov 18 20:24:01 pve1 pvesr[1725]: Compilation failed in require at /usr/bin/pvesr line 6, <DATA> line 755.
Nov 18 20:24:01 pve1 pvesr[1725]: BEGIN failed--compilation aborted at /usr/bin/pvesr line 6, <DATA> line 755.
Nov 18 20:24:01 pve1 systemd[1]: pvesr.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 18 20:24:01 pve1 systemd[1]: pvesr.service: Failed with result 'exit-code'.
Nov 18 20:24:01 pve1 systemd[1]: Failed to start Proxmox VE replication runner.
Nov 18 20:25:00 pve1 systemd[1]: Starting Proxmox VE replication runner...
Nov 18 20:25:01 pve1 pvesr[1834]: Can't locate loadable object for module PVE::RADOS in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/PVE/Storage/RBDPlugin.pm line 13.
Nov 18 20:25:01 pve1 pvesr[1834]: Compilation failed in require at /usr/share/perl5/PVE/Storage/RBDPlugin.pm line 13, <DATA> line 755.
Nov 18 20:25:01 pve1 pvesr[1834]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Storage/RBDPlugin.pm line 13, <DATA> line 755.
Nov 18 20:25:01 pve1 pvesr[1834]: Compilation failed in require at /usr/share/perl5/PVE/Storage.pm line 34, <DATA> line 755.
Nov 18 20:25:01 pve1 pvesr[1834]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Storage.pm line 34, <DATA> line 755.
Nov 18 20:25:01 pve1 pvesr[1834]: Compilation failed in require at /usr/share/perl5/PVE/Replication.pm line 15, <DATA> line 755.
Nov 18 20:25:01 pve1 pvesr[1834]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/Replication.pm line 15, <DATA> line 755.
Nov 18 20:25:01 pve1 pvesr[1834]: Compilation failed in require at /usr/share/perl5/PVE/CLI/pvesr.pm line 16, <DATA> line 755.
Nov 18 20:25:01 pve1 pvesr[1834]: BEGIN failed--compilation aborted at /usr/share/perl5/PVE/CLI/pvesr.pm line 16, <DATA> line 755.
Nov 18 20:25:01 pve1 pvesr[1834]: Compilation failed in require at /usr/bin/pvesr line 6, <DATA> line 755.
Nov 18 20:25:01 pve1 pvesr[1834]: BEGIN failed--compilation aborted at /usr/bin/pvesr line 6, <DATA> line 755.
Nov 18 20:25:01 pve1 systemd[1]: pvesr.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 18 20:25:01 pve1 systemd[1]: pvesr.service: Failed with result 'exit-code'.
Nov 18 20:25:01 pve1 systemd[1]: Failed to start Proxmox VE replication runner.
 
I really recommend you stop working on your server before reading in FULL our docs on https://pve.proxmox.com/pve-docs/ and the upgrade docs.
If you done this, test your new knowledge on a test cluster in your lab.

If you learned the upgrade process, go back to your production systems and continue there.

If all this is not a good way for you, look for an experienced admin for help or purchase - best case here - a PREMIUM subscription subscription package ...

Do not get me wrong, but you cannot manage servers with complexer setups with ceph and all others with this very limited knowledge and ability to read howtos.
 
  • Like
Reactions: Neobin
I really recommend you stop working on your server before reading in FULL our docs on https://pve.proxmox.com/pve-docs/ and the upgrade docs.
If you done this, test your new knowledge on a test cluster in your lab.

If you learned the upgrade process, go back to your production systems and continue there.

If all this is not a good way for you, look for an experienced admin for help or purchase - best case here - a PREMIUM subscription subscription package ...

Do not get me wrong, but you cannot manage servers with complexer setups with ceph and all others with this very limited knowledge and ability to read howtos.
Good recommendation, but too late now . Server is half down.
Sad that I have not enough knowledge and no time to read so much material from link u sent .
I will think about Premium , but for now I need only recover server and make that update. Before I tried to update strongly used instructions https://pve.proxmox.com/wiki/Upgrade_from_6.x_to_7.0#Introduction - Proxmox server worked perfect .
 

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!