On 09-10-17 12:08, Erik van Linstee wrote:
Hi,
I have set up a build system on Ubuntu 16.04 that works well if I try
to build for Wheezy or Jessie, but that fails if I build for Stretch.
The build fails in the chroot stage after reading the package lists.
Reading package lists...
gpg: WARNING: unsafe permissions on homedir '/root/.gnupg'
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: agent_genkey failed: Inappropriate ioctl for device
gpg: key generation failed: Inappropriate ioctl for device
gpg: WARNING: unsafe permissions on homedir '/root/.gnupg'
gpg: no default secret key: No secret key
gpg: signing failed: No secret key
<< snip >>
Hoping for suggestions of what to try next. Right now my only
constraint is that I have to work with Ubuntu 16.04.
To answer my own question. It appears that the live-build tools on
Ubuntu are too old.
I have created a Stretch chroot with debootstrap and installed the
official Stretch live-build package and the problem is gone.
It did confront me with another problem, though, which is that the hooks
that used to live in config/hooks/ now live in config/hooks/normal and
config/hooks/live. This is not something that is immediately obvious,
since most of the online documentation does not mention it.
I had to inspect the source code to find out and then still, a Google
search did not render any results.
I finally found the corrected documentation in the unstable manual at
https://debian-live.alioth.debian.org/live-manual/unstable/manual/html/live-manual.en.html
Erik