install of apt-show-versions fail

D

debz

Guest
Hello,

I have a problem to install the package "apt-show-versions" with dab install.

It's the only packet with dab install to fail since 4 month in many template.

Makefile
Code:
BASEDIR:=$(shell dab basedir)

all: info/init_ok
        dab bootstrap
        dab install apt-show-versions
        dab finalize

info/init_ok: dab.conf
        dab init
        touch $@

.PHONY: clean
clean:
        dab clean
        rm -f *~

.PHONY: dist-clean
dist-clean:
        dab dist-clean
        rm -f *~@

The log output : (logfile)
Code:
dab: install apt-show-versions
install: apt-show-versions
install: libapt-pkg-perl
Selecting previously deselected package apt-show-versions.
(Reading database ... 16545 files and directories currently installed.)
Unpacking apt-show-versions (from .../apt-show-versions_0.15_all.deb) ...
Selecting previously deselected package libapt-pkg-perl.
Unpacking libapt-pkg-perl (from .../libapt-pkg-perl_0.1.22+b1_amd64.deb) ...
Setting up libapt-pkg-perl (0.1.22+b1) ...
Processing triggers for man-db ...
Setting up apt-show-versions (0.15) ...
** initializing cache. This may take a while **
Error: No information about packages! (Maybe no deb entries?)
dpkg: error processing apt-show-versions (--install):
 subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
 apt-show-versions
command 'vzctl exec2 90000 defenv dpkg --force-depends --force-confold --install /apt-show-versions_0.15_all.deb /libapt-pkg-perl_0.1.22+b1_amd64.deb' failed with exit code 1


aptitude show apt-show-versions

Code:
Package: apt-show-versions
New: yes
State: not installed
Version: 0.15
Priority: optional
Section: admin
Maintainer: Christoph Martin <christoph.martin@uni-mainz.de>
Uncompressed Size: 188k
Depends: perl | perl-5.005 | perl-5.004, apt, libapt-pkg-perl (>= 0.1.21), libstorable-perl
Description: lists available package versions with distribution
 apt-show-versions parses the dpkg status file and the APT lists for the installed and available package versions and
 distribution and shows upgrade options within the specific distribution of the selected package. 
 
 This is really useful if you have a mixed stable/testing environment and want to list all packages which are from testing and
 can be upgraded in testing.
 
Maybe you need to install some other packages before to generate a dpkg status file (or run apt-get update).
 
Why dab don't install all dependencies of a package ?

It's possible to change this ?

But I have made an aptitude update and aptitude upgrade, the problem is doesn't solved at this time.
 
Why dab don't install all dependencies of a package ?

dab installs all dependencies - what do you miss?

It's possible to change this ?

change what?

But I have made an aptitude update and aptitude upgrade, the problem is doesn't solved at this time.

I guess you need to debug the postinst scrip of apt-show-versions to see whats missing.
 
The postinst script simply calls:

# apt-show-versions -i
Error: No information about packages! (Maybe no deb entries?)

So this is obviously a bug in 'apt-show-versions' - because all dpkg status files are there and dpkg is configured correctly.
 
Thx for support.

I modified the package apt-show-versions (postinstall script), and my problem is solved.
 

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!