GithubHelp home page GithubHelp logo

Comments (5)

oxzi avatar oxzi commented on May 26, 2024

Thanks for trying out Icinga 2 and creating an issue.

I took the liberty of editing your entry so that the shell output is displayed as a code block.

icinga@icinga:~/Downloads$ sudo wget -O - https://packages.icinga.com/icinga.key | gpg --dearmor -o /usr/share/keyrings/icinga-archive-keyring.gpg
[...]
gpg: can't create '/usr/share/keyrings/icinga-archive-keyring.gpg': Permission denied

You are using sudo for wget -O - […] which then downloads the key as the root user to put it on the stdout. However, your following gpg command is then run as your local icinga user again. Thus, you also need to prefix this command with sudo, as well as every following commands requiring evaluated privileges.

As the linked documentation expects the root user to enter the command, you could also switch to a root shell for installation as most commands are requiring root permissions anyway.

from icinga2.

Zeronic avatar Zeronic commented on May 26, 2024

It more broken that that.

I've tried twice with clean installs of Lubuntu and even the key is broken from my last try, splitting up the key settings.

Err:8 https://packages.icinga.com/ubuntu icinga-focal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C6E319C334410682

from icinga2.

oxzi avatar oxzi commented on May 26, 2024

Could you please paste a full terminal output of everything you did to get to this error? Are you using the root user?

from icinga2.

Zeronic avatar Zeronic commented on May 26, 2024

I split this command wget -O - https://packages.icinga.com/icinga.key | gpg --dearmor -o /usr/share/keyrings/icinga-archive-keyring.gpg

wget -O - https://packages.icinga.com/icinga.key
sudo gpg --dearmor -o /usr/share/keyrings/icinga-archive-keyring.gpg

I've rebuild this VM a few time to try to get this app to install on Lubuntu 22.04.2 LTS but it always seems to fail.

from icinga2.

oxzi avatar oxzi commented on May 26, 2024

Pardon, but I am simply not able to reproduce where your installation fails. As you haven't posted a full log, it is hard for me to follow your steps.

Please retry with using the root user for everything.

Just to make sure, I tried the installation within a container which should be very similar to your setup:

root@633a88b00e68:/# cat /etc/issue
Ubuntu 22.04.3 LTS \n \l

root@633a88b00e68:/# id
uid=0(root) gid=0(root) groups=0(root)

root@633a88b00e68:/# apt update
[ . . . ]
root@633a88b00e68:/# apt -y install apt-transport-https wget gnupg
[ . . . ]

root@633a88b00e68:/# wget -O - https://packages.icinga.com/icinga.key | gpg --dearmor -o /usr/share/keyrings/icinga-archive-keyring.gpg

--2024-01-23 08:07:34--  https://packages.icinga.com/icinga.key
Resolving packages.icinga.com (packages.icinga.com)... 185.233.189.126
Connecting to packages.icinga.com (packages.icinga.com)|185.233.189.126|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1723 (1.7K) [application/pgp-keys]
Saving to: 'STDOUT'

-                           100%[==========================================>]   1.68K  --.-KB/s    in 0s

2024-01-23 08:07:34 (1003 MB/s) - written to stdout [1723/1723]

root@633a88b00e68:/# . /etc/os-release; if [ ! -z ${UBUNTU_CODENAME+x} ]; then DIST="${UBUNTU_CODENAME}"; else
DIST="$(lsb_release -c| awk '{print $2}')"; fi; \
 echo "deb [signed-by=/usr/share/keyrings/icinga-archive-keyring.gpg] https://packages.icinga.com/ubuntu icinga-${DIST} main" > \
 /etc/apt/sources.list.d/${DIST}-icinga.list
 echo "deb-src [signed-by=/usr/share/keyrings/icinga-archive-keyring.gpg] https://packages.icinga.com/ubuntu icinga-${DIST} main" >> \
 /etc/apt/sources.list.d/${DIST}-icinga.list
[ . . . ]

root@633a88b00e68:/# apt -y install icinga2
[ . . . ]

root@633a88b00e68:/# icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.14.2-1)
[ . . . ]

from icinga2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.