PVE Development Environment issues on Proxmox VE 4.4

EuroDomenii

Renowned Member
Sep 30, 2016
145
32
68
Slatina
www.domenii.eu
Versions
pve-manager/4.4-13/7ea56165 (running kernel: 4.4.44-1-pve)
Debian version 8.7

Following https://pve.proxmox.com/wiki/Developer_Documentation#Build_instructions and https://git.proxmox.com/?p=pve-common.git;a=blob_plain;f=README.dev;hb=HEAD

Code:
apt-get -y install build-essential git-core git-email debhelper \
autotools-dev autogen dh-autoreconf dkms doxygen check pkg-config \
groff quilt dpatch automake autoconf libtool lintian libdevel-cycle-perl \
libjson-perl libcommon-sense-perl liblinux-inotify2-perl libio-stringy-perl \
libstring-shellquote-perl dh-systemd rpm2cpio libsqlite3-dev sqlite3 \
libglib2.0-dev librrd-dev librrds-perl rrdcached libdigest-hmac-perl \
libxml-parser-perl gdb libcrypt-openssl-random-perl \
libcrypt-openssl-rsa-perl libnet-ldap-perl libauthen-pam-perl \
libjson-xs-perl libterm-readline-gnu-perl oathtool libmime-base32-perl \
liboath0 libpci-dev texi2html libsdl1.2-dev libgnutls28-dev \
libspice-protocol-dev xfslibs-dev libnuma-dev libaio-dev \
pve-libspice-server-dev libusbredirparser-dev glusterfs-common \
libusb-1.0-0-dev librbd-dev libpopt-dev iproute bridge-utils numactl \
glusterfs-common ceph-common python-ceph libgoogle-perftools4 \
libfile-chdir-perl lvm2 glusterfs-client liblockfile-simple-perl \
libsystemd-dev libreadline-gplv2-dev libio-multiplex-perl \
libnetfilter-log-dev libipset3 ipset socat libsasl2-dev libogg-dev \
python-pyparsing libfilesys-df-perl libcrypt-ssleay-perl \
libfile-readbackwards-perl libanyevent-perl libanyevent-http-perl \
unzip liblocale-po-perl vlan ifenslave-2.6 libfile-sync-perl cstream \
lzop dtach apt-transport-https hdparm gdisk parted ttf-dejavu-core \
liblzma-dev dosfstools mtools libxen-dev libfuse-dev corosync-dev \
libcpg-dev libquorum-dev libcmap-dev libuuid-perl \
libqb-dev libapparmor-dev docbook2x libcap-dev dh-apparmor \
graphviz libseccomp-dev libglib-perl libgtk3-perl libnss3-dev libdlm-dev \
libudev-dev asciidoc-dblatex source-highlight inkscape \
libiscsi-dev libiscsi7


Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libiscsi7 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: Unable to locate package libcmap-dev
E: Unable to locate package asciidoc-dblatex
E: Package 'libiscsi7' has no installation candidate

Re-run the command excluding the above packages. ( temporary, for testing purpose)

Code:
apt-get -y install build-essential git-core git-email debhelper autotools-dev autogen dh-autoreconf dkms doxygen check pkg-config groff quilt dpatch automake autoconf libtool lintian libdevel-cycle-perl libjson-perl libcommon-sense-perl liblinux-inotify2-perl libio-stringy-perl libstring-shellquote-perl dh-systemd rpm2cpio libsqlite3-dev sqlite3 libglib2.0-dev librrd-dev librrds-perl rrdcached libdigest-hmac-perl libxml-parser-perl gdb libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libnet-ldap-perl libauthen-pam-perl libjson-xs-perl libterm-readline-gnu-perl oathtool libmime-base32-perl liboath0 libpci-dev texi2html libsdl1.2-dev libgnutls28-dev libspice-protocol-dev xfslibs-dev libnuma-dev libaio-dev pve-libspice-server-dev libusbredirparser-dev glusterfs-common libusb-1.0-0-dev librbd-dev libpopt-dev iproute bridge-utils numactl glusterfs-common ceph-common python-ceph libgoogle-perftools4 libfile-chdir-perl lvm2 glusterfs-client liblockfile-simple-perl libsystemd-dev libreadline-gplv2-dev libio-multiplex-perl libnetfilter-log-dev libipset3 ipset socat libsasl2-dev libogg-dev python-pyparsing libfilesys-df-perl libcrypt-ssleay-perl libfile-readbackwards-perl libanyevent-perl libanyevent-http-perl unzip liblocale-po-perl vlan ifenslave-2.6 libfile-sync-perl cstream lzop dtach apt-transport-https hdparm gdisk parted ttf-dejavu-core liblzma-dev dosfstools mtools libxen-dev libfuse-dev corosync-dev libcpg-dev libquorum-dev libuuid-perl libqb-dev libapparmor-dev docbook2x libcap-dev dh-apparmor graphviz libseccomp-dev libglib-perl libgtk3-perl libnss3-dev libdlm-dev libudev-dev source-highlight inkscape libiscsi-dev
….

Removing proxmox-ve (4.4-84) ...
rmdir: failed to remove ‘/boot/pve/’: No such file or directory
Removing pve-manager (4.4-13) ...
….
You might want to run 'apt-get -f install' to correct these:

The following packages have unmet dependencies:
libcpg-dev : Depends: libcpg4 (= 1.4.6-1.1) but it is not going to be installed
libsam-dev : Depends: libsam4 (= 1.4.6-1.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Funny thing, I added pvetest repo and ran this devel install on existing PVE installation
Code:
cat /etc/apt/sources.list.d/pve-install-repo.list
deb [arch=amd64] http://download.proxmox.com/debian jessie pve-no-subscription

cat /etc/apt/sources.list
...
deb http://download.proxmox.com/debian jessie pvetest

Everything is broken now.

I have repeated the steps https://pve.proxmox.com/wiki/Developer_Documentation#Build_instructions on clean Jessie ,with same result.

Code:
pveversion
-bash: /usr/bin/pveversion: No such file or directory

Code:
apt dist-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:
 libcpg-dev : Depends: libcpg4 (= 1.4.6-1.1) but it is not installed
 libsam-dev : Depends: libsam4 (= 1.4.6-1.1) but it is not installed
E: Unmet dependencies. Try using -f.

Thanks!
 
  • Like
Reactions: EuroDomenii
On the ther hand, it's ok to have at the same time active pvetest and pve-no-subscription?
in this case you will get the packages from pve-test because they have generally the higher package versions
 
  • Like
Reactions: EuroDomenii
It seems that i cannot get rid of
Code:
The following packages have unmet dependencies:
 libcpg-dev : Depends: libcpg4 (= 1.4.6-1.1) but it is not installed
 libsam-dev : Depends: libsam4 (= 1.4.6-1.1) but it is not installed
Any quick tip or i have to dig myself depper?
 
It seems that i cannot get rid of
Code:
The following packages have unmet dependencies:
 libcpg-dev : Depends: libcpg4 (= 1.4.6-1.1) but it is not installed
 libsam-dev : Depends: libsam4 (= 1.4.6-1.1) but it is not installed
Any quick tip or i have to dig myself depper?

that's not needed on PVE 4 / Jessie. you only need libcorosync-pve-dev there, it contains the libsam and libcpg headers
 
  • Like
Reactions: EuroDomenii
that's not needed on PVE 4 / Jessie. you only need libcorosync-pve-dev there, it contains the libsam and libcpg headers

I understand now, but the damage was done, I have followed the wrong instruction for Debian Strech pve devel on Jessie.

Trying...
Code:
apt-get -f install
apt-get update
dpkg --configure -a
apt-get clean

But I am stuck with...

Code:
apt dist-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:
libcpg-dev : Depends: libcpg4 (= 1.4.6-1.1) but it is not installed
libsam-dev : Depends: libsam4 (= 1.4.6-1.1) but it is not installed
E: Unmet dependencies. Try using -f.

apt -f dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  libcpg4 libsam4
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/322 kB of archives.
After this operation, 403 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 87620 files and directories currently installed.)
Preparing to unpack .../libcpg4_1.4.6-1.1_amd64.deb ...
Unpacking libcpg4 (1.4.6-1.1) ...
dpkg: error processing archive /var/cache/apt/archives/libcpg4_1.4.6-1.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libcpg.so.4.1.0', which is also in package libcorosync4-pve 2.4.2-2~pve4+1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libsam4_1.4.6-1.1_amd64.deb ...
Unpacking libsam4 (1.4.6-1.1) ...
dpkg: error processing archive /var/cache/apt/archives/libsam4_1.4.6-1.1_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libsam.so.4', which is also in package libcorosync4-pve 2.4.2-2~pve4+1
Errors were encountered while processing:
 /var/cache/apt/archives/libcpg4_1.4.6-1.1_amd64.deb
 /var/cache/apt/archives/libsam4_1.4.6-1.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Fixed with
Code:
dpkg -i --force-overwrite /var/cache/apt/archives/libcpg4_1.4.6-1.1_amd64.deb
dpkg -i --force-overwrite /var/cache/apt/archives/libsam4_1.4.6-1.1_amd64.deb
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!