install: fails on Debian 11 without gnupg if debconf-set-selections already installed
Summary
Using a fresh Debian 11 image on Linode, the install script exits at the following line due to lack of gnupg
root@localhost:~# wget -qO- https://mirror.mythic-beasts.com/mythic/support@mythic-beasts.com.gpg.key | apt-key add -
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
Steps to reproduce
Using a fresh Debian 11 image on Linode, the install script exits at the following line due to lack of gnupg
- create linode with Debian 11 image
- follow documentation to install (https://wiki.sympl.host/view/Installing_Sympl)
- a)
wget https://gitlab.mythic-beasts.com/sympl/install/raw/master/install.sh
- b)
bash install.sh
- watch installer die at
Adding repository key...
- specifically,
apt-key
fails to add the gpg public key due to missing dependency, see logs below
EDIT: It appears that gnupg
is already listed as a dependency in the install script, but never installed since debconf-set-selections
is already installed on the Linode image
Example Project
Follow documentation (https://wiki.sympl.host/view/Installing_Sympl) on Debian 11 image which doesn't contain a gnupg package, such as Linode's Debian 11 image
What is the current bug behavior?
Installer dies part way though, as above
What is the expected correct behavior?
Installer completes successfully!
Relevant logs and/or screenshots
Before running script
root@localhost:~# which debconf-set-selections
/usr/bin/debconf-set-selections
Installer failing:
-----------------------------------------------------------------------
Sympl Installer v20210818
-----------------------------------------------------------------------
This script will help you install Sympl on a Debian Linux or Raspberry
Pi OS server with minimal hassle, and give you some intial pointers.
Installing initial dependencies...
All packages are up to date.
Installing Sympl from 'bullseye' repository.
Setting defaults...
Adding repository key...root@localhost:~#
Failing line ran separately:
root@localhost:~# wget -qO- https://mirror.mythic-beasts.com/mythic/support@mythic-beasts.com.gpg.key | apt-key add -
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
Possible fixes
Lines causing issues:
if [ "x$(which debconf-set-selections)" = "x" ]; then
wget -qO- https://mirror.mythic-beasts.com/mythic/support@mythic-beasts.com.gpg.key | apt-key add -
Either remove the check around dependency debconf-set-selections
installation, or separate gnupg
into a separate dependency installation block
/cc @kelduum