Your message dated Wed, 07 Oct 2026 16:15:28 +0200
with message-id <179138252821.21057.2716233798623996554@localhost>
and subject line Re: Bug#1003177: mmdebstrap: --dry-run fails with error: 
cannot read /var/cache/apt/archives/
has caused the Debian Bug report #1003177,
regarding mmdebstrap: --dry-run fails with error: cannot read 
/var/cache/apt/archives/
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1003177: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1003177
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mmdebstrap
Version: 0.7.5-2.2
Severity: normal

Hi,

mmdebstrap from Debian stable fails to run with --dry-run. Example:

```
$ mmdebstrap -v --dry-run --variant=minbase unstable root.tar
[...]
Inst sysvinit-utils (3.01-1 Debian:unstable [amd64])
Conf sysvinit-utils (3.01-1 Debian:unstable [amd64])
I: skip extracting packages because of --dry-run
I: no essential packages -- skipping...
E: cannot read /var/cache/apt/archives/
W: listening on child socket failed: 
I: removing tempdir /tmp/mmdebstrap.e7VYvXTJ31...
```

Running the same command on Debian unstable with mmdebstrap 0.8.2-1
works, but backporting mmdebstrap >= 0.8 to Debian bullseye fails,
because mmdebstrap >= 0.8 requires a APT version that is newer than the
one shipped in bullseye.

-- 
Benjamin Drung

Senior DevOps Engineer and Debian & Ubuntu Developer
Compute Platform Operations Cloud

IONOS SE | Revaler Str. 30 | 10245 Berlin | Deutschland
E-Mail: [email protected] | Web: www.ionos.de

Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498

Vorstand: Hüseyin Dogan, Dr. Martin Endreß, Claudia Frese, Henning
Kettler, Arthur Mai, Britta Schmidt, Achim Weiß
Aufsichtsratsvorsitzender: Markus Kadelke


Member of United Internet

--- End Message ---
--- Begin Message ---
Quoting Johannes Schauer Marin Rodrigues (2022-01-05 20:50:49)
> yes, backporting is not an option. Luckily, the fix is trivial:
> 
> --- /usr/bin/mmdebstrap 2022-01-05 19:47:50.477129738 +0000
> +++ /usr/bin/mmdebstrap.fixed   2022-01-05 19:47:43.277074092 +0000
> @@ -2779,7 +2779,7 @@
>                  # /var/cache/apt/archives/ might not be empty either because
>                  # the user used hooks to populate it or because skip options
>                  # like essential/unlink or check/empty were used.
> -                {
> +                if (-e "$options->{root}/var/cache/apt/archives/") {
>                      my $apt_archives = "/var/cache/apt/archives/";
>                      opendir my $dh, "$options->{root}/$apt_archives"
>                        or error "cannot read $apt_archives";
> 
> I'll ask the release team to also accept that fix in addition to what I 
> already
> proposed in #1003188.

not relevant for current Debian stable and long fixed. Closing.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature


--- End Message ---

Reply via email to