Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • Sympl Sympl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Sympl
  • SymplSympl
  • Issues
  • #316

Closed
Open
Created Aug 22, 2021 by Christopher Wilkinson@techwilk

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

Edited Aug 22, 2021 by Christopher Wilkinson
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking