5

I'm running an Ubuntu 16.04 container on Docker.

I exec into the container and run:

apt install apt-show-versions

I get back:

Setting up apt-show-versions (0.22.3) ...
** initializing cache. This may take a while **
Error: No information about packages! (Maybe no deb entries?)
dpkg: error processing package apt-show-versions (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 apt-show-versions
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have no problem installing this package on my host computer also running 16.04.

Anyone know what might be causing the issue?

1 Answer 1

18

Problem and solution is explain here : https://groups.google.com/forum/#!topic/beagleboard/jXb9KhoMOsk

rm /etc/apt/apt.conf.d/docker-gzip-indexes
apt-get purge apt-show-versions
rm /var/lib/apt/lists/*lz4
apt-get -o Acquire::GzipIndexes=false update

[…]

apt-get install apt-show-versions
The following NEW packages will be installed:
  apt-show-versions
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.6 kB of archives.
After this operation, 163 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 apt-show-versions all 0.22.7 [29.6 kB]
Fetched 29.6 kB in 0s (371 kB/s)             
Selecting previously unselected package apt-show-versions.
(Reading database ... 46320 files and directories currently installed.)
Preparing to unpack .../apt-show-versions_0.22.7_all.deb ...
Unpacking apt-show-versions (0.22.7) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up apt-show-versions (0.22.7) ...
** initializing cache. This may take a while **
root@4127ac89e58f:/#
3
  • It also fixes the same issue on OrangePi with Armbian_5.59_Orangepizero_Debian_stretch_next_4.14.65 image
    – N0dGrand87
    Nov 28, 2019 at 4:15
  • Three years later, still running into same issue setting up a Docker debian/buster container and webmin.
    – ctrlbrk
    May 10, 2020 at 14:52
  • It also helped me - Armbian Buster + Docker + Webmin :) same configration and two years further :P
    – Wojtek_B
    Jul 26, 2022 at 11:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .