Sublime Forum

Cannot install gpg key for rpm install on Rocky Linux 9

#1

Hi, I’m not sure whether this is the exact same issue as tracked there : https://github.com/sublimehq/sublime_text/issues/6669

The instructions given in https://www.sublimetext.com/docs/linux_repositories.html will not work for installing the GPG keu as SHA1 hash is no longer supported in Rocky Linux 9 (nor should it be if I’m not mistaken).
I get the following error:

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

warning: Signature not supported. Hash algorithm SHA1 not available.
error: https://download.sublimetext.com/sublimehq-rpm-pub.gpg: key 1 import failed.

0 Likes

#2

Does anyone know if this is a known problem, or how to install sublime-text on RL9 ?

0 Likes

#3

The new version of rpm wants the packages to be properly signed. Rocky,fedora, and any rhel/fedora based repo can’t install. There has been multiple post regarding this problem.

  1. https://forum.sublimetext.com/t/installation-in-fedora-43-not-possible/77387

  2. https://forum.sublimetext.com/t/unable-to-install-sublime-text-or-merge-on-fedora-43/77440

All you can do now is wait until they rebuild the package not using sha1. In the meantime I have been using vscodium/nvim. I don’t know how long it will take to the this fixed. There is also a git issue on this subject. You could also bypass the check by using flags. If you are using a personal machine then do that, but if you are using a work computer, I don’t recommend doing that

1 Like

#4

Could you please cite the commands for Fedora/dnf to install bypassing key check and then to cancel bypass for further updates.

This to install?

sudo rpm -i --nodigest sublime-text-*.rpm

0 Likes

#5

This has worked for me on Fedora. Written by feligato on ST bugtracker.

cd /var/cache/libdnf5/sublime-text-xxxx/packages/

sudo rpm -ivh --nodigest --nofiledigest sublime-text-4200-1.x86_64.rpm

0 Likes