Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gpg: no valid OpenPGP data found. while installing SQL Server in Ubuntu 18.04

I'm installing SQL Server on Linux Ubuntu 18.04, according to the tutorial https://learn.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-ver15, however when executing the first command

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

I get the following error

gpg: no valid OpenPGP data found.

I've done several researches about the error, installed ca-certificates, installed all the gpg packages but I still can't solve the problem, can someone direct me to a solution?

like image 273
godoy.alexandre Avatar asked Sep 08 '25 10:09

godoy.alexandre


1 Answers

I have the same problem. I believe 99.99% of it's a connection issue. You might be connecting through a firewall or VPN. I have the same issue when I only connect through the company network. I tried the same command on a machine at my house, and it's working just fine.

like image 85
yasar alzakout Avatar answered Sep 11 '25 11:09

yasar alzakout