Update von Proxmox 6.4.13 auf 7 fehlgeschalgen

Olli.O

New Member
Oct 15, 2021
13
0
1
52
Hi,
nutze seit ca. einem Jahr Proxmox und hatte bis dato auch keine Probleme nun wolle ich auf v.7 updaten.
Bin nach der Anleitung auf wiki vorgegangen, nur nach dem Update stellte ich fest das zwar einige Pakete upgedatet wurden
aber Proxmox immer noch in version 6.4.13 installiert ist.

Also haben ich den Vorgang noch einmal angestoßen und bekomme nun beim "apt dist-upgrade" (Siehe 1.txt)
Wenn ich "pve6to7" ausführe kommt jetzt eine Warnung (Siehe 2.txt)

Bin in der Linuxwelt noch Anfänger und hoffe ihr könnt mir helfen.

Besten Dank im Voraus
Olli
 

Attachments

  • 1.txt
    1.4 KB · Views: 5
  • 2.txt
    6 KB · Views: 2
Hattest du denn die korrekten Repos eingetragen? Wie sieht deine /etc/apt/sources.list aus?
Reboot würde ich jetzt jedenfalls nicht mehr machen, sonst kann es sein, dass da bei dir garnichts mehr läuft.
Wie APT schon sagte wäre ein apt update && apt --fix-broken install vermutlich hilfreich, damit fehlende Abhängigkeiten nachinstalliert werden. Am besten guckst du auch mal bei dir in /var/log on apt da für dein dist-upgrade ein log angelegt hat, damit du siehst, was da genau beim upgrade falschgelaufen ist.
 
Last edited:
Danke für deine schnelle Antwort.
/etc/apt/sources.list (siehe 3.txt)
"apt update && apt --fix-broken install" hat auch nicht verändert

wie rufe ich "/var/log" auf ?
 

Attachments

  • 3.txt
    278 bytes · Views: 6
Deine Repos stimmen auch nicht komplett mit denen im Wiki überein. Zum einen sehe ich da nicht deine PVE Repo. Sofern du nicht in einer anderen Konfig-Datei unter /etc/apt/sources.list.d/ bereits eine Proxmox-Repo eingetragen hast (oder eine PVE Subscription hast) solltest du diese Zeile bei dir in die "/etc/apt/sources.list" einfügen:
Code:
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription

Und dann hast du noch die Zeile "deb http://security.debian.org bullseye-security main" die wohl nicht da sein sollte. Die also besser entfernen.

wie rufe ich "/var/log" auf ?
Mit cd durch die Ordner navigieren. Mit ls -la Ordnerinhalte auflisten lassen. Mit tail -100 dateiname kannst du dir die letzten 100 Zeilen einer Datei ausgeben lassen. Wenn du Dateien editieren willst geht das am leichtesten mit nano dateiname. Mit der Tab-Taste kannst du Pfade und Dateinamen autovervollständigen lassen.
 
Last edited:
Nano ist nur zum Öffnen von Textdateien, nicht zum öffnen von Ordnern. Wenn du wissen willst was im Ordner /var/log ist musst du schon in den ORdner wechseln (cd /var/log) und dir dann mit ls -la den Ordnerinhalt von dem Ordner ausgeben lassen, in welchem du dich gerade befindest. Oder mit ls -la /var/log direkt den Inhalt von /var/log ausgeben lassen von egal wo du dich gerade im Dateisystem befindest.
 
Last edited:
Das kommt zurück wenn ich "apt --fix-broken install" ausführe

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
 
Was genau sagt denn apt update bei dir?
Klingt immer noch nach falschen Repos.
 
Last edited:
Das ist der Inhalt von "/var/log" und wie hift mir das weiter muss ich da jetzt eine Datei öffnen? und wie ?
 

Attachments

  • 4.txt
    6.2 KB · Views: 4
