Upgrade from 1.9 failde

frantek

Renowned Member
May 30, 2009
168
7
83
Hi,

I've tried to upgrade my system from 1.9 to 2.1. The script failed with:

Code:
apt-get --purge -y --force-yes install rsyslog
Reading package lists...
Building dependency tree...
Reading state information...
rsyslog is already the newest version.
The following packages were automatically installed and are no longer required:
  libsmbclient ksm-control-daemon libdevel-symdump-perl libgd-text-perl
  libts-0.0-0 libtalloc1 libdigest-sha1-perl libfilesys-df-perl
  libio-stringy-perl libnet-dns-perl libglib2.0-data libmysqlclient15off
  liblockfile-simple-perl libgd-gd2-noxpm-perl libsvga1 libossp-uuid-perl
  libapreq2 libcrypt-ssleay-perl pve-firmware libjson-xs-perl
  libmime-tools-perl libx86-1 libapr1 libjson-perl libxslt1.1 libwbclient0
  libjs-prototype libapache2-mod-apreq2 cstream libauthen-pam-perl
  libfcgi-perl apache2-mpm-prefork libsdl1.2debian-alsa libglib2.0-0
  apache2-utils libdirectfb-1.0-0 libapache2-reload-perl ifenslave-2.6 apache2
  libterm-readline-gnu-perl libapache-sessionx-perl libgd-graph-perl
  apache2.2-common libsoap-lite-perl libsdl1.2debian atsar liblog-agent-perl
  libapache-authcookie-perl libbsd-resource-perl libfile-sync-perl rsync vlan
  libvncserver0 vncterm pve-kernel-2.6.32-6-pve libapache2-mod-perl2
  liblinux-inotify2-perl wwwconfig-common libapache2-request-perl
  libfilesys-smbclient-perl libapache-session-perl svgalibg1 vzprocps
  libintl-perl vzquota bridge-utils libnet-libidn-perl libconvert-binhex-perl
  libio-socket-ssl-perl libaprutil1 libossp-uuid15 pve-kernel-2.6.32-7-pve
  mysql-common javascript-common libembperl-perl libdigest-hmac-perl
  libgd2-noxpm
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
apt-get --purge -y --force-yes install  libxaw7 pve-kernel-2.6.32-11-pve memtest86+ lzop libxcursor1 pve-qemu-kvm smbfs sqlite3 libcrypt-openssl-rsa-perl libnet-ldap-perl libxt6 libfuse2 libxcb-render-util0 samba-common dash cpp-4.4 libdatrie1 ca-certificates sg3-utils libxft2 libkadm5srv-mit7 libopts25 libevent-1.4-2 rrdcached libxmu6 proxmox-ve-2.6.32 fence-agents-pve libbind9-60 fontconfig libxpm4 libdb4.8 libkdb5-4 libparted0debian1 x11-apps libaprutil1-dbd-sqlite3 vzctl python-openssl libcommon-sense-perl libdb4.7 libthai0 corosync-pve dmsetup libgeoip1 libisccfg62 libqb diffutils libxfixes3 open-iscsi resource-agents-pve isc-dhcp-client pve-cluster libaio1 libconvert-asn1-perl pve-manager libpango1.0-0 libudev0 libpth20 libcorosync4-pve libxcb-render0 libsgutils2-2 libgssrpc4 libopenais3-pve fontconfig-config xz-utils libkadm5clnt-mit7 librrd4 lynx insserv libcairo2 qemu-server python2.6 libdirectfb-1.2-9 libstring-shellquote-perl install-info libdbi0 libfontconfig1 libnet-telnet-perl libfile-readbackwards-perl libpve-access-control libbsd0 xsltproc libc-bin python2.6-minimal libboost-iostreams1.42.0 libpango1.0-common iputils-arping libaprutil1-ldap libgpgme11 libxml2-utils apache2.2-bin fuse-utils libk5crypto3 tsconf libthai-data libice6 fdutils parted lynx-cur redhat-cluster-pve liblua5.1-0 python-reportbug libgssapi-krb5-2 libkrb5-3 libxkbfile1 libtalloc2 libcrypt-openssl-bignum-perl libxapian22 libtokyocabinet8 clvm python-pycurl libisccc60 libisc62 python-pexpect python-support openipmi isc-dhcp-common sensible-utils libmpfr4 librrds-perl libpve-common-perl libdevel-cycle-perl libopenipmi0 cifs-utils perl-suid apt-listchanges libdns69 libnfnetlink0 libpve-storage-perl libcurl3-gnutls libkrb5support0 gcc-4.4-base libpixman-1-0 libcrypt-openssl-random-perl liblwres60 python-apt-common libsm6 openais-pve snmp libept1 libreadline6 liblzma2
Reading package lists...
Building dependency tree...
Reading state information...
E: Couldn't find package libxaw7
apt-get install proxmox-ve-2.6.32
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  proxmox-ve-2.6.32: Depends: pve-manager but it is not going to be installed
                     Depends: qemu-server but it is not going to be installed
                     Depends: pve-qemu-kvm but it is not going to be installed
                     Depends: vzctl (>= 3.0.29) but it is not going to be installed
