Package: mmdebstrap
Version: 1.3.5-7
Severity: normal

Hi,

since version 1.20.0, dpkg no longer creates /var/lib/dpkg/available
(see #647911).

But on Debian releases until and including buster, dpkg fails to
operate with e.g. `dpkg --set-selections`, if
/var/lib/dpkg/available doesn't exist:

| The following NEW packages will be installed:
| [...]
| debconf: delaying package configuration, since apt-utils is not installed
| dpkg: error: failed to open package info file '/var/lib/dpkg/available' for 
reading: No such file or directory

My workaround to work around this is to run:

  chroot "${TARGET}" /usr/lib/dpkg/methods/apt/update /var/lib/dpkg

As mmdebstrap seems to rely on dpkg of the host system, it would be
nice if mmdebstrap could ensure to create an environment where
apt/dpkg of the installed system doesn't stumble upon. :)

Thanks for mmdebstrap!

regards
-mika-

Reply via email to