Sutrisno
Sutrisno

Reputation: 91

Install go-swagger on Linux Ubuntu

I want to install go-swagger on LInux Ubuntu 22.04 but i have blocker. This is my code to install go-swagger.

sudo apt install -y apt-transport-https gnupg curl
curl -1sLf 'https://dl.cloudsmith.io/public/go-swagger/go-swagger/gpg.2F8CB673971B5C9E.key' | sudo apt-key add -
curl -1sLf 'https://dl.cloudsmith.io/public/go-swagger/go-swagger/config.deb.txt?distro=debian&codename=any-version' | sudo tee /etc/apt/sources.list.d/go-swagger-go-swagger.list
sudo apt update 
sudo apt install swagger

but the result on my laptop

Unable to locate package swagger

please help me to the solving my blocker

Upvotes: 4

Views: 1384

Answers (1)

Martheen
Martheen

Reputation: 5580

This is similar to the bug on Caddy due to changes in CloudSmith. Run

sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https

curl -1sLf 'https://dl.cloudsmith.io/public/go-swagger/go-swagger/gpg.2F8CB673971B5C9E.key' | sudo gpg --dearmor -o /usr/share/keyrings/go-swagger-go-swagger-archive-keyring.gpg

to import the key.

Upvotes: 2

Related Questions