Dependency problems while installing Webmin

aptdpkgwebmin

I'm having problems when installing Webmin for Debian Wheezy.

It turns out that, while installing the dependencies which are mentioned on these instructions from Webmin website, I receive the following error when installing apt-show-versions:

$ apt-get install apt-show-versions
Reading package lists... Done
Building dependency tree       
Reading state information... Done
apt-show-versions is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up apt-show-versions (0.20) ...
** initializing cache. This may take a while **
Error: No information about packages! (Maybe no deb entries?)
dpkg: error processing apt-show-versions (--configure):
 subprocess installed post-installation script returned error exit status 255
dpkg: dependency problems prevent configuration of webmin:
 webmin depends on apt-show-versions; however:
  Package apt-show-versions is not configured yet.

dpkg: error processing webmin (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 apt-show-versions
 webmin
E: Sub-process /usr/bin/dpkg returned an error code (1)

Seems like that APT is having problems to process the configuration of the package.

Acoording to "man apt":

–configure package…|-a|–pending

Configure a package which has been unpacked but not yet configured. If -a or –pending is given instead of package, all
unpacked but unconfigured packages are configured.

To reconfigure a package which has already been configured, try the dpkg-reconfigure(8) command instead.

Configuring consists of the following steps:

  1. Unpack the conffiles, and at the same time back up the old conffiles, so that they can be restored if something goes wrong.

  2. Run postinst script, if provided by the package.

I tried to…

  • uninstall webmin and then installing apt-show-versions
  • to clean APT cache

…but none of these options have solved my problem.

What kind of solution/workaround can I apply for this issue?

Best Answer

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
Related Topic