Skip to content

Missing packages - sudo, gnupg, lsb-release #225

@hermann-san

Description

@hermann-san

Hi there,
i've just installed Consul democracy on Debian Bullseye (from Ubuntu server 20.04) and I had some issues with missing packages on Bullseye. After I've installed them, the installer continued

/etc/sudoers file missing - with deploy user entry

missing packages
sudo
apt install sudo
gnupg
apt install gnupg
lsb-release
apt-get update && apt-get install -y lsb-release && apt-get clean all

There are also a few warnings regarding Postsgresql (further down below). I haven't looked into that yet



TASK [system : Update and upgrade apt packages (this may take a few minutes)] *************************************************
fatal: [10.10.8.81]: FAILED! => changed=false 
  module_stderr: |-
    Shared connection to 10.10.8.81 closed.
  module_stdout: |-
    /bin/sh: 1: sudo: not found
  msg: |-
    MODULE FAILURE
    See stdout/stderr for the exact error
  rc: 127




TASK [system : Update and upgrade apt packages (this may take a few minutes)] *************************************************
fatal: [10.10.8.81]: FAILED! => changed=false 
  module_stderr: |-
    Shared connection to 10.10.8.81 closed.
  module_stdout: |-
    /bin/sh: 1: sudo: not found
  msg: |-
    MODULE FAILURE
    See stdout/stderr for the exact error
  rc: 127


 
  
  TASK [system : Add Node key] **************************************************************************************************
fatal: [10.10.8.81]: FAILED! => changed=false 
  msg: 'Failed to find required executable "gpg" in paths: /usr/local/bin:/usr/bin:/bin:/usr/games:/sbin:/usr/sbin:/usr/local/sbin'

TASK [system : Get distribution codename] *************************************************************************************
fatal: [10.10.8.81]: FAILED! => changed=true 
  cmd: lsb_release -c --short
  delta: '0:00:00.002573'
  end: '2023-10-10 22:40:25.932705'
  msg: non-zero return code
  rc: 127
  start: '2023-10-10 22:40:25.930132'
  stderr: '/bin/sh: 1: lsb_release: not found'
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>






ASK [postgresql : Create PostgreSQL database] ********************************************************************************
[WARNING]: Using world-readable permissions for temporary files Ansible needs to create when becoming an unprivileged user.
This may be insecure. For information on securing this, see https://docs.ansible.com/ansible-
core/2.12/user_guide/become.html#risks-of-becoming-an-unprivileged-user
changed: [10.10.8.81] => changed=true 
  db: consul_production
  executed_commands:
  - CREATE DATABASE "consul_production"
  
  
  TASK [postgresql : Create PostgreSQL users] ***********************************************************************************
[WARNING]: Using world-readable permissions for temporary files Ansible needs to create when becoming an unprivileged user.
This may be insecure. For information on securing this, see https://docs.ansible.com/ansible-
core/2.12/user_guide/become.html#risks-of-becoming-an-unprivileged-user
changed: [10.10.8.81] => changed=true 
  queries:
  - 'CREATE USER "********" WITH ENCRYPTED PASSWORD %(password)s '
  - GRANT TEMPORARY, CREATE, CONNECT ON DATABASE "consul_production" TO "********"
  user: VALUE_SPECIFIED_IN_NO_LOG_PARAMETER

TASK [postgresql : Create the shared extensions schema] ***********************************************************************
[WARNING]: Using world-readable permissions for temporary files Ansible needs to create when becoming an unprivileged user.
This may be insecure. For information on securing this, see https://docs.ansible.com/ansible-
core/2.12/user_guide/become.html#risks-of-becoming-an-unprivileged-user
changed: [10.10.8.81] => changed=true 
  queries:
  - CREATE SCHEMA "shared_extensions" AUTHORIZATION "deploy"
  schema: shared_extensions

TASK [postgresql : Add PostgreSQL extensions] *********************************************************************************
[WARNING]: Using world-readable permissions for temporary files Ansible needs to create when becoming an unprivileged user.
This may be insecure. For information on securing this, see https://docs.ansible.com/ansible-
core/2.12/user_guide/become.html#risks-of-becoming-an-unprivileged-user
ok: [10.10.8.81] => (item=plpgsql) => changed=false 
  ansible_loop_var: item
  db: consul_production
  ext: plpgsql
  item: plpgsql
  queries: []
  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions