今天打开 ASF 发现它已经自动停止了,尝试重新启动无法成功,可能是跟版本更新有关,执行了几个修复操作供大家参考。

第一个报错没有截图,只能将修复操作记录下来

删除 .NET 5.0

cd /opt/

rm -r dotnet

cd /usr/local/bin

rm -r dotnet

安装 .NET 6.0

wget https://download.visualstudio.microsoft.com/download/pr/adcd9310-5072-4179-9b8b-16563b897995/15a7595966f488c74909e4a9273c0e24/dotnet-sdk-6.0.100-linux-arm64.tar.gz

sudo mkdir -p /opt/dotnet

sudo tar zxf dotnet.tar.gz -C /opt/dotnet

sudo ln -s /opt/dotnet/dotnet /usr/local/bin

查看 dotnet 版本

dotnet --info

第二个错误为:

2021-12-05 09:25:45|dotnet-33|ERROR|ASF|InitCore() You're attempting to run ASF as the administrator (root). This causes a significant security risk to your machine, and as ASF does not require root access for its operation, we do not support this scenario. Supply --ignore-unsupported-environment argument if you really know what you're doing.

我们可以使用非 root 用户运行 asf,也可以直接使用以下命令运行 asf

./ArchiSteamFarm.sh --ignore-unsupported-environment