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

[deb package] Ubuntu 22.04 deprecates / #2040

Open
almereyda opened this issue Aug 16, 2022 · 4 comments
Open

[deb package] Ubuntu 22.04 deprecates / #2040

almereyda opened this issue Aug 16, 2022 · 4 comments

Comments

@almereyda
Copy link

What is the current behavior?

When running apt update on Ubuntu 22.04, a warning is thrown:

$ apt update
...
W: https://cli-assets.heroku.com/apt/./InRelease: Schlüssel ist im veralteten Schlüsselbund trusted.gpg gespeichert (/etc/apt/trusted.gpg), siehe den Abschnitt MISSBILLIGUNG in apt-key(8) für Details.

This error is also appears when running the Ubuntu/Debian installation script from https://devcenter.heroku.com/articles/heroku-cli#install-with-ubuntu-debian-apt-get

What is the expected behavior?

apt does not complain about anything.

Which are known workarounds?

One can manually export the GPG key from apt-key and save a dearmoured copy in /usr/share/keyrins, plus has to add the signing key via a [signed-by=/usr/share/keyrings/heroku.gpg] declaration in /etc/apt/sources.list.d/heroku.list

References:

@NJT145
Copy link

NJT145 commented May 24, 2023

If there is any conflict caused by the ubuntu version, you can check the version number and do whatever is necessary according to that number. take a look at here: https://linuxize.com/post/how-to-check-your-ubuntu-version/
For the convertion of deprecated version of keys to supported new one, check these:
https://askubuntu.com/questions/1407632/key-is-stored-in-legacy-trusted-gpg-keyring-etc-apt-trusted-gpg
https://itsfoss.com/key-is-stored-in-legacy-trusted-gpg/

@NJT145
Copy link

NJT145 commented May 24, 2023

Of course, the uninstallation process for heroku should check the fixed keyring, or this will cause more troubles... Didn't check that, so do it at your own risk until a Heroku developer answers this issue.

@NJT145
Copy link

NJT145 commented Sep 6, 2023

still got this warning:

W: https://cli-assets.heroku.com/channels/stable/apt/./InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

And, for the uninstall script, there is no heroku-toolbelt. So, you can better change this script to

sudo apt-get remove heroku heroku*
sudo rm /etc/apt/sources.list.d/heroku.list

@sbosio
Copy link
Contributor

sbosio commented May 3, 2024

This is being tracked by this GUS Work Item (Heroku internal).

There's a proposed solution on #1999, but here we are required a few more changes around the uninstall script that we should incorporate before reviewing and merging.

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

No branches or pull requests

3 participants