swiftly icon indicating copy to clipboard operation
swiftly copied to clipboard

swiftly install latest failed on Ubuntu

Open wangzhizhou opened this issue 1 year ago • 5 comments

image

wangzhizhou avatar Sep 23 '24 10:09 wangzhizhou

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")

Nobody1707 avatar Sep 24 '24 17:09 Nobody1707

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

adam-fowler avatar Sep 24 '24 17:09 adam-fowler

@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.

cmcgee1024 avatar Sep 24 '24 18:09 cmcgee1024

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 <[email protected]>" [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?

Nobody1707 avatar Sep 25 '24 00:09 Nobody1707

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/

cmcgee1024 avatar Sep 25 '24 15:09 cmcgee1024

This should be fixed in the new 1.0 swiftly release.

cmcgee1024 avatar Jul 31 '25 17:07 cmcgee1024