Upgrading a Debian-based container to a newer OS version using EZ templates fails with the following error message:
# vzpkg upgrade 888 Reading state information... 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Building dependency tree... Reading state information... Package wide-dhcpv6-client is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'wide-dhcpv6-client' has no installation candidate Error: /usr/bin/apt-get failed, exitcode=100
wide-dhcpv6-clientis removed in the container:
# dpkg -l wide-dhcpv6-client 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 Description +++-=====================-====================-===================================================== rc wide-dhcpv6-client 20080615-8squeeze1 DHCPv6 client for automatic IPv6 hosts configuration
Attempt to start
wide-dhcpv6-client service after installation fails because of incorrect configuration.
Make sure the package is installed inside the container:
# vzctl exec 888 dpkg --get-selections | grep wide-dhcpv6-client wide-dhcpv6-client install
Make sure wide-dhcpv6-client configuration file does not contain an interface:
# cat /vz/root/888/etc/default/wide-dhcpv6-client # Defaults for dhcpv6 client initscript # Used by /etc/init.d/wide-dhcpv6-client # Interfaces on which the client should send DHCPv6 requests and listen to # answers. If empty, the client is deactivated. INTERFACES=""
For example, INTERFACES="eth0" will result in the aforementioned error message. If an interface is specified, do the following:
# vzctl enter 888 # sed s/eth0// -i /etc/default/wide-dhcpv6-client # apt-get -f install
Run the upgrade once again:
# vzpkg upgrade 888