Was genau sagt denn apt update bei dir?
Klingt immer noch nach falschen Repos.
root@pve:~# apt update
Hit:1 http://ftp.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease
Hit:4 http://download.proxmox.com/debian/pve bullseye InRelease
Hit:5 http://download.proxmox.com/debian/ceph-octopus bullseye InRelease
Hit:6 http://download.proxmox.com/debian/pve buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
314 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured mul tiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list.d/pve-community .list:1
W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multi ple times in /etc/apt/sources.list:3 and /etc/apt/sources.list.d/pve-community.l ist:1
W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configure d multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list.d/pve-comm unity.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured m ultiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list.d/pve-communi ty.list:1
W: Target Packages (pve-no-subscription/binary-amd64/Packages) is configured mul tiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list.d/pve-community .list:1
W: Target Packages (pve-no-subscription/binary-all/Packages) is configured multi ple times in /etc/apt/sources.list:3 and /etc/apt/sources.list.d/pve-community.l ist:1
W: Target Translations (pve-no-subscription/i18n/Translation-en_US) is configure d multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list.d/pve-comm unity.list:1
W: Target Translations (pve-no-subscription/i18n/Translation-en) is configured m ultiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list.d/pve-communi ty.list:1
root@pve:~#
 
Das ist der Inhalt von "/var/log" und wie hift mir das weiter muss ich da jetzt eine Datei öffnen? und wie ?
drwxr-xr-x 2 root root 4096 Oct 15 22:20 apt
Dann weitergucken was für Log-Dateien im Ordner "/var/log/apt" sind. Dateien kannst du dir wie gesagt mit nano angucken.

Du hast da immer noch 2 Buster-Repos drin. Die müssen raus bzw durch die passenden Bullseye-Repos ersetzt werden, sonst bringst du alles durcheinander.

Wenn du schon alles aus der "/etc/apt/sources.list" Datei korrigiert hast muss da noch irgendwo was an Konfig-Dateien im Ordner "/etc/apt/sources.list.d" liegen.
 
Last edited:
Guten Morgen,
in der "/var/log/apt" sind folgende Dateien (Bild 6)
und en Ordenr "/etc/apt/sources.list.d" habe ich garnicht (siehe Bild 5)
 

Attachments

  • 5.jpg
    5.jpg
    58.1 KB · Views: 6
  • 6.jpg
    6.jpg
    82.3 KB · Views: 6
Dann musst du mal die Log-Dateien durchgucken. In /var/log/apt/term.log oder /var/log/apt/histroy.log müsste dann ja protokoliert sein, was APT da genau beim ersten Upgrade-Versuch gemacht hat.

Wegen den Repos musst du wie gesagt nicht nur in der /etc/apt/sources.list sondern auch in allen Dateien im Ordner /etc/apt/sources.list.d gucken.
 
in "/etc/apt/sources.list.d" hatten sich noch alte Einträge versteckt, habe ich aktualisiert.
Aber immer noch keine Veränderung beim Update verhalten.
Im Anhang mal meine term.log und history.log
 

Attachments

  • term.log
    156.2 KB · Views: 3
  • history.log
    30.5 KB · Views: 3
