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

Issue

I’m installing SQL Server on Linux Ubuntu 18.04, according to the tutorial https://docs.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?

Solution

My problem was the internet connection configuration, in my /etc/netplan/00-installer-config.yaml file, the network mask was wrong

Answered By – godoy.alexandre

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published