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

swiftly install latest failed on Ubuntu #169

Open
wangzhizhou opened this issue Sep 23, 2024 · 5 comments
Open

swiftly install latest failed on Ubuntu #169

wangzhizhou opened this issue Sep 23, 2024 · 5 comments

Comments

@wangzhizhou
Copy link

image

@wangzhizhou wangzhizhou changed the title swiftly install latest failed on swiftly install latest failed on Ubuntu Sep 23, 2024
@Nobody1707
Copy link

The same issue happens on OpenSUSE Tumbleweed.

❯ swiftly install 6.0
Fetching the latest stable Swift 6.0 release...
Refreshing Swift PGP keys...
Installing Swift 6.0.0
                             Downloading Swift 6.0.0
100% [=============================================================]
Downloaded 773.3 MiB of 773.3 MiB
Downloading toolchain signature...
Verifying toolchain signature...
gpg: Signature made Mon 16 Sep 2024 04:14:14 PM CDT
gpg:                using RSA key EF80A866B47A981F
gpg: Can't check signature: No public key
Error: Toolchain signature verification failed: Error(message: "gpg exited with non-zero status: 2")

@adam-fowler
Copy link
Contributor

@cmcgee1024 This is the same error I received.
I got around this by running the install script again

@cmcgee1024
Copy link
Member

cmcgee1024 commented Sep 24, 2024

@Nobody1707 and @wangzhizhou, does manually adding the swift.org keys help to work around the problem?

curl --silent --retry 3 --location --fail https://swift.org/keys/all-keys.asc | gpg --import -

This is what the swiftly install script does to import the swift.org keys. It's just that there are new keys for the 6.x toolchains.

@Nobody1707
Copy link

Yes, it updated successfully after manually adding the keys.

100% [=============================================================]
Downloaded 773.3 MiB of 773.3 MiB
Downloading toolchain signature...
Verifying toolchain signature...
gpg: Signature made Mon 16 Sep 2024 04:14:14 PM CDT
gpg:                using RSA key EF80A866B47A981F
gpg: Good signature from "Swift 6.x Release Signing Key <swift-infrastructure@forums.swift.org>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 52BB 7E3D E28A 71BE 22EC  05FF EF80 A866 B47A 981F
Extracting toolchain...
Swift 6.0.0 installed successfully!
Uninstalling Swift 5.10.0...done
Successfully updated Swift 5.10.0 ⟶ Swift 6.0.0

Should I be worried about the warning?

@cmcgee1024
Copy link
Member

Thanks @Nobody1707 for confirming that the workaround is working.

In terms of the warning, this is expected. You can see a note about it in the Linux toolchain download instructions here on the swift website: https://www.swift.org/install/linux/tarball/

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

No branches or pull requests

4 participants