How to exclude kernel updates in migrated VZ containers? [message #52174] |
Fri, 28 August 2015 07:14 |
snow
Messages: 1 Registered: August 2015
|
Junior Member |
|
|
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=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig -aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==================================-===================== =-======================-=================================== =======================================
rc linux-base 3.5 all Linux image base package
un linux-doc-3.2 <none> (no description available)
un linux-image <none> (no description available)
un linux-image-2.6-amd64 <none> (no description available)
un linux-image-2.6-openvz-amd64 <none> (no description available)
un linux-image-2.6-vserver-amd64 <none> (no description available)
un linux-image-2.6-xen-amd64 <none> (no description available)
rH linux-image-3.2.0-4-amd64 3.2.68-1+deb7u2 amd64 Linux 3.2 for 64-bit PCs
un linux-initramfs-tool <none> (no description available)
un linux-kernel-headers <none> (no description available)
un linux-kernel-log-daemon <none> (no description available)
ii linux-libc-dev:amd64 3.2.68-1+deb7u2 amd64 Linux support headers for userspace development
un linux-modules-3.2.0-4-amd64 <none> (no description available)
un linux32 <none> (no description available)
The following kernel version will be used by the VZ container:
uname -a
2.6.32-042stab108.8 #1 SMP Wed Jul 22 17:23:23 MSK 2015 x86_64 GNU/Linux
To exclude the kernel package within the upgrade process I set the following package on hold:
apt-mark hold linux-image-3.2.0-4-amd64
linux-image-3.2.0-4-amd64 set on hold.
apt-mark showhold
linux-image-3.2.0-4-amd64
Now I get another error when trying to run apt-get upgrade:
apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-image-3.2.0-4-amd64 : Depends: linux-base (>= 3~) but it is not installed
Recommends: firmware-linux-free (>= 3~) but it is not installed
E: Unmet dependencies. Try using -f.
Therefore I would ask you how to proceed to get the upgrade working without upgrading the installed kernel packages?
Thanks,
Philipp
|
|
|