unable to install vzctl

D

Dave84

Guest
i try to install vzctl but i get the below error
Unpacking vzctl (from .../vzctl_3.0.29-3pve3_amd64.deb) ...
unable to backup existing configuration
dpkg: error processing /var/cache/apt/archives/vzctl_3.0.29-3pve3_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
/var/cache/apt/archives/vzctl_3.0.29-3pve3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover
can someone help me?
 
Same thing here. I have all pve packages installed. (pve-cluster up and running)
What now? I can't upgrade!
 
post more (all) details.
 
# dpkg -l '*pve*'
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
+++-==============-==============-============================================
ii corosync-pve 1.4.1-1 Standards-based cluster framework (daemon an
ii libcorosync4-p 1.4.1-1 Standards-based cluster framework (libraries
ii libopenais3-pv 1.1.4-1 Standards-based cluster framework (libraries
ii libpve-access- 1.0-2 Proxmox VE access control library
ii libpve-common- 1.0-8 Proxmox VE base library
ii libpve-storage 2.0-6 Proxmox VE storage management library
ii openais-pve 1.1.4-1 Standards-based cluster framework (daemon an
ii pve-cluster 1.0-11 Cluster Infrastructure for Proxmox Virtual E
ii pve-firmware 1.0-13 Binary firmware code for the pve-kernel
ii pve-headers-2. 2.6.32-52 The Proxmox PVE Kernel Headers
un pve-kernel <none> (no description available)
ii pve-kernel-2.6 2.6.32-52 The Proxmox PVE Kernel Image
un pve-kvm <none> (no description available)
ii pve-manager 2.0-10 The Proxmox Virtual Environment
ii pve-qemu-kvm 0.15.0-1 Full virtualization on x86 hardware
un pve-qemu-kvm-2 <none> (no description available)
ii redhat-cluster 3.1.7-1 Red Hat cluster suite


Error:

# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
vzctl
Suggested packages:
vzctl-ostemplate ovzkernel
The following NEW packages will be installed:
vzctl
0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded.
1 not fully installed or removed.
Need to get 0 B/234 kB of archives.
After this operation, 1,167 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
(Reading database ... 43066 files and directories currently installed.)
Unpacking vzctl (from .../vzctl_3.0.29-3pve3_amd64.deb) ...
unable to backup existing configuration
dpkg: error processing /var/cache/apt/archives/vzctl_3.0.29-3pve3_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
/var/cache/apt/archives/vzctl_3.0.29-3pve3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Last edited:
pls tell the whole story of your installation, starting from bare metal.
 
with 'aptitude install proxmox-ve-2.6.32' the vzctl package should be installed.

check with 'pveversion -v'


btw, do NOT install vzdump, its obsolete now.
 
Seems not helped:

# aptitude install proxmox-ve-2.6.32
The following NEW packages will be installed:
vzctl{a}
The following packages will be upgraded:
proxmox-ve-2.6.32
1 packages upgraded, 1 newly installed, 0 to remove and 10 not upgraded.
Need to get 4,392 B/238 kB of archives. After unpacking 1,167 kB will be used.
Do you want to continue? [Y/n/?]
Get:1 http://download.proxmox.com/debian/ squeeze/pve proxmox-ve-2.6.32 all 2.0-53 [4,392 B]
Fetched 4,392 B in 0s (12.3 kB/s)
Reading changelogs... Done
(Reading database ... 43066 files and directories currently installed.)
Unpacking vzctl (from .../vzctl_3.0.29-3pve3_amd64.deb) ...
unable to backup existing configuration
dpkg: error processing /var/cache/apt/archives/vzctl_3.0.29-3pve3_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
configured to not write apport reports
Preparing to replace proxmox-ve-2.6.32 2.0-52 (using .../proxmox-ve-2.6.32_2.0-53_all.deb) ...
Unpacking replacement proxmox-ve-2.6.32 ...
Errors were encountered while processing:
/var/cache/apt/archives/vzctl_3.0.29-3pve3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of proxmox-ve-2.6.32:
proxmox-ve-2.6.32 depends on vzctl (>= 3.0.29); however:
Package vzctl is not installed.
dpkg: error processing proxmox-ve-2.6.32 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
proxmox-ve-2.6.32

Current status: 10 updates [-1].

# pveversion -v
pve-manager: 2.0-10 (pve-manager/2.0/7a10f3e6)
running kernel: 2.6.32-5-amd64
pve-kernel-2.6.32-6-pve: 2.6.32-52
lvm2: 2.02.86-1pve1
clvm: 2.02.86-1pve1
corosync-pve: 1.4.1-1
openais-pve: 1.1.4-1
libqb: 0.6.0-1
redhat-cluster-pve: 3.1.7-1
pve-cluster: 1.0-11
qemu-server: 2.0-6
pve-firmware: 1.0-13
libpve-common-perl: 1.0-8
libpve-access-control: 1.0-2
libpve-storage-perl: 2.0-6
vncterm: 1.0-2
vzctl: not correctly installed
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
 
Martin just updated the wiki page, working smooth now.
 
But proxmox-ve-2.6.32 still depends by vzctl. How i fix it? I need to make a new fresh install?
 
There seems to be a stale vzctl backup from a previous installation. Please try to remove that with:

# mv /etc/vz/conf.org /root/old-vz-conf.org

Then try again.

I assume there are no old containers on that system? If so you can safely remove /root/old-vz-conf.org
 

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!