[SOLVED] Nach kernel update kann ich nicht die alten Kernels löschen

mucsav1977

Member
Jan 25, 2022
55
1
13
46
Hallo Leute,

ich habe jetzt über das Rescue Script bei Hetzner Debian11 mit ext4 im raid1 installiert.
Danach habe ich proxmox drauf gepackt.

Ich wollte jetzt die alten kernels löschen.
Code:
root@pve ~ # dpkg -l |grep pve-kerne
ii  pve-firmware                         3.5-6                          all          Binary firmware code for the pve-kernel
ii  pve-kernel-5.15                      7.2-14                         all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.15.74-1-pve             5.15.74-1                      amd64        Proxmox Kernel Image
ii  pve-kernel-5.19                      7.2-14                         all          Latest Proxmox VE Kernel Image
ii  pve-kernel-5.19.17-1-pve             5.19.17-1                      amd64        Proxmox Kernel Image
ii  pve-kernel-helper                    7.2-14                         all          Function for various kernel maintenance tasks.

Und wenn ich beispielsweise:
Code:
root@pve ~ # apt purge pve-kernel-5.15.74-1-pve pve-kernel-5.15
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
  bridge-utils ceph-common ceph-fuse cifs-utils corosync criu cstream dtach ebtables faketime fontconfig fontconfig-config fonts-dejavu-core fonts-font-awesome fonts-glyphicons-halflings glusterfs-client glusterfs-common hdparm
  ifupdown2 ipset libanyevent-http-perl libanyevent-perl libappconfig-perl libarchive13 libasound2 libasound2-data libasyncns0 libauthen-pam-perl libavahi-client3 libavahi-common-data libavahi-common3 libbabeltrace1
  libboost-context1.74.0 libboost-coroutine1.74.0 libboost-program-options1.74.0 libboost-thread1.74.0 libcairo2 libcephfs2 libcfg7 libcmap4 libcorosync-common4 libcpg4 libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl
  libcrypt-openssl-rsa-perl libcups2 libdatrie1 libdbi1 libdevel-cycle-perl libdrm-common libdrm2 libdw1 libepoxy0 libfaketime libfdt1 libfile-chdir-perl libfile-readbackwards-perl libfilesys-df-perl libflac8 libfontconfig1 libfuse3-3
  libgbm1 libgfapi0 libgfchangelog0 libgfrpc0 libgfxdr0 libglusterd0 libglusterfs0 libgnutlsxx28 libgoogle-perftools4 libgraphite2-3 libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libharfbuzz0b libibverbs1 libio-multiplex-perl
  libio-stringy-perl libipset13 libiscsi7 libjemalloc2 libjpeg62-turbo libjs-bootstrap libjs-extjs libjs-jquery libjs-qrcodejs libjson-glib-1.0-0 libjson-glib-1.0-common libknet1 libldb2 libleveldb1d liblinux-inotify2-perl
  libmime-base32-perl libnet-dbus-perl libnet-dns-perl libnet-ip-perl libnet1 libnetaddr-ip-perl libnetfilter-log1 libnl-route-3-200 libnozzle1 libnspr4 libnss3 libnuma1 liboath0 libogg0 libopus0 liborc-0.4-0 libpango-1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0 libpixman-1-0 libposix-strptime-perl libprotobuf23 libproxmox-acme-perl libproxmox-acme-plugins libproxmox-backup-qemu0 libproxmox-rs-perl libpulse0 libpve-access-control libpve-apiclient-perl
  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 libpython3.9 libqb100 libqrencode4 libquorum5 librabbitmq4
  librados2 librados2-perl libradosstriper1 librbd1 librdmacm1 librrd8 librrds-perl libsmbclient libsnappy1v5 libsndfile1 libspice-server1 libstatgrab10 libstring-shellquote-perl libtalloc2 libtcmalloc-minimal4 libtdb1 libtemplate-perl
  libtevent0 libthai-data libthai0 libtpms0 libu2f-server0 libunwind8 liburcu6 liburing1 libusb-1.0-0 libusbredirparser1 libuuid-perl libvirglrenderer1 libvorbis0a libvorbisenc2 libvotequorum8 libwayland-server0 libwbclient0 libx11-6
  libx11-data libxau6 libxcb-render0 libxcb-shm0 libxcb1 libxdmcp6 libxext6 libxml-libxml-perl libxml-twig-perl libxrender1 libxslt1.1 libyaml-0-2 libyaml-libyaml-perl lxc-pve lxcfs lzop novnc-pve proxmox-archive-keyring
  proxmox-backup-client proxmox-backup-file-restore proxmox-mail-forward proxmox-mini-journalreader proxmox-websocket-tunnel proxmox-widget-toolkit pve-cluster pve-container pve-docs pve-edk2-firmware pve-firewall pve-ha-manager
  pve-i18n pve-kernel-helper pve-lxc-syscalld pve-manager pve-qemu-kvm pve-xtermjs python3-ceph-argparse python3-cephfs python3-jwt python3-ldb python3-prettytable python3-protobuf python3-rados python3-rbd python3-talloc qemu-server
  qrencode rrdcached samba-common samba-libs smartmontools smbclient socat spiceterm sqlite3 swtpm swtpm-libs swtpm-tools uidmap vncterm xsltproc zstd
Verwenden Sie »apt autoremove«, um sie zu entfernen.
Die folgenden Pakete werden ENTFERNT:
  proxmox-ve* pve-kernel-5.15* pve-kernel-5.15.74-1-pve*
0 aktualisiert, 0 neu installiert, 3 zu entfernen und 0 nicht aktualisiert.
Nach dieser Operation werden 400 MB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/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: Unterprozess /usr/share/proxmox-ve/pve-apt-hook hat Fehlercode zurückgegeben (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook

Ich kann die beiden alten kernels nicht löschen.

Und hier kommt das raus:
Code:
root@pve ~ # update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.19.17-1-pve
Running hook script 'zz-proxmox-boot'..
Re-executing '/etc/kernel/postinst.d/zz-proxmox-boot' in new private mount names                                                                                                                                                             pace..
No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync.
root@pve ~ # update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.19.17-1-pve
Found initrd image: /boot/initrd.img-5.19.17-1-pve
Found linux image: /boot/vmlinuz-5.15.74-1-pve
Found initrd image: /boot/initrd.img-5.15.74-1-pve
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done

Wäre super wenn mir jemand sagen wie ich die alten Kernels löschen kann?

Danke
 
hi,

Okay, ich kann den "pve-kernel-5.15" nicht entfernen.
Und warum kann ich den "pve-kernel-5.15.74-1-pve" nicht entfernen?
Danke
 
pve-kernel-5.15 ist nur das Meta-Paket, welches dann den eigentlichen Kernel, in dem Fall: pve-kernel-5.15.74-1-pve, rein holt/installiert.

Alles ein Thema von: Paket-Abhängigkeiten.
 
  • Like
Reactions: mucsav1977
Alles ein Thema von: Paket-Abhängigkeiten.

Ich frage mal hier halt immer noch, was gegen ein

Code:
Depends: ... , pve-kernel-5.15 | pve-kernel-5.19, ...

spricht. Dann hätte man eine Abhängigkeit auf beides und wurde den alten Kernel los.

Grüsse
Bernd
 

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!