[Whonix-devel] Bug#932552: empty /var/lib/dpkg/available causing pbuilder to fail
adrelanos at riseup.net
Sat Jul 20 16:56:00 CEST 2019
X-Debbugs-CC: whonix-devel at whonix.org
I am using mmdebstrap in combination with cowbuilder / pbuilder.
Initially a chroot created using mmdebstrap comes with an empty file
This confuses aptitude which I wouldn't care much about but pbuilder
uses aptitude internally.
++ chroot /var/cache/pbuilder/cow.cow_amd64/cow.14818 cow-shell env
XDG_CACHE_HOME=/root aptitude -y --without-recommends -o
pbuilder-satisfydepends-dummy :UNINST' -o
[ ERR] Writing extended state information
[ ERR] Building tag database
At the same time generating /var/lib/dpkg/available is not obvious
anymore in Debian buster. In Debian stretch one could use "dpkg
--clear-avail" followed by "apt-get update" but that does no longer work
in Debian buster.
Solution was found. (Credits .)
/usr/lib/dpkg/methods/apt/update /var/lib/dpkg apt apt
However, it would be nice if mmdebstrap could come with a functional
/var/lib/dpkg/available file so mmdebstrap can be used in combination
with cowbuilder / pbuilder.
 Thanks to Chris Gibson
More information about the Whonix-devel