Bug: Entfernung von proxmox-ve nach Systemaktualisierung

Gerald Rathjen

Active Member
Aug 9, 2017
11
0
41
53
Hallo alle zusammen,
ich setze Proxmox in Version 5.1-42 VE (Kernel 4.13.13-4-pve) ein. Gestern wollte ich mit

apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get clean

Proxmox aktualisieren. Die nachfolgende Ausgabe würde aber die Pakete proxmox-ve und pve-firmware sowie sämtliche Pakete rund um das Proxmox-System entfernen:
Code:
root@Debian-90-stretch-64-minimal ~ # apt-get update && apt-get upgrade && apt-get dist-upgrade && apt-get clean
Ign:1 http://mirror.hetzner.de/debian/packages stretch InRelease
Hit:2 http://download.proxmox.com/debian stretch InRelease                                             
Hit:3 http://mirror.hetzner.de/debian/security stretch/updates InRelease                               
Hit:4 http://mirror.hetzner.de/debian/packages stretch-updates InRelease                               
Hit:5 http://mirror.hetzner.de/debian/packages stretch Release                                         
Hit:6 http://security.debian.org/debian-security stretch/updates InRelease                             
Ign:7 http://ftp.de.debian.org/debian stretch InRelease                  
Hit:8 http://ftp.de.debian.org/debian stretch-updates InRelease
Hit:9 http://ftp.de.debian.org/debian stretch Release
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-image-amd64
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
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:
  apt-transport-https bridge-utils ceph-common corosync criu cstream dtach faketime fontconfig
  fontconfig-config fonts-dejavu-core fonts-font-awesome glusterfs-client glusterfs-common hdparm
  ifenslave ipset libacl1-dev libanyevent-http-perl libanyevent-perl libappconfig-perl libapt-pkg-perl
  libasound2 libasound2-data libasync-interrupt-perl libasyncns0 libattr1-dev libauthen-pam-perl
  libbabeltrace-ctf1 libbabeltrace1 libboost-program-options1.62.0 libboost-random1.62.0
  libboost-regex1.62.0 libboost-thread1.62.0 libc-dev-bin libc6-dev libcaca0 libcairo2 libcephfs1
  libcfg6 libclone-perl libcmap4 libcorosync-common4 libcpg4 libcrypt-openssl-bignum-perl
  libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libdatrie1 libdbi1 libdevel-cycle-perl libdw1
  libev-perl libfaketime libfcgi-bin libfcgi0ldbl libfile-chdir-perl libfile-readbackwards-perl
  libfile-sync-perl libfilesys-df-perl libflac8 libfontconfig1 libgnutlsxx28 libgraphite2-3
  libguard-perl libharfbuzz0b libibverbs1 libice6 libintl-perl libintl-xs-perl libio-multiplex-perl
  libio-stringy-perl libipset3 libiscsi7 libjemalloc1 libjpeg62-turbo libjs-extjs
  liblinux-inotify2-perl liblockfile-simple-perl liblog-agent-perl libmime-base32-perl
  libnet-dbus-perl libnet-dns-perl libnet-ip-perl libnet1 libnetfilter-log1 libnl-3-200
  libnl-route-3-200 libnspr4 libnss3 libogg0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0
  libpixman-1-0 libprotobuf-c1 libprotobuf10 libpulse0 libpve-access-control libpve-common-perl
  libpve-guest-common-perl libpve-http-server-perl libpve-storage-perl libqb0 libquorum5 librados2
  librados2-perl libradosstriper1 librbd1 librdmacm1 librgw2 librrd8 librrds-perl libsdl1.2debian
  libsm6 libsnappy1v5 libsndfile1 libstatgrab10 libstring-shellquote-perl libtemplate-perl
  libthai-data libthai0 libtie-ixhash-perl libtotem-pg5 liburcu4 libusbredirparser1 libuuid-perl
  libvorbis0a libvorbisenc2 libvotequorum8 libx11-6 libx11-data libx11-xcb1 libxau6 libxcb-render0
  libxcb-shm0 libxcb1 libxdmcp6 libxext6 libxi6 libxml-libxml-perl libxml-twig-perl
  libxml-xpathengine-perl libxrender1 libxtst6 linux-libc-dev lxc-pve lxcfs lzop manpages-dev
  netcat-traditional novnc-pve numactl pve-cluster pve-container pve-docs pve-firewall pve-ha-manager
  pve-libspice-server1 pve-manager pve-qemu-kvm pve-xtermjs python-cephfs python-cffi-backend
  python-cryptography python-enum34 python-idna python-ipaddr python-ipaddress python-openssl
  python-protobuf python-pyasn1 python-rados python-rbd python-requests python-urllib3 qemu-server
  rrdcached smartmontools socat spiceterm sqlite3 uidmap vncterm x11-common xsltproc
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  proxmox-ve pve-firmware
The following NEW packages will be installed:
  firmware-linux-free linux-image-4.9.0-5-amd64
The following packages will be upgraded:
  linux-image-amd64
1 upgraded, 2 newly installed, 2 to remove and 0 not upgraded.
Need to get 38.8 MB of archives.
After this operation, 53.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] n

Ich benutze in der Datei /etc/apt/source.list folgende Repositories (vgl. https://pve.proxmox.com/wiki/Package_Repositories):
Code:
deb http://ftp.debian.org/debian stretch main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
# security updates
deb http://security.debian.org stretch/updates main contrib

Die Debian-Repositories zu entfernen, halte ich aufgrund fehlender Programminstallationen und/oder Aktualisierungen für wenig sinnvoll :-)

Danke für jegliche Hinweise und Tipps.

LG aus Bonn
-- Gerald
 
bitte nie apt-get upgrade verwenden, nur apt-get dist-upgrade
 
firmware-linux-free linux-image-4.9.0-5-amd64
offensichtlich ist noch ein debian kernel installiert, der eine abhängigkeit auf 'firmware-linux-free' hat was mit unserem pve-firmware in konflikt steht

bitte den debian kernel entfernen mit apt-get remove
 
Danke, Dominik. Du hast recht, ich musste mit apt remove linux-image-amd64 den Debian-Kernel entfernen. Als Weiteres habe ich die alten überflüssigen Kernel mit

dpkg -l 'linux-[ihs]*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\([-0-9]*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | tee zu_entfernende_Kernel

ermittelt und mit

cat zu_entfernende_Kernel | xargs sudo apt-get -y purge

entfernt. Es waren die Kernel linux-image-4.9.0-3-amd64 und linux-image-4.9.0-4-amd64.

Jetzt läuft es wieder rund :-)
 
Wenn das Problem für dich behoben ist, setzte deine Thread doch bitte auf gelöst. Danke.