[Piuparts-devel] Bug#1084234: Bug#1084234: piuparts: Cannot create /dev/null

Nicolas Dandrimont olasd at debian.org
Thu Oct 10 12:50:38 BST 2024


Hi,

On Mon, Oct 7, 2024, at 05:44, Joachim Zobel wrote:
> I am  trying to run
>
> sudo piuparts --fake-essential-packages ca-certificates --testdebs-repo
> 'https://dl.cloudsmith.io/public/volkszaehler/volkszaehler-org-
> project/deb/debian' -d bullseye
> /var/cache/pbuilder/result/vzlogger_0.8.8_amd64.deb
>
> This fails with
>
>   Setting up ca-certificates (20210119) ...
>   /var/lib/dpkg/info/ca-certificates.postinst: 44: cannot create /dev/null:
> Permission denied
>   sed: can't read /dev/null: Permission denied
>
> The postinstall script tries to write errors to /dev/null on the line 44.
>
> This might be #1064842, but I'm unsure if essential packages are even allowed
> to write /dev/null. What I actually need is that the certificate of the
> testbeds-repo is accepted. So if --fake-essential-packages ca-certificates is
> the wrong way please consider this a wishlist bug to provide a better way.

It looks like your /tmp is mounted nodev, which prevents debootstrap and
piuparts from creating /dev/null and friends when trying to use the chroot. In
this situation, both debootstrap and piuparts should be bind-mounting /dev/null
from the host system instead.

Could you attach a full log of the piuparts run, so that we can more usefully
debug what happened?

Thanks,
-- 
Nicolas Dandrimont
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/piuparts-devel/attachments/20241010/2d5ccbbc/attachment.sig>


More information about the Piuparts-devel mailing list