root@pve:~# apt 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 ncal python3-ceph-argparse python3-cephfs python3-rados
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
alsa-topology-conf alsa-ucm-conf bind9-dnsutils bind9-libs libbpf0 libdns-export1110 libdns1110 libevent-2.1-7 libglusterd0
libinih1 libip4tc2 libip6tc2 libipset13 libisc-export1105 libisc1105 liblinear4 libmaxminddb0 libmd0 libopeniscsiusr
libperl4-corelibs-perl libprocps8 libprotobuf23 libuv1 logsave lua-lpeg os-prober pci.ids python3-protobuf systemd-timesyncd
The following packages have been kept back:
libpython2-stdlib libpython2.7 libpython2.7-minimal libpython2.7-stdlib python-six python2 python2-minimal python2.7
python2.7-minimal python3-chardet python3-six
The following packages will be upgraded:
apparmor apt apt-listchanges apt-utils attr base-passwd bash-completion bc bind9-host bridge-utils bsd-mailx bsdutils btrfs-progs
busybox ceph-fuse cifs-utils cpio criu cron curl dash debconf debconf-i18n debian-archive-keyring debian-faq diffutils dmeventd
dmidecode dnsutils doc-debian dosfstools dtach e2fsprogs efibootmgr eject faketime fdutils file findutils fonts-font-awesome
fonts-glyphicons-halflings gdbm-l10n gdisk genisoimage gettext-base glusterfs-client glusterfs-common grep groff-base grub-common
grub-efi-amd64-bin grub-efi-ia32-bin grub-pc grub-pc-bin grub2-common gzip hdparm hostname idn ifenslave init initramfs-tools
initramfs-tools-core iproute2 ipset iptables iputils-ping isc-dhcp-client isc-dhcp-common iso-codes keyutils klibc-utils kmod
krb5-locales less libacl1 libacl1-dev libaio1 libanyevent-http-perl libappconfig-perl libarchive13 libasound2 libasound2-data
libasyncns0 libattr1 libattr1-dev libavahi-client3 libavahi-common-data libavahi-common3 libbabeltrace1 libbind9-161 libblas3
libbsd0 libcaca0 libcap2 libcap2-bin libcrypt-random-seed-perl libcryptsetup12 libcups2 libcurl4 libdebconfclient0
libdevmapper-event1.02.1 libdevmapper1.02.1 libdigest-hmac-perl libdw1 libedit2 libefiboot1 libefivar1 libelf1 libestr0 libev4
libext2fs2 libfaketime libfastjson4 libfile-chdir-perl libflac8 libfstrm0 libfuse3-3 libgeoip1 libgfapi0 libgfchangelog0
libgfortran5 libgfrpc0 libgfxdr0 libglusterfs-dev libglusterfs0 libgoogle-perftools4 libgssrpc4 libgstreamer-plugins-base1.0-0
libgstreamer1.0-0 libibverbs1 libice6 libidn11 libio-multiplex-perl libiptc0 libirs161 libisccc161 libisccfg163 libiscsi7
libisns0 libjansson4 libjemalloc2 libjpeg62-turbo libjs-bootstrap libjs-jquery libjs-sphinxdoc libjs-underscore libklibc libkmod2
libkrad0 libldap-common liblmdb0 liblockfile-bin liblockfile1 liblognorm5 liblua5.3-0 liblvm2cmd2.03 liblwres161 libmagic-mgc
libmagic1 libmath-random-isaac-perl libmnl0 libnet-dns-perl libnetfilter-conntrack3 libnetfilter-log1 libnewt0.52 libnfsidmap2
libnftnl11 libnss-systemd libogg0 libopus0 liborc-0.4-0 libpam-modules libpam-modules-bin libpam-runtime libpam-systemd
libpcap0.8 libpci3 libpipeline1 libpopt0 libprotobuf-c1 libproxmox-backup-qemu0 libpulse0 libqrencode4 libquadmath0 librdmacm1
libsdl1.2debian libseccomp2 libsemanage-common libsemanage1 libsepol1 libslang2 libsnappy1v5 libsndfile1 libspice-server1 libss2
libssl1.1 libsystemd0 libtcmalloc-minimal4 libtext-wrapi18n-perl libuchardet0 libudev1 libunwind8 libusb-1.0-0 libusbredirparser1
libverto-libev1 libverto1 libvorbis0a libvorbisenc2 libwrap0 libxi6 libxtables12 libzfs4linux linux-libc-dev logrotate lsof lvm2
lxc-pve lxcfs lynx lynx-common lzop man-db manpages mawk memtest86+ nano ncurses-base ncurses-bin ncurses-term netcat-traditional
nfs-common nmap nmap-common numactl open-iscsi passwd patch pciutils postfix procps proxmox-backup-client
proxmox-backup-file-restore psmisc pve-lxc-syscalld pve-xtermjs python-pkg-resources python3-certifi python3-debconf
python3-debian python3-debianbts python3-httplib2 python3-idna python3-jwt python3-pkg-resources python3-prettytable
python3-pysimplesoap python3-reportbug python3-requests python3-urllib3 qrencode reportbug rrdcached rsync rsyslog socat ssh
ssl-cert strace systemd systemd-sysv sysvinit-utils tasksel tasksel-data tcpdump telnet thin-provisioning-tools time traceroute
udev uidmap usb.ids usbutils vim-common vim-tiny vncterm wamerican wget whiptail x11-common xfsprogs xxd xz-utils zstd
294 upgraded, 29 newly installed, 0 to remove and 11 not upgraded.
Need to get 0 B/132 MB of archives.
After this operation, 59.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
/bin/sh: 1: /usr/share/proxmox-ve/pve-apt-hook: Permission denied
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (126)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook
 
Ich meinte schon "apt update" und nicht "apt upgrade". "apt upgrade" sollte man mit PVE nie ausführen, weil das einem das PVE zerschießen kann. Wenn upgrade dann immer "apt full-upgrade" oder "apt dist-upgrade" mit "apt update" vorweg.
 
Ich vermute durch das Editieren von "pve-apt-hook" hast du die Schutzfunktion von PVE ausgehebelt, dass dir APT dein Proxmox deinstallieren kann. Damit hat dir APT dann wohl Proxmox deinstalliert und jetzt hast du ein Debian ohne Proxmox VE. Daher auch kein PVE WebUI mehr.
 

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!