The script of Stéphane Graber worked for me comming from ubuntu 9.04 after an upgrade to karmic (9.10) but not for the dist-upgrade to ubuntu 10.04 (lucid)
# apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following NEW packages will be installed: busybox-initramfs diffutils gnupg-curl initramfs-tools initramfs-tools-bin klibc-utils libdb4.8 libfile-copy-recursive-perl libgdbm3 libglib2.0-0 libglib2.0-data libklibc libnih-dbus1 libnih1 libnl1 libplymouth2 libpng12-0 libxml2 make module-init-tools perl perl-modules sensible-utils sgml-base shared-mime-info udev xml-core The following packages will be upgraded: adduser apt apt-utils aptitude base-files base-passwd bash bsdutils bzip2 coreutils cpio dash debconf debconf-i18n debianutils dpkg e2fslibs e2fsprogs findutils gcc-4.4-base gettext-base gnupg gpgv grep gzip hostname ifupdown initscripts insserv iproute iputils-ping less libacl1 libatm1 libattr1 libblkid1 libbsd0 libbz2-1.0 libc-bin libc6 libc6-i686 libcomerr2 libcurl3-gnutls libcwidget3 libdb4.7 libdbus-1-3 libdevmapper1.02.1 libedit2 libept0 libfribidi0 libgcc1 libgcrypt11 libgnutls26 libgpg-error0 libgpm2 libgssapi-krb5-2 libidn11 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 liblocale-gettext-perl liblzo2-2 libncurses5 libncursesw5 libnewt0.52 libpam-modules libpam-runtime libpam0g libpcre3 libpopt0 libreadline5 libreadline6 libsasl2-2 libsasl2-modules libselinux1 libsepol1 libsigc++-2.0-0c2a libslang2 libsqlite3-0 libss2 libssl0.9.8 libstdc++6 libsysfs2 libtasn1-3 libtext-charwidth-perl libtext-iconv-perl libudev0 libusb-0.1-4 libuuid1 libwrap0 libxapian15 locales login lsb-base lsb-release lzma makedev mawk mime-support mktemp mount mountall nano ncurses-base ncurses-bin net-tools netbase openssh-client openssh-server openssl passwd perl-base procps psmisc python python-central python-minimal python2.6 python2.6-minimal quota readline-common sed ssh sudo sysv-rc sysvinit-utils sysvutils tar tcpd tzdata ubuntu-keyring update-inetd upstart util-linux util-linux-locales uuid-runtime vim-common vim-tiny whiptail zlib1g 142 upgraded, 27 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/59.6MB of archives. After this operation, 51.9MB of additional disk space will be used. Do you want to continue [Y/n] So after the dist-upgrade i have the same problem like before adding Stéphane Grabers script: # vzctl enter 1234 enter into VE 1234 failed Unable to open pty: No such file or directory I can enter the container with vzctl exec # vzctl exec 1234 /bin/bash and when i want to get rid of one piece it wants to remove more of them... # apt-get remove initramfs-tools Reading package lists... Building dependency tree... Reading state information... The following packages were automatically installed and are no longer required: libedit2 libbsd0 openssh-client Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: e2fsprogs hostname ifupdown initramfs-tools initscripts module-init-tools mountall netbase openssh-server procps ssh udev upstart util-linux util-linux-locales WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! e2fsprogs util-linux (due to e2fsprogs) hostname upstart (due to hostname) 0 upgraded, 0 newly installed, 15 to remove and 0 not upgraded. After this operation, 14.3MB disk space will be freed. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' ?] -- OpenVZ kernel out of date, karmic requires 2.6.27 https://bugs.launchpad.net/bugs/436130 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs