Sublime Forum

Gpg: no valid OpenPGP data found

#1

I flow the instruction of installation:

$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add 

but I get the result:

gpg: no valid OpenPGP data found.

what’s wrong with me?

and when I try to download the file “sublimehq-pub.gpg”, get the result:

Unable to establish SSL connection.

Detail:

1 Like

#2

You can try like below:

$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg
$ sudo apt-key add sublimehq-pub.gpg

1 Like

#3

This was happening to me. It seemed to improve when, using wget, I used the -qO parameter instead of -q0 or just -q.
This should have been obvious from the man page
However I still have a warning that the sublime-text package could not be authenticated, so I will look later.

0 Likes

#4

Came across this thread when having the same problem as OP. Wanted to share my variation of the solution presented by “crazysuperjeff”. FYI, I’m running Linux Mint 19.

When trying these commands, directly, as-is…

$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg
$ sudo apt-key add sublimehq-pub.gpg

The key would “download” (i.e. it would be shown in my terminal) but when I tried the 2nd command to add it, I would get this error:

“gpg: can’t open ‘sublimehq-pub.gpg’: No such file or directory”

So what did work for me, was the click on the link for the .gpg file itself (https://download.sublimetext.com/sublimehq-pub.gpg), save the file to wherever (downloads, desktop, etc), then ‘cd’ into that directory and run the 2nd command.

Once I did that, I got the OK message from my terminal.

0 Likes

#5

I have no problem installing in Ubuntu. I follow the instructions exactly. There is a “-” after the “add”.

0 Likes

#6

Wanted to confirm that I just tried the “standard” command for apt (that is posted on the download page) in Ubuntu 18.04 LTS, and it worked first time, perfectly. Maybe the command runs into issues when using non-Ubuntu derivatives?

0 Likes

#7

same problem

0 Likes