ubuntu-defaults-image on 18.04 occured the error "/usr/bin/env: 'gpg': No such file or directory E: GPG exited with error status 127"
** current situation
I tried to build the private iso on "ubuntu Desktop 18.04 LTS" and I have used 'ubuntu-
But it displays the message as the below and quits.
>[2019-04-15 20:21:07] lb_bootstrap
>P: Setting up cleanup function
>[2019-04-15 20:21:07] lb_bootstrap_cache restore
>P: Restoring bootstrap stage from cache...
>[2019-04-15 20:21:07] lb_bootstrap_copy
>[2019-04-15 20:21:07] lb_bootstrap_
>[2019-04-15 20:21:07] lb_bootstrap_
> :
>[2019-04-15 20:27:42] lb_chroot_archives chroot install
>P: Configuring file /etc/apt/
>Hit:1 http://
>Get:2 http://
>Get:3 http://
>Get:4 http://
>Get:5 http://
>Get:6 http://
>Get:7 http://
>Get:8 http://
>Get:9 http://
>Get:10 http://
>Get:11 http://
>Get:12 http://
>Get:13 http://
>Fetched 1902 kB in 9s (218 kB/s)
>Reading package lists...
>/usr/bin/env: 'gpg': No such file or directory
>E: GPG exited with error status 127
>P: Begin unmounting filesystems...
>P: Saving caches...
** circumstances&
I mean just to made the trial building therefore I use the existing any deb file in /var/cache/
I execute 'ubuntu-
bionicbeaver@
The reason why I execute the local one of 'ubuntu-
That changes is the below.
># Make sure all our dependencies (which are Recommends of our package) are
># installed. This is a bit dubious long-term, but seems to be needed to
># make autobuilds reliable.
>case $ARCH in
> *amd64|*i386)
> $SUDO apt-get -y install syslinux-
> #$SUDO apt-get -y install syslinux-
> ;;
>esac
'ubuntu-
But 'syslinux-
>The Bionic Beaver (supported)
> :
>Built packages
>syslinux-
>syslinux-
>syslinux-
>syslinux-
>syslinux-
>syslinux-
(https:/
And so I have changed the code of 'ubuntu-
** verification
1) the cause of the error "/usr/bin/env: 'gpg': No such file or directory E: GPG exited with error status 127".
'ubuntu-
'gpg' is necessary to prepare the contents of the directory "./chroot" and so in the occasion to use 'gpg',it fails.
The reason why gpg(gnupg) is not installed in the directory "./chroot" is that the package of gpg(gnupg) is "Priority: optional" in 'Bionic(18.04)' as the below.
>Package: gnupg
>Architecture: amd64
>Version: 2.2.4-1ubuntu1
>Multi-Arch: foreign
>Priority: optional ※
>Section: utils
>Source: gnupg2
>Origin: Ubuntu
(http://
'ubuntu-
On xenial(16.04) I've tried to make the iso image of "xenial". This same error of 'gpg' is not occurred.
One of reasons why the error does not occur is that the package gpg(gnupg) is "Priority: important" in xenial(16.04) as the below.
>Package: gnupg
>Priority: important ※
>Section: utils
>Installed-Size: 1680
>Maintainer: Ubuntu Developers <email address hidden>
>Original-
>Architecture: amd64
>Version: 1.4.20-1ubuntu3
(http://
*REMARK*
I've tried to find the way to install 'gpg'(gnupg) into the directory "./chroot". Bud I did not find it.
** requested items
I would like to know "How could I resolve? Are there workarounds?".
Especiall I'd like to know the way to install 'gpg' into the directory "./chroot".
I would appreciate your guidance.
** environments
1) Base linux
Linux 4.18.0-17-generic #18~18.04.1-Ubuntu SMP Fri Mar 15 15:27:12 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
2) tools
--- ubuntu-
Package: ubuntu-
Architecture: all
Version: 0.57
Priority: optional
Section: universe/devel
Origin: Ubuntu
--- live build suite ---
3.0~a57-1
Package: live-build
Architecture: all
Version: 3.0~a57-1ubuntu34.1
Priority: optional
Section: misc
Origin: Ubuntu
--- debootstrap ---
debootstrap 1.0.95ubuntu0.3
Package: debootstrap
Architecture: all
Version: 1.0.95ubuntu0.3
Priority: extra
Section: admin
Origin: Ubuntu
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: