Comments (5)
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.
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.
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.
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.
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)
- Missing argument for ITL command `mysql_query`
- Missing argument "-X" for ITL command mail-host-notification
- icinga2 API call example error in documentation
- Handle signals gracefully (safely) HOT 1
- null value in column "downtime_end" of relation "sla_history_downtime" violates not-null constraint HOT 11
- High InfluxDB disk usage after upgrading to 2.14.0 HOT 7
- icinga2 may be removed from Debian armel, mips64el, ppc64el, and riscv64 HOT 8
- On Windows use SChannel, not OpenSSL, for TLS connections
- Event Stream API: Dysfunctional "queue" Parameter
- Cannot install icinga2 at Fedora39 HOT 4
- Release Version v2.14.2 HOT 2
- packages.icinga.com is down HOT 1
- ssl_cert: Allow forcing IPv4 or IPv6 check HOT 3
- Certain combinations of check periods and check intervals prevent service status updates.
- JsonRpcConnection#Send*() queues messages in memory even after #Disconnect() HOT 2
- `HttpServerConnection` performs TLS shutdown without a timeout
- Re-notification of OK does not work HOT 3
- Re-think CpuBoundWork implementation and usage HOT 1
- Checks executed twice and no recovery notifications are sent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icinga2.