Swift 我正试图在我的raspberrypi上安装Vapor,但出现了奇怪的错误

Swift 我正试图在我的raspberrypi上安装Vapor,但出现了奇怪的错误,swift,raspbian,vapor,Swift,Raspbian,Vapor,我正在运行Raspbian,到目前为止已经安装了Swift 5.1.5和克隆的Vapor Branch 18.0.0 beta 27。我似乎无法在我的系统上安装Swift的5.2版 尽管如此,下一步是构建Vapor,但它给了我以下错误: sudo swift build-c发行版 Updating https://github.com/jpsim/Yams.git Updating https://github.com/apple/swift-nio.git Updating https://g

我正在运行Raspbian,到目前为止已经安装了Swift 5.1.5和克隆的Vapor Branch 18.0.0 beta 27。我似乎无法在我的系统上安装Swift的5.2版

尽管如此,下一步是构建Vapor,但它给了我以下错误:

sudo swift build-c发行版

Updating https://github.com/jpsim/Yams.git
Updating https://github.com/apple/swift-nio.git
Updating https://github.com/vapor/console-kit.git
Updating https://github.com/apple/swift-log.git
Updating https://github.com/tanner0101/mustache.git
https://github.com/apple/swift-nio.git @ master: error: terminated(128): git -C /home/pi/Downloads/toolbox/.build/repositories/swift-nio-b68c973e rev-parse --verify 'master^{commit}' output:
    fatal: Needed a single revision

不确定从那里去哪里,无法在线找到任何相关信息。

Vapor 4和新工具箱都需要Swift 5.2-您需要先安装

接下来是工具箱的旧版本,您可以在


最后,你可能不需要工具箱。它用于创建新项目。如果您只想构建或运行现有的,只需使用swift命令

,因此我实际上必须安装ubuntu 20.04 LTS,谢谢:)