E: Broken packages
insserv -d
Can't exec "insserv": Datei oder Verzeichnis nicht gefunden at /usr/share/perl/5.10/IPC/Open3.pm line 168, <TMP> line 1392.
open3: exec of insserv -d failed at ./pve-upgrade-1.9-to-2.0 line 267
install failed65280 at ./pve-upgrade-1.9-to-2.0 line 482, <TMP> line 1392

Any suggestions to aviod a reinstall?

TIA
 
this looks not like a standard ISO install.

- pls tell details about the history of this installation.
- what do you get if you run the script again?
 
Yes it is a ISO install. I've installed a few things: bind, dhcpd and SEP Sesam Server, then I've changed the default mounts to:

Code:
/dev/mapper/pve01-root on / type xfs (rw,noatime)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
/dev/mapper/pve01-vz on /var/lib/vz type xfs (rw,noatime)
/dev/mapper/pve01-iso on /var/lib/iso type xfs (rw,noatime)
/dev/sdb1 on /mnt type xfs (rw)

/mnt is the backup I've done in advance:) I've to be online bevore 17:00 MEDST, fresh ISO install is an option for me, no problem.

pve-upgrade-1.9-to-2.0 rerun:

Code:
basis01:~# ./pve-upgrade-1.9-to-2.0 
modprobe fuse
apt-get update
Hit http://download.proxmox.com squeeze Release.gpg
Hit http://download.proxmox.com squeeze Release
Ign http://download.sep.de squeeze Release.gpg
Ign http://download.proxmox.com squeeze/pve Packages/DiffIndex
Ign http://download.sep.de squeeze Release
Ign http://download.proxmox.com squeeze/pve Packages
Ign http://www.mhcsoftware.de squeeze Release.gpg
Ign http://download.sep.de squeeze/non-free Packages/DiffIndex
Hit http://download.proxmox.com squeeze/pve Packages
Ign http://download.sep.de squeeze/non-free Packages
Ign http://www.mhcsoftware.de squeeze Release
Hit http://download.sep.de squeeze/non-free Packages
Ign http://www.mhcsoftware.de squeeze/contrib Packages/DiffIndex
Hit http://www.mhcsoftware.de squeeze/contrib Packages
Reading package lists...
apt-get -f install
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
  libsmbclient ksm-control-daemon libdevel-symdump-perl libgd-text-perl
  libts-0.0-0 libtalloc1 libdigest-sha1-perl libfilesys-df-perl
  libio-stringy-perl libnet-dns-perl libglib2.0-data libmysqlclient15off
  liblockfile-simple-perl libgd-gd2-noxpm-perl libsvga1 libossp-uuid-perl
  libapreq2 libcrypt-ssleay-perl pve-firmware libjson-xs-perl
  libmime-tools-perl libx86-1 libapr1 libjson-perl libxslt1.1 libwbclient0
  libjs-prototype libapache2-mod-apreq2 cstream libauthen-pam-perl
  libfcgi-perl apache2-mpm-prefork libsdl1.2debian-alsa libglib2.0-0
  apache2-utils libdirectfb-1.0-0 libapache2-reload-perl ifenslave-2.6 apache2
  libterm-readline-gnu-perl libapache-sessionx-perl libgd-graph-perl
  apache2.2-common libsoap-lite-perl libsdl1.2debian atsar liblog-agent-perl
  libapache-authcookie-perl libbsd-resource-perl libfile-sync-perl rsync vlan
  libvncserver0 vncterm pve-kernel-2.6.32-6-pve libapache2-mod-perl2
  liblinux-inotify2-perl wwwconfig-common libapache2-request-perl
  libfilesys-smbclient-perl libapache-session-perl svgalibg1 vzprocps
  libintl-perl vzquota bridge-utils libnet-libidn-perl libconvert-binhex-perl
  libio-socket-ssl-perl libaprutil1 libossp-uuid15 pve-kernel-2.6.32-7-pve
  mysql-common javascript-common libembperl-perl libdigest-hmac-perl
  libgd2-noxpm
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
apt-get install debian-archive-keyring
Reading package lists...
Building dependency tree...
Reading state information...
debian-archive-keyring is already the newest version.
The following packages were automatically installed and are no longer required:
  libsmbclient ksm-control-daemon libdevel-symdump-perl libgd-text-perl
  libts-0.0-0 libtalloc1 libdigest-sha1-perl libfilesys-df-perl
  libio-stringy-perl libnet-dns-perl libglib2.0-data libmysqlclient15off
  liblockfile-simple-perl libgd-gd2-noxpm-perl libsvga1 libossp-uuid-perl
  libapreq2 libcrypt-ssleay-perl pve-firmware libjson-xs-perl
  libmime-tools-perl libx86-1 libapr1 libjson-perl libxslt1.1 libwbclient0
  libjs-prototype libapache2-mod-apreq2 cstream libauthen-pam-perl
  libfcgi-perl apache2-mpm-prefork libsdl1.2debian-alsa libglib2.0-0
  apache2-utils libdirectfb-1.0-0 libapache2-reload-perl ifenslave-2.6 apache2
  libterm-readline-gnu-perl libapache-sessionx-perl libgd-graph-perl
  apache2.2-common libsoap-lite-perl libsdl1.2debian atsar liblog-agent-perl
  libapache-authcookie-perl libbsd-resource-perl libfile-sync-perl rsync vlan
  libvncserver0 vncterm pve-kernel-2.6.32-6-pve libapache2-mod-perl2
  liblinux-inotify2-perl wwwconfig-common libapache2-request-perl
  libfilesys-smbclient-perl libapache-session-perl svgalibg1 vzprocps
  libintl-perl vzquota bridge-utils libnet-libidn-perl libconvert-binhex-perl
  libio-socket-ssl-perl libaprutil1 libossp-uuid15 pve-kernel-2.6.32-7-pve
  mysql-common javascript-common libembperl-perl libdigest-hmac-perl
  libgd2-noxpm
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
sed -i -e "s/archive\.debian\.org/ftp\.debian\.org/" -e "s/lenny/squeeze/" /etc/apt/sources.list
grep -q -s 'alternative=' /etc/default/grub
apt-get update
Ign http://download.sep.de squeeze Release.gpg
Ign http://www.mhcsoftware.de squeeze Release.gpg
Hit http://download.proxmox.com squeeze Release.gpg
Ign http://download.sep.de squeeze Release
Hit http://download.proxmox.com squeeze Release
Ign http://www.mhcsoftware.de squeeze Release
Ign http://download.sep.de squeeze/non-free Packages/DiffIndex
Ign http://download.proxmox.com squeeze/pve Packages/DiffIndex
Ign http://download.sep.de squeeze/non-free Packages
Ign http://www.mhcsoftware.de squeeze/contrib Packages/DiffIndex
Ign http://download.proxmox.com squeeze/pve Packages
Hit http://download.sep.de squeeze/non-free Packages
Hit http://www.mhcsoftware.de squeeze/contrib Packages
Hit http://download.proxmox.com squeeze/pve Packages
Reading package lists...
modprobe vzmon
apt-get -y upgrade
Reading package lists...
Building dependency tree...
Reading state information...
The following packages have been kept back:
  libdevmapper1.02.1 lvm2 sesam-srv
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
apt-get --purge -y -f --force-yes -o 'DPkg::Options::=--force-confdef' -o 'DPkg::Options::=--force-confold' dist-upgrade
Reading package lists...
Building dependency tree...
Reading state information...
The following packages have been kept back:
  libdevmapper1.02.1 lvm2 sesam-srv
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
apt-get --purge -y --force-yes install lvm2
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  lvm2: Depends: libdevmapper1.02.1 (>= 2:1.02.74-1pve2) but 2:1.02.27-4 is to be installed
        Depends: libreadline6 (>= 6.0) but it is not installable
        Depends: libudev0 (>= 0.140) but it is not installable
        Depends: dmsetup (> 2:1.02.47) but it is not going to be installed
        Depends: initscripts (>= 2.88dsf-13.1) but 2.86.ds1-61 is to be installed
E: Broken packages
apt-get --purge -y --force-yes install rsyslog
Reading package lists...
Building dependency tree...
Reading state information...
rsyslog is already the newest version.
The following packages were automatically installed and are no longer required:
  libsmbclient ksm-control-daemon libdevel-symdump-perl libgd-text-perl
  libts-0.0-0 libtalloc1 libdigest-sha1-perl libfilesys-df-perl
  libio-stringy-perl libnet-dns-perl libglib2.0-data libmysqlclient15off
  liblockfile-simple-perl libgd-gd2-noxpm-perl libsvga1 libossp-uuid-perl
  libapreq2 libcrypt-ssleay-perl pve-firmware libjson-xs-perl
  libmime-tools-perl libx86-1 libapr1 libjson-perl libxslt1.1 libwbclient0
  libjs-prototype libapache2-mod-apreq2 cstream libauthen-pam-perl
  libfcgi-perl apache2-mpm-prefork libsdl1.2debian-alsa libglib2.0-0
  apache2-utils libdirectfb-1.0-0 libapache2-reload-perl ifenslave-2.6 apache2
  libterm-readline-gnu-perl libapache-sessionx-perl libgd-graph-perl
  apache2.2-common libsoap-lite-perl libsdl1.2debian atsar liblog-agent-perl
  libapache-authcookie-perl libbsd-resource-perl libfile-sync-perl rsync vlan
  libvncserver0 vncterm pve-kernel-2.6.32-6-pve libapache2-mod-perl2
  liblinux-inotify2-perl wwwconfig-common libapache2-request-perl
  libfilesys-smbclient-perl libapache-session-perl svgalibg1 vzprocps
  libintl-perl vzquota bridge-utils libnet-libidn-perl libconvert-binhex-perl
  libio-socket-ssl-perl libaprutil1 libossp-uuid15 pve-kernel-2.6.32-7-pve
  mysql-common javascript-common libembperl-perl libdigest-hmac-perl
  libgd2-noxpm
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
apt-get --purge -y --force-yes install  libxaw7 pve-kernel-2.6.32-11-pve memtest86+ lzop libxcursor1 pve-qemu-kvm smbfs sqlite3 libcrypt-openssl-rsa-perl libnet-ldap-perl libxt6 libfuse2 libxcb-render-util0 samba-common dash cpp-4.4 libdatrie1 ca-certificates sg3-utils libxft2 libkadm5srv-mit7 libopts25 libevent-1.4-2 rrdcached libxmu6 proxmox-ve-2.6.32 fence-agents-pve libbind9-60 fontconfig libxpm4 libdb4.8 libkdb5-4 libparted0debian1 x11-apps libaprutil1-dbd-sqlite3 vzctl python-openssl libcommon-sense-perl libdb4.7 libthai0 corosync-pve dmsetup libgeoip1 libisccfg62 libqb diffutils libxfixes3 open-iscsi resource-agents-pve isc-dhcp-client pve-cluster libaio1 libconvert-asn1-perl pve-manager libpango1.0-0 libudev0 libpth20 libcorosync4-pve libxcb-render0 libsgutils2-2 libgssrpc4 libopenais3-pve fontconfig-config xz-utils libkadm5clnt-mit7 librrd4 lynx insserv libcairo2 qemu-server python2.6 libdirectfb-1.2-9 libstring-shellquote-perl install-info libdbi0 libfontconfig1 libnet-telnet-perl libfile-readbackwards-perl libpve-access-control libbsd0 xsltproc libc-bin python2.6-minimal libboost-iostreams1.42.0 libpango1.0-common iputils-arping libaprutil1-ldap libgpgme11 libxml2-utils apache2.2-bin fuse-utils libk5crypto3 tsconf libthai-data libice6 fdutils parted lynx-cur redhat-cluster-pve liblua5.1-0 python-reportbug libgssapi-krb5-2 libkrb5-3 libxkbfile1 libtalloc2 libcrypt-openssl-bignum-perl libxapian22 libtokyocabinet8 clvm python-pycurl libisccc60 libisc62 python-pexpect python-support openipmi isc-dhcp-common sensible-utils libmpfr4 librrds-perl libpve-common-perl libdevel-cycle-perl libopenipmi0 cifs-utils perl-suid apt-listchanges libdns69 libnfnetlink0 libpve-storage-perl libcurl3-gnutls libkrb5support0 gcc-4.4-base libpixman-1-0 libcrypt-openssl-random-perl liblwres60 python-apt-common libsm6 openais-pve snmp libept1 libreadline6 liblzma2
Reading package lists...
Building dependency tree...
Reading state information...
E: Couldn't find package libxaw7
apt-get install proxmox-ve-2.6.32
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  proxmox-ve-2.6.32: Depends: pve-manager but it is not going to be installed
                     Depends: qemu-server but it is not going to be installed
                     Depends: pve-qemu-kvm but it is not going to be installed
                     Depends: vzctl (>= 3.0.29) but it is not going to be installed
E: Broken packages
insserv -d
Can't exec "insserv": Datei oder Verzeichnis nicht gefunden at /usr/share/perl/5.10/IPC/Open3.pm line 168, <TMP> line 1389.
open3: exec of insserv -d failed at ./pve-upgrade-1.9-to-2.0 line 267
install failed65280 at ./pve-upgrade-1.9-to-2.0 line 482, <TMP> line 1389.

I can wait til 14:30 MEDST for further advice and investigations - afterwards I will do a ISO reinstall.
 
Last edited:
If you need to get up and running today, I suggest a new installation from our ISO, using ext3. will be faster than fixing this custom installation.
 
I've to do a debian install because my PCIeX16 slot is used by my RAID Controller and I've only old PCI VGA cards not supported by the ISO-Installier - my wish sice my first contact with proxmox: pleas switch to a cures installer ... really no one needs a graphical installer ... with the ability of manual partitioning.

The advantage for me: I can preserver my VZ partition.
 
Last edited:
5 more minutes and my Debian based setup is up an running. I think the first information about the setup I gave to you was wrong. The initial setup was a Debina setup too due to the VGA problems.

I do not use OpenVZ and if I want to I can create a addition store with LVM and format it with ext3.
 
Sadly one problem left:

Code:
root@basis01:~# apt-get install -f
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut       
Statusinformationen werden eingelesen... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
pve-manager (2.1-1) wird eingerichtet ...
insserv: Service vz has to be enabled to start service pve-manager
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: Fehler beim Bearbeiten von pve-manager (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
configured to not write apport reports
                                      Fehler traten auf beim Bearbeiten von:
 pve-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Sadly one problem left:

Code:
root@basis01:~# apt-get install -f
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut       
Statusinformationen werden eingelesen... Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
pve-manager (2.1-1) wird eingerichtet ...
insserv: Service vz has to be enabled to start service pve-manager
insserv: exiting now!
update-rc.d: error: insserv rejected the script header
dpkg: Fehler beim Bearbeiten von pve-manager (--configure):
 Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
configured to not write apport reports
                                      Fehler traten auf beim Bearbeiten von:
 pve-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hi,
your error-message said, that you don't started the needed service vz.
See with "service --status-all" if vz is enabled.

Udo
 
Thanks to all for the replies. The problem was that I've used the wrong howto. "vz" was not installed at all ...
 
I just had the same issue, solution is:

apt-get install vzctl
apt-get -f install
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!