Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sugestion to improve repo documentation apt-key is deprecated #251

Closed
basd82 opened this issue Jul 2, 2022 · 4 comments
Closed

Sugestion to improve repo documentation apt-key is deprecated #251

basd82 opened this issue Jul 2, 2022 · 4 comments

Comments

@basd82
Copy link

basd82 commented Jul 2, 2022

the use of apt-key is deprecated

i sugested the documentation www.icinga.com must be updated to :

curl https://packages.icinga.com/icinga.key | gpg --dearmour -o /usr/share/keyrings/Icinga.gpg

apt-get update

apt-get -y install apt-transport-https wget gnupg 

. /etc/os-release; if [ ! -z ${UBUNTU_CODENAME+x} ]; then 
DIST="${UBUNTU_CODENAME}"; else DIST="$(lsb_release -c| awk '{print $2}')"; fi; \
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/Icinga.gpg] https://packages.icinga.com/ubuntu icinga-${DIST} main" > \
/etc/apt/sources.list.d/${DIST}-icinga.list
echo "deb-src [arch=amd64 signed-by=/usr/share/keyrings/Icinga.gpg] https://packages.icinga.com/ubuntu icinga-${DIST} main" >> \
/etc/apt/sources.list.d/${DIST}-icinga.list
apt update
@basd82 basd82 changed the title Sugestion to improve repo documentation Sugestion to improve repo documentation apt-key is deprecated Jul 2, 2022
@julianbrost
Copy link

Random side note (just as a hint to incorporate when touching this): when the file is called .asc, APT should also be able to use ASCII-armored files directly. Alternatively, the binary file could also be put on the web server. Both would remove the need to install GnuPG explicitly.

@basd82
Copy link
Author

basd82 commented Jul 4, 2022 via email

@chriscroome
Copy link

The documentation should probably also be updated to use deb822 formatted repositories, for example:

cat /etc/apt/sources.list.d/icinga.sources
Types: deb
URIs: https://packages.icinga.com/debian
Suites: icinga-bookworm
Architectures: amd64
Components: main
Signed-By: /etc/apt/keyrings/icinga.gpg

@Al2Klimov
Copy link
Member

Fixed in https://github.com/Icinga/packages.icinga.com/pull/16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants