(This is similar to Nov. 25 item re gpg key but this is for latest dnf update)
I have sublime-text version 4200. I tried to follow procedure for update to 4220
(dnf method) at https://www.sublimetext.com/docs/linux_repositories.html#dnf
that asked me to install a repository. I assumed this was a new repository,
so I deleted the old one using ‘rm /etc/yum.repos.d/sublime-text.repo’.
Probably a mistake. The command given to install a GPG key “rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg” gives this:
“warning: Signature not supported. Hash algorithm SHA1 not available.
error: https://download.sublimetext.com/sublimehq-rpm-pub.gpg: key 1 import failed.” So now I have no repository to get the update via dnf.
Thanks for any help.
George Reeke
Error with update procedure on rocky 9
I just tested on a fresh rocky 9 install and installing Sublime Text worked just fine using dnf. Importing the key results in some errors because we include multiple keys and multiple signatures for backwards compatibility; those can be ignored.
Thanks. What I think I really need is the current repo name/location, recalling that I stupidly removed the one I was using, the one where I got 4200. If I try:
“dnf config-manager --add-repo sublime-text”
dnf seems to get it from some remnant of my old one. It says (no key errors):
“Adding repo from: file:///root/sublime-text”
That is clearly wrong, but just to see what would happen, I tried:
“dnf update sublime-text” and got a bunch of errors like this:
"Errors during downloading metadata for repository ‘root_sublime-text’:
- Curl error (37): Couldn’t read a file:// file for file:///root/sublime-text/repodata/repomd.xml [Couldn’t open file /root/sublime-text/repodata/repomd.xml]
Basically, I cannot find from the update notice where to go to get the update.
George
As per the instructions you should be running sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo.
OK, that mostly does it. I installed the repo you indicated–maybe I didn’t get the full name off the update site before. ‘dnf update sublime-text’ then gave errors like in my previous message. Figured out I had not totally gotten rid of the old repo. “rm /etc/yum.repos.d/root_sublime-text.repo” did that (my earlier use of config-manager to delete the old one made it disappear from repo lists but it was still accessed for the update–strange). Then ‘dnf update sublime-text’ got me build 4213. Thanks again.
George