Hi Ben,

Quoting Ben Finney (2018-10-06 03:39:12)
> On 29-Sep-2018, Ben Finney wrote:
> > Package: sbuild
> > $ getent passwd sbuild
> > sbuild:x:126:136:Debian source builder,,,:/var/lib/sbuild:/bin/bash
> > $ getent group sbuild
> > sbuild:x:136:bignose
> 
> Prompted by a suggestion to try running those commands *in* the
> chroot, I get this failure instead:
> 
> =====
> $ sbuild-shell unstable
> E: Access not authorised
> I: You do not have permission to access the schroot service.
> I: This failure will be reported.
> Chroot setup failed
> Error setting up unstable chroot
> Chroot setup failed at /usr/bin/sbuild-shell line 42.
> 
> $ sudo sbuild-shell unstable
> chown: invalid user: 'sbuild:sbuild'
> E: Failed to set sbuild:sbuild ownership on /build
> Failed to set up chroot
> Error setting up unstable chroot
> Chroot setup failed at /usr/bin/sbuild-shell line 42.
> =====
> 
> What should I be doing to correct this chroot?
> 
> How could the SBuild chroot be created so that it fails like this?
> What should I be doing when creating future chroots, to avoid this
> failure?

how did you create the chroot? Did you use sbuild-createchroot?

I'm not yet able to reproduce your problem and sbuild's autopkgtest also seems
to pass just fine: https://ci.debian.net/packages/s/sbuild/unstable/amd64/

Did you read the EXAMPLES section of the sbuild man page? Or the man page of
sbuild-createchroot?

Did you maybe try using sbuild-debian-developer-setup which is a script that
should setup your machine so that you can start building packages right away?

Also: why are you attempting to run sbuild with sudo?

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to