OpenVZ Forum - RDF feed
type: channel
items: How to exclude kernel updates in migrated VZ containers?
items: Re: How to exclude kernel updates in migrated VZ containers?

How to exclude kernel updates in migrated VZ containers?
type: item
description: Hi guys, I have running a few Debian machines migrated to VZ containers (none native VZ container installations). Now when trying to upgrade the existing packages by using apt-get upgrade, it's not possible because of the original installed kernel packages. For an example, one of the Debian machine: apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: linux-image-3.2.0-4-amd64 The following packages will be upgraded: bind9-host dnsutils ghostscript libbind9-80 libdns88 libexpat1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgs9 libgs9-common libisc84 libisccc80 libisccfg82 liblwres80 libnss3 linux-libc-dev tzdata 17 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. Need to get 0 B/8,183 kB of archives. After this operation, 106 MB disk space will be freed. Do you want to continue [Y/n]? Y Reading changelogs... Done Preconfiguring packages ... (Reading database ... 35022 files and directories currently installed.) Removing linux-image-3.2.0-4-amd64 ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-4-amd64 /boot/vmlinuz-3.2.0-4-amd64 update-initramfs: Deleting /boot/initrd.img-3.2.0-4-amd64 run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-4-amd64 /boot/vmlinuz-3.2.0-4-amd64 /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?). run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 1 Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-3.2.0-4-amd64.postrm line 212. dpkg: error processing linux-image-3.2.0-4-amd64 (--remove): subprocess installed post-removal script returned error exit status 1 Errors were encountered while processing: linux-image-3.2.0-4-amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) dpkg is showing the following status regarding the appropriate packages: dpkg -l linux* Desired=Unk…
creator: snow
date: 2015-08-28T07:14:04-00:00

Re: How to exclude kernel updates in migrated VZ containers?
type: item
description: I would recommend uninstall linux-image, linux-base packages. it maybe more dependencies but using common sense you can remove dependencies as well.
creator: Paparaciz
date: 2015-08-29T16:18:29-00:00