Discussion:
setting up a sbuild chroot - which key?
(too old to reply)
Riccardo Mottola
2024-04-16 20:10:01 UTC
Permalink
Hi!

I separate the thread - since it is specific to setting up a viable
sbuild environment.
The goal is to have the simplest and smallest enviornoment to build
source packages, in my case pyhon 2.7

I need the chroot. I read jeffrey's suggestions as well as wiki [1]

I am trying this:

sudo sbuild-createchroot   unstable debian-powerpc
http://ftp.ports.debian.org/debian-ports

But it fails with:

E: Release signed by unknown key (key id 8D69674688B6CB36)
   The specified keyring /usr/share/keyrings/debian-archive-keyring.gpg
may be incorrect or out of date.
   You can find the latest Debian release key at
https://ftp-master.debian.org/keys.html

taking hint from Jeffrey I tried to pass a keyring key, but couldn't
find a good one in/usr/share/keyrings/

I don't have /usr/share/keyrings/debian-ports-archive-keyring.gpg,
debian-archive-keyring.gpg debian doesn't work.

Riccardo

[1] https://wiki.debian.org/sbuild
Riccardo Mottola
2024-05-03 22:00:01 UTC
Permalink
Hello,

no hint for me which key to use? or if I miss one, where to get it?

I have apt-get working, so I think I have the key.

Riccardo
Post by Riccardo Mottola
Hi!
I separate the thread - since it is specific to setting up a viable
sbuild environment.
The goal is to have the simplest and smallest enviornoment to build
source packages, in my case pyhon 2.7
I need the chroot. I read jeffrey's suggestions as well as wiki [1]
sudo sbuild-createchroot   unstable debian-powerpc
http://ftp.ports.debian.org/debian-ports
E: Release signed by unknown key (key id 8D69674688B6CB36)
   The specified keyring
/usr/share/keyrings/debian-archive-keyring.gpg may be incorrect or out
of date.
   You can find the latest Debian release key at
https://ftp-master.debian.org/keys.html
taking hint from Jeffrey I tried to pass a keyring key, but couldn't
find a good one in/usr/share/keyrings/
I don't have /usr/share/keyrings/debian-ports-archive-keyring.gpg,
debian-archive-keyring.gpg debian doesn't work.
Riccardo
[1] https://wiki.debian.org/sbuild
Michael Cree
2024-05-04 02:40:01 UTC
Permalink
Post by Riccardo Mottola
no hint for me which key to use? or if I miss one, where to get it?
I have apt-get working, so I think I have the key.
You looking for the key to install a chroot with powerpc or ppc64
from debian-ports? Assuming you have debian-ports-archive-keyring
package installed then you will find it in the directory:
/etc/apt/trusted.gpg.d/

Cheers
Michael.
John Paul Adrian Glaubitz
2024-05-04 05:20:01 UTC
Permalink
Hello,
Post by Riccardo Mottola
no hint for me which key to use? or if I miss one, where to get it?
I have apt-get working, so I think I have the key.
You include the keyring when creating the chroot using the "--include" option:

# sbuild-createchroot unstable /srv/chroot/unstable-powerpc \
--arch=powerpc --variant=buildd --include=debian-ports-archive-keyring \
http://ftp.ports.debian.org/debian-ports

Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Riccardo Mottola
2024-05-09 15:20:01 UTC
Permalink
Hi,

perhaps I'm loosing myself in a glass of water here.
Post by John Paul Adrian Glaubitz
# sbuild-createchroot unstable /srv/chroot/unstable-powerpc \
--arch=powerpc --variant=buildd --include=debian-ports-archive-keyring \
http://ftp.ports.debian.org/debian-ports
I don't need buildd, so I think I can simplify the call to createchroot.

 sudo sbuild-createchroot unstable debian-powerpc
--include=debian-ports-archive-keyring
http://ftp.ports.debian.org/debian-ports

this answer me

E: Release signed by unknown key (key id 8D69674688B6CB36)
   The specified keyring /usr/share/keyrings/debian-archive-keyring.gpg
may be incorrect or out of date.
   You can find the latest Debian release key at
https://ftp-master.debian.org/keys.html

Thanks to this error and some internet search [1]

 sudo apt-get install debian-ports-archive-keyring

Reissuing the command, still gets the same error. Then I follow
Jeffrey's advice of using --keyring

sudo sbuild-createchroot unstable debian-powerpc
--include=debian-ports-archive-keyring --keyring
/usr/share/keyrings/debian-ports-archive-keyring.gpg
http://ftp.ports.debian.org/debian-ports

<... iBook fan goes full power and wait wait ...>

And I seem to have an environment.

Then I go into python-2.7 directory I got with the command:

$ dget -uhttp://snapshot.debian.org/archive/debian/20220801T085926Z/pool/main/p/python2.7/python2.7_2.7.18-13.2.dsc


I issue:

sbuild -d sid --arch-all --arch=powerpc python2.7_2.7.18-13.2.dsc

but I get:
Package: python2.7
Version: 2.7.18-13.2
Source Version: 2.7.18-13.2
Distribution: sid
Machine Architecture: powerpc
Host Architecture: powerpc
Build Architecture: powerpc
Build Type: binary

E: Chroot for distribution sid, architecture powerpc not found
E: Error creating chroot


I suppose the issue is because the distribution is sid, but we want
bookworm?

Riccardo

[1] https://github.com/go-debos/debos/issues/463
John Paul Adrian Glaubitz
2024-05-09 15:50:01 UTC
Permalink
Post by Riccardo Mottola
Hi,
perhaps I'm loosing myself in a glass of water here.
Post by John Paul Adrian Glaubitz
# sbuild-createchroot unstable /srv/chroot/unstable-powerpc \
--arch=powerpc --variant=buildd --include=debian-ports-archive-keyring \
http://ftp.ports.debian.org/debian-ports
I don't need buildd, so I think I can simplify the call to createchroot.
Yes, you need “buildd”.
Post by Riccardo Mottola
sudo sbuild-createchroot unstable debian-powerpc --include=debian-ports-archive-keyring http://ftp.ports.debian.org/debian-ports
this answer me
E: Release signed by unknown key (key id 8D69674688B6CB36)
The specified keyring /usr/share/keyrings/debian-archive-keyring.gpg may be incorrect or out of date.
You can find the latest Debian release key at https://ftp-master.debian.org/keys.html
Thanks to this error and some internet search [1]
sudo apt-get install debian-ports-archive-keyring
Correct. You can also pass “—no-check-gpg”.
Post by Riccardo Mottola
Reissuing the command, still gets the same error. Then I follow Jeffrey's advice of using --keyring
sudo sbuild-createchroot unstable debian-powerpc --include=debian-ports-archive-keyring --keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg http://ftp.ports.debian.org/debian-ports
<... iBook fan goes full power and wait wait ...>
And I seem to have an environment.
$ dget -uhttp://snapshot.debian.org/archive/debian/20220801T085926Z/pool/main/p/python2.7/python2.7_2.7.18-13.2.dsc
sbuild -d sid --arch-all --arch=powerpc python2.7_2.7.18-13.2.dsc
Package: python2.7
Version: 2.7.18-13.2
Source Version: 2.7.18-13.2
Distribution: sid
Machine Architecture: powerpc
Host Architecture: powerpc
Build Architecture: powerpc
Build Type: binary
Did you run sbuild-createchroot and did it succeed?
Post by Riccardo Mottola
E: Chroot for distribution sid, architecture powerpc not found
E: Error creating chroot
I suppose the issue is because the distribution is sid, but we want bookworm?
There is no bookworm for powerpc, just sid.

Adrian
Post by Riccardo Mottola
Riccardo
[1] https://github.com/go-debos/debos/issues/463
Riccardo Mottola
2024-05-10 11:30:01 UTC
Permalink
Hi,
Post by John Paul Adrian Glaubitz
Yes, you need “buildd”.
Oh, I thought that buildd was only for participating in debian build not
for local builds.

So let me retry:

sudo sbuild-createchroot unstable debian-powerpc --arch=powerpc --variant=buildd --include=debian-ports-archive-keyring --keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg http://ftp.ports.debian.org/debian-ports


Unknown option: variant
E: Error parsing command-line options

Manpage [1] says sbuild-createchroot is equivalent to debootstrap --variant=buildd --include=fakeroot,build-essential, so it seems that variant is implicit.


so I remove my local debian-powerpc directory and cleanups suggested by sbuild-destroychroot,

I reissue: (difference from my first attempt is --arch=powerpc)

sudo sbuild-createchroot unstable debian-powerpc --arch=powerpc --include=debian-ports-archive-keyring --keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg http://ftp.ports.debian.org/debian-ports
Post by John Paul Adrian Glaubitz
Did you run sbuild-createchroot and did it succeed?
There is no bookworm for powerpc, just sid.
Ok.. wrong supposition, all is fine. sbuild-createchroot appears to have
completed fine.

Ok, then that shouldn't be the issue.


Last libesfrom sbuild-createchroot are:
E: Can not write log (Is /dev/pts mounted?) - posix_openpt (19: No such
device)
(Reading database ... 11843 files and directories currently installed.)
Preparing to unpack .../linux-libc-dev_6.7.12-1_all.deb ...
Unpacking linux-libc-dev (6.7.12-1) over (6.7.9-2) ...
Setting up linux-libc-dev (6.7.12-1) ...
I: Successfully set up unstable chroot.

I hope the log issue is harmless. Chroot should be set up.


+==============================================================================+
| python2.7 2.7.18-13.2 (powerpc)              Fri, 10 May 2024 11:17:06
+0000 |
+==============================================================================+

Package: python2.7
Version: 2.7.18-13.2
Source Version: 2.7.18-13.2
Distribution: sid
Machine Architecture: powerpc
Host Architecture: powerpc
Build Architecture: powerpc
Build Type: binary

E: Chroot for distribution sid, architecture powerpc not found
E: Error creating chroot

.... apparently sid is not equivalent to unstable!



 sbuild -d unstable --arch-all --arch=powerpc python2.7_2.7.18-13.2.dsc


got thing to the point of churning along.... getting a lot of strange
dependencies... will let it working and report back.


Thanks for now,


Riccardo

[1]
https://manpages.debian.org/unstable/sbuild/sbuild-createchroot.8.en.html
Loading...