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

Update README.md #63

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Update README.md #63

wants to merge 2 commits into from

Conversation

havran
Copy link

@havran havran commented Feb 8, 2023

Fix apt-key deprecation warning on latest ubuntu 22.04.

Fix apt-key deprecation warning on latest ubuntu 22.04.
Remove unnecessary line.
Comment on lines +113 to 116
# When you get message "Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8))."
# use command:
# curl -L https://packagecloud.io/gbt/release/gpgkey | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/gbt.gpg >/dev/null
curl -L https://packagecloud.io/gbt/release/gpgkey | sudo apt-key add -
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we do that for any Ubuntu distro version by default?

Suggested change
# When you get message "Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8))."
# use command:
# curl -L https://packagecloud.io/gbt/release/gpgkey | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/gbt.gpg >/dev/null
curl -L https://packagecloud.io/gbt/release/gpgkey | sudo apt-key add -
curl -L https://packagecloud.io/gbt/release/gpgkey | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/gbt.gpg >/dev/null

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure - I have this problem only on latest LTS 22.04.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to have one solution only that will just work across all Ubuntu releases. Please could you use the above across few latest Ubuntu versions (14, 16, 18, 20, 22)?

Copy link
Author

@havran havran Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I try check this with docker ubuntu images, but this is probably not good idea, because this are striped out. I don't get any warning in ubuntu:22.04.

But I read deprecation information in man page for apt-key:

image

Long story short - probably is safe use old command in Ubuntu/Debian <= 22.04/11 but newer version should use gpg. I understand, have one solution is better, but Ubuntu do not make this easy :-), especially when user (like me) hate warning when use commands :-).

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

Successfully merging this pull request may close these issues.

2 participants