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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ distribution regardless its version.
Packages hosted by [Packagecloud](https://packagecloud.io/gbt/release):

```shell
# 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 -
Comment on lines +113 to 116
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 :-).

echo 'deb https://packagecloud.io/gbt/release/ubuntu/ xenial main' | sudo tee /etc/apt/sources.list.d/gbt.list >/dev/null
sudo apt-get update
Expand Down