Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to locate package swagger #2800

Closed
emaborsa opened this issue Jul 12, 2022 · 3 comments · Fixed by #2834
Closed

Unable to locate package swagger #2800

emaborsa opened this issue Jul 12, 2022 · 3 comments · Fixed by #2834

Comments

@emaborsa
Copy link

As written here , I am trying to install swagger using the following command:

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

What I get is Unable to locate package swagger, maybe because of:

E: The repository 'https://dl.cloudsmith.io/public/go-swagger/go-swagger/deb/debian any-version InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

I am working on Ubuntu 20.04LTS on Windows WSL.

@tina-hello
Copy link
Contributor

tina-hello commented Sep 14, 2022

Try

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

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

@PMohanJ
Copy link

PMohanJ commented Sep 14, 2022

Thanks @tina-hello, it worked!

casualjim added a commit that referenced this issue Sep 14, 2022
Fix #2800 Update key import method for debian
@Lesliefans0-0
Copy link

Try

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

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

Thank you so much!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants