troble with update 7 to 8

kambiumdt

New Member
Jun 27, 2023
9
1
3
When i tried hit:
apt dist-upgrade

i get:

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

any suggestions??
 
  • Like
Reactions: MozOz
Check you probably messed up the repo config files. Check your /etc/apt/sources.list as well as all files in the folder /etc/apt/sources.list.d/ and see if there is still a line for a non-bookworm repo like bullseye.
And in case you installed proxmox-ve on top of Debian you might want to remove the Debian kernel.
 
repo is add.

still the same.

current version of PROXMOX is 7.4.3

how can i check how is install proxmox? :)

current version is
Check you probably messed up the repo config files. Check your /etc/apt/sources.list as well as all files in the folder /etc/apt/sources.list.d/ and see if there is still a line for a non-bookworm repo like bullseye.
And in case you installed proxmox-ve on top of Debian you might want to remove the Debian kernel.
 
please post the full output of "apt update" and the contents of "/etc/apt/sources.list" and all files in "/etc/apt/sources.list.d"
 
apt-update:
root@serwer:~# apt update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Get:3 http://ftp.debian.org/debian bullseye-updates InRelease [44.1 kB]
Hit:4 http://download.proxmox.com/debian/pve bullseye InRelease
Hit:5 http://download.proxmox.com/debian/ceph-pacific bullseye InRelease
Fetched 44.1 kB in 1s (87.1 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
79 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@serwer:~#

/etc/apt/sources.list


deb http://ftp.debian.org/debian bullseye main contrib

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

deb http://security.debian.org/debian-security bullseye-security main contrib

deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription
in sources.list.d

i have:

1687959264011.png


1687959281611.png
1687959299053.png


1687959317162.png

1687959338073.png
1687959354161.png

1687959367729.png


1687959381217.png
 
you need to switch over all repositories to bookworm, like the upgrade guide says!
 
i do this, but still the same error:


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

so i roll back the change in sources.
 
please show the output and contents of files when you attempt the upgrade..
 
i do this; apt dist-upgrade

then:

157 upgraded, 288 newly installed, 26 to remove and 0 not upgraded.
Need to get 0 B/130 MB of archives.
After this operation, 194 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
root@serwer:~#
 
Please post all outputs not just a part. Without all information its impossible to assist.
 
all outputs:

root@serwer:~# 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:
pve-kernel-helper
Use 'apt autoremove' to remove it.
The following packages will be REMOVED:
libc++1-11 libc++abi1-11 libgnutlsxx28 libnfsidmap2 libnode72 libproxmox-acme-perl libproxmox-rs-perl libpve-access-control
libpve-cluster-api-perl libpve-cluster-perl libpve-common-perl libpve-guest-common-perl libpve-http-server-perl libpve-rs-perl
libpve-storage-perl libpve-u2f-server-perl librados2-perl libsemanage1 lxc-pve proxmox-ve pve-cluster pve-container
pve-firewall pve-ha-manager pve-manager qemu-server
The following NEW packages will be installed:
eslint handlebars libavfilter8 libavformat59 libc++1-14 libc++abi1-14 libdouble-conversion3 libevent-core-2.1-7 libjs-async
libjs-prettify libjs-regenerate libjs-source-map libjs-sprintf-js libjs-util libldap-2.5-0 liblttng-ust-common1
liblttng-ust-ctl5 liblttng-ust1 libmbedcrypto7 libnfsidmap1 libnode108 libpcre2-16-0 libperl5.36 libplacebo208 libpostproc56
libprotobuf32 libqt5core5a libqt5dbus5 libqt5network5 librist4 libsemanage2 libsepol2 libsrt1.5-gnutls libsubid4 libswscale6
libthrift-0.17.0 libunwind-14 libzimg2 node-acorn node-ajv-keywords node-ampproject-remapping node-ansi-escapes node-anymatch
node-argparse node-arrify node-assert node-async node-async-each node-auto-bind node-babel-helper-define-polyfill-provider
node-babel-plugin-add-module-exports node-babel-plugin-lodash node-babel-plugin-polyfill-corejs2
node-babel-plugin-polyfill-corejs3 node-babel-plugin-polyfill-regenerator node-babel7 node-babel7-runtime node-base
node-base64-js node-binary-extensions node-braces node-browserslist node-busboy node-cache-base node-camelcase
node-caniuse-lite node-chokidar node-chrome-trace-event node-ci-info node-cjs-module-lexer node-cli-boxes node-cli-cursor
node-cli-table node-cli-truncate node-cliui node-clone-deep node-collection-visit node-commander node-commondir
node-concat-stream node-convert-source-map node-core-js node-core-js-compat node-core-js-pure node-coveralls node-css-loader
node-css-selector-tokenizer node-data-uri-to-buffer node-debbundle-es-to-primitive node-decamelize node-decompress-response
node-deep-equal node-deep-is node-define-properties node-define-property node-defined node-del node-diff node-doctrine
node-electron-to-chromium node-end-of-stream node-enhanced-resolve node-errno node-error-ex node-es-abstract
node-es-module-lexer node-es6-error node-escodegen node-eslint-scope node-eslint-utils node-eslint-visitor-keys node-espree
node-esprima node-esquery node-esrecurse node-estraverse node-esutils node-fast-levenshtein node-fetch node-file-entry-cache
node-fill-range node-find-cache-dir node-find-up node-flat-cache node-flatted node-for-in node-for-own node-foreground-child
node-fs-readdir-recursive node-functional-red-black-tree node-get-caller-file node-get-stream node-get-value node-glob-parent
node-globals node-globby node-got node-growl node-has-value node-has-values node-icss-utils node-ieee754 node-ignore
node-interpret node-is-arrayish node-is-binary-path node-is-buffer node-is-descriptor node-is-extendable node-is-extglob
node-is-glob node-is-number node-is-path-cwd node-is-path-inside node-is-plain-obj node-is-plain-object node-is-primitive
node-is-stream node-is-windows node-isobject node-istanbul node-jest-debbundle node-jest-worker node-js-tokens node-js-yaml
node-jsesc node-json-buffer node-json5 node-kind-of node-lcov-parse node-levn node-loader-runner node-locate-path node-lodash
node-lodash-packages node-log-driver node-lowercase-keys node-make-dir node-map-visit node-memfs node-memory-fs
node-merge-stream node-micromatch node-mimic-response node-minimist node-mixin-deep node-n3 node-negotiator node-neo-async
node-normalize-path node-npm-run-path node-object-inspect node-object-visit node-optimist node-optionator node-p-cancelable
node-p-limit node-p-locate node-parse-json node-pascalcase node-path-dirname node-path-exists node-path-is-inside
node-path-type node-picocolors node-pify node-pkg-dir node-postcss node-postcss-modules-extract-imports
node-postcss-modules-values node-postcss-value-parser node-prelude-ls node-progress node-prr node-pump node-quick-lru
node-randombytes node-read-pkg node-readdirp node-rechoir node-regenerate node-regenerate-unicode-properties
node-regenerator-runtime node-regenerator-transform node-regexpp node-regexpu-core node-regjsgen node-regjsparser
node-repeat-string node-require-directory node-resolve-cwd node-restore-cursor node-resumer node-schema-utils
node-sellside-emitter node-serialize-javascript node-set-immediate-shim node-set-value node-shebang-command node-shebang-regex
node-shell-quote node-source-list-map node-source-map node-source-map-support node-sprintf-js node-stack-utils node-strip-bom
node-strip-json-comments node-tap node-tap-mocha-reporter node-tap-parser node-tapable node-tape node-terser
node-to-fast-properties node-to-regex-range node-tslib node-type-check node-typedarray node-undici
node-unicode-canonical-property-names-ecmascript node-unicode-match-property-ecmascript
node-unicode-match-property-value-ecmascript node-unicode-property-aliases-ecmascript node-union-value node-unset-value
node-util node-v8-compile-cache node-v8flags node-watchpack node-webassemblyjs node-webpack-sources node-widest-line
node-wordwrap node-wrap-ansi node-write node-ws node-xtend node-y18n node-yaml node-yargs node-yargs-parser perl-modules-5.36
python3.11 python3.11-minimal qttranslations5-l10n terser webpack
The following packages will be upgraded:
apt apt-utils ceph-common criu curl dirmngr gir1.2-glib-2.0 glib-networking glib-networking-services gnupg gnupg-l10n
gnupg-utils gnupg2 gnutls-bin gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv gstreamer1.0-libav
libalgorithm-diff-xs-perl libanyevent-perl libapt-pkg-perl libapt-pkg6.0 libasync-interrupt-perl libauthen-pam-perl libc++1
libcephfs2 libclone-perl libcommon-sense-perl libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl
libcrypt-openssl-rsa-perl libcrypt-ssleay-perl libcups2 libcurl3-gnutls libcurl4 libev-perl libfile-fcntllock-perl
libfilesys-df-perl libgirepository-1.0-1 libgnutls-dane0 libgnutls30 libgssapi-perl libguard-perl libhtml-parser-perl
libhttp-message-perl libintl-perl libintl-xs-perl libio-pty-perl libjson-xs-perl libldb2 liblinux-inotify2-perl
liblocale-gettext-perl libmath-random-isaac-xs-perl libnet-dbus-perl libnet-dns-sec-perl libnet-libidn-perl libnet-ssleay-perl
libnetaddr-ip-perl libnode-dev libposix-strptime-perl libproc-processtable-perl libpython3-stdlib librados2 libradosstriper1
librbd1 librgw2 librrds-perl libsemanage-common libsmbclient libsnmp40 libsocket6-perl libtalloc2 libtdb1 libtemplate-perl
libterm-readkey-perl libterm-readline-gnu-perl libtevent0 libtext-charwidth-perl libtext-iconv-perl libuuid-perl libvte-2.91-0
libvte-2.91-common libwbclient0 libxml-libxml-perl libxml-parser-perl libyaml-libyaml-perl nfs-common node-ajv node-archy
node-assert-plus node-bcrypt-pbkdf node-cacache node-chalk node-getpass node-gyp node-hosted-git-info node-jsonstream
node-lru-cache node-mime node-mkdirp node-ms node-nopt node-npm-package-arg node-object-assign node-opener node-puka
node-punycode node-qs node-rimraf node-semver node-sshpk node-strip-ansi node-tweetnacl node-verror node-which nodejs npm
open-iscsi openipmi passwd perl perl-base perl-openssl-defaults python3 python3-apt python3-ceph-argparse python3-ceph-common
python3-cephfs python3-cffi-backend python3-dbus python3-distutils python3-gi python3-gpg python3-ldb python3-lib2to3
python3-minimal python3-protobuf python3-pycurl python3-pyrsistent python3-rados python3-rbd python3-rgw python3-samba
python3-talloc python3-tdb python3-yaml samba-common samba-common-bin samba-dsdb-modules samba-libs smbclient uidmap wget
157 upgraded, 288 newly installed, 26 to remove and 0 not upgraded.
Need to get 0 B/130 MB of archives.
After this operation, 194 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
 
Thanks for your patiens :)


now the update-dist run, but its stuck on:

Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount namespace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libglib2.0-0:amd64 (2.74.6-2) ...
Processing triggers for proxmox-backup-file-restore (3.0.1-1) ...
Updating file-restore initramfs...
12101 blocks
Processing triggers for pve-ha-manager (4.0.2) ...
Scanning processes...
Scanning candidates...
Scanning processor microcode...
Scanning linux images...

Failed to check for processor microcode upgrades.

Restarting services...
systemctl restart lxc-monitord.service mdmonitor.service packagekit.service pve-container@102.service pvedaemon.service pveproxy.service watchdog-mux.service webmin.service


in task menu i see:



client connection: 127.0.0.1:46278
TASK ERROR: command '/usr/bin/termproxy 5900 --path /nodes/serwer --perm Sys.Console -- /bin/login -f root' failed: received interrupt





can i safely restart the server? its still working fine :)
 
you should probably either disable needrestart, or tune its configuration so that services that shouldn't be automatically restarted (most of the PVE ones handle reloading on upgrades themselves in a non-interrupting fashion, some of them must not ever be restarted) are not..