各个Linux版本的报错
mengshouer opened this issue · comments
系统是CentOS7 x64
[错误] 自动更新steamcommunity-hosts-脚本未找到 请检查日志及网络
[错误] 自动清理steamcommunity-hosts-日志脚本未找到 请检查日志及网络
有影响吗?
装了Debian8 x64
安装报错
wget -O ASF-install.sh https://github.com/zsnmwy/ArchiSteamFarm-Install-Script/releases/download/V1.0/ASF-install.sh && bash ASF-install.sh
converted 'https://github.com/zsnmwy/ArchiSteamFarm-Install-Script/releases/download/V1.0/ASF-install.sh' (ANSI_X3.4-1968) -> 'https://github.com/zsnmwy/ArchiSteamFarm-Install-Script/releases/download/V1.0/ASF-install.sh' (UTF-8)
--2018-04-12 08:47:27-- https://github.com/zsnmwy/ArchiSteamFarm-Install-Script/releases/download/V1.0/ASF-install.sh
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
ERROR: The certificate of 'github.com' is not trusted.
ERROR: The certificate of 'github.com' hasn't got a known issuer.
Ubuntu 16 x64的问题
没有社区hosts报错,但是
你的选择是(数字):
2
1.常规方式启动ArchiSteamFarm
2.添加ArchiSteamFarm到PM2进行 管理 && 启动 && 查看ArchiSteamFarm日志
3.从PM2中移除ArchiSteamFarm
4.查看ArchiSteamFarm的日志
——————————————————————————————
5.screen方式启动ArchiSteamFarm(强烈推荐使用PM2)
——————————————————————————————
6.关闭Firewalld并启用IPtables(仅仅限于centos7)
——————————————————————————————
7.移除ArchiSteamFarm(不会卸载node/nvm/.NET Core)
8.返回上一层
9.退出
ArchiSteamFarm 当前状态: 已安装 但 未加入PM2进行管理
你的选择是(数字):
1
ASF-install.sh: line 643: dotnet: command not found
选2启动提示一堆东西未安装。
Centos 7:
有没有steam社区的hosts更新脚本大多数情况下都没有什么问题,因为在安装的时候就已经把hosts用Cloudflare DNS over HTTPS 更新一次进去了。
Remove_hosts_log_week() {
while true; do
echo -e "${Info} ${GreenBG} 尝试获取remove hosts log 脚本 ${Font}"
if [[ ${qcloud_enable} == "1" ]]; then
wget http://p2feur8d9.bkt.clouddn.com/Remove_hosts_log_week.sh
else
wget --no-check-certificate wget --no-check-certificate https://github.com/zsnmwy/Temporary-storage/releases/download/V0.5/Remove_hosts_log_week.sh
fi
if [[ -e Remove_hosts_log_week.sh ]]; then
chmod 777 Remove_hosts_log_week.sh
mv Remove_hosts_log_week.sh /etc/cron.weekly
echo -e "${OK} ${GreenBG} Add Remove_hosts_log_week.sh ${Font}"
break
else
echo -e "${Error} ${RedBG} 网络超时 下载失败 重新下载 ${Font}"
fi
done
}
这里确实有一个bug,Remove_hosts_log_week
多了些参数wget --no-check-certificate
。但是经过我的测试并不影响这个下载的流程,我会修掉这个bug。
下面是我的测试,依然是可以正常下载到相应的文件。
root@raspberrypi:/etc/cron.hourly# wget --no-check-certificate wget --no-check-certificate https://github.com/zsnmwy/Temporary-storage/releases/download/V0.5/Remove_hosts_log_week.sh
--2018-04-12 14:23:01-- http://wget/
Resolving wget (wget)... failed: No address associated with hostname.
wget: unable to resolve host address ‘wget’
--2018-04-12 14:23:01-- https://github.com/zsnmwy/Temporary-storage/releases/download/V0.5/Remove_hosts_log_week.sh
Resolving github.com (github.com)... 192.30.255.113, 192.30.255.112
Connecting to github.com (github.com)|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/116959526/85f788f2-39f7-11e8-974f-1b2dbbb3ae26?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180412%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180412T142302Z&X-Amz-Expires=300&X-Amz-Signature=1ee7429c4a8751262161083954e115f6779b557e859f6f179b2d87ab79046c56&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DRemove_hosts_log_week.sh&response-content-type=application%2Foctet-stream [following]
--2018-04-12 14:23:02-- https://github-production-release-asset-2e65be.s3.amazonaws.com/116959526/85f788f2-39f7-11e8-974f-1b2dbbb3ae26?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180412%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180412T142302Z&X-Amz-Expires=300&X-Amz-Signature=1ee7429c4a8751262161083954e115f6779b557e859f6f179b2d87ab79046c56&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DRemove_hosts_log_week.sh&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.164.123
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.164.123|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 44 [application/octet-stream]
Saving to: ‘Remove_hosts_log_week.sh’
Remove_hosts_log_week.sh 100%[===============================================================================>] 44 --.-KB/s in 0s
2018-04-12 14:23:03 (403 KB/s) - ‘Remove_hosts_log_week.sh’ saved [44/44]
FINISHED --2018-04-12 14:23:03--
Total wall clock time: 2.7s
Downloaded: 1 files, 44 in 0s (403 KB/s)
root@raspberrypi:/etc/cron.hourly# ls
Add_cron_update_hosts_steamcommunity.sh fake-hwclock Remove_hosts_log_week.sh
Add_cron_update_hosts_steamcommunity() {
while true; do
echo -e "${Info} ${GreenBG} 尝试获取steamcommunity hosts 更新脚本 ${Font}"
if [[ ${qcloud_enable} == "1" ]]; then #判断是不是应当使用七牛云源
wget http://p2feur8d9.bkt.clouddn.com/Add_cron_update_hosts_steamcommunity.sh #七牛云源
else
wget --no-check-certificate https://github.com/zsnmwy/Temporary-storage/releases/download/V0.5/Add_cron_update_hosts_steamcommunity.sh #GitHub源
fi
if [[ -e Add_cron_update_hosts_steamcommunity.sh ]]; then #确定是不是下载到脚本
chmod 777 Add_cron_update_hosts_steamcommunity.sh #给予脚本执行权限
mv Add_cron_update_hosts_steamcommunity.sh /etc/cron.hourly #移动脚本到`cron.hourly`
echo -e "${OK} ${GreenBG} Add Update-hosts-steamcommunity.sh ${Font}"
break
else
echo -e "${Error} ${RedBG} 网络超时 下载失败 重新下载 ${Font}"
fi
done
}
两个脚本的处理流程就像我上面加注释的那个一样,先下载,再给执行权限,然后文件移动到相应的周期执行文件夹。正常来说,下不到是会重新下载的,会下到确认文件在目录为止。不知道你的为什么没有执行这个流程。如果可以的话,附上这里的日志,最好日志可以全一点。
这里两个文件处理的内容如下,若是短期几天内用,一般不会有大问题,但是长期肯定不行。
#!/bin/bash
Get_steamcommunity_ip(){
curl 'https://cloudflare-dns.com/dns-query?ct=application/dns-json&name=steamcommunity.com&type=A' | jq -r '.Answer[0].data'
}
get_ip=$(cat /etc/hosts | grep steamcommunity.com | cut -d ' ' -f 1)
sed -i -e 's#'"$(echo ${get_ip})"'#'"$(echo $(Get_steamcommunity_ip))"'#' /etc/hosts
echo "[$(date "+%Y-%m-%d %H:%M:%S %u %Z")] 已经更新steamcommunity-hosts" >> /tmp/steamcommunity-hosts.log
hosts=$(cat /etc/hosts | grep steamcommunity.com)
echo -e "[$(date "+%Y-%m-%d %H:%M:%S %u %Z")] 当前的steamcommunicty host 是 ${hosts} \n\n" >> /tmp/steamcommunity-hosts.log
这个是每一个小时执行一次的更新steam社区IP地址的脚本。并且会把日志输出到/tmp/steamcommunity-hosts.log (即Add_cron_update_hosts_steamcommunity.sh)
cron.hourly里面的脚本会每个小时执行一次
#!/bin/bash
rm /tmp/steamcommunity-hosts.log
这个是每周移除一次上面那个脚本弄出来的steam社区ip更新的日志(即Remove_hosts_log_week.sh)
cron.weekly里面的脚本会每周执行一次
上面的两个脚本的存放在这里
如果你是打算要把这两个脚本手动处理的话,可以执行以下的命令
这个是处理Add_cron_update_hosts_steamcommunity.sh
# 注意--no-check-certificate 是不检测证书的,注意网络环境的安全性
wget --no-check-certificate https://github.com/zsnmwy/Temporary-storage/releases/download/V0.5/Add_cron_update_hosts_steamcommunity.sh
chmod 777 Add_cron_update_hosts_steamcommunity.sh
mv Add_cron_update_hosts_steamcommunity.sh /etc/cron.hourly/
进入/etc/cron.hourly
,你应该就可以看到他了
这个是处理Remove_hosts_log_week.sh
# 注意--no-check-certificate 是不检测证书的,注意网络环境的安全性
wget --no-check-certificate https://github.com/zsnmwy/Temporary-storage/releases/download/V0.5/Remove_hosts_log_week.sh
chmod 777 Remove_hosts_log_week.sh
mv Remove_hosts_log_week.sh /etc/cron.weekly/
进入/etc/cron.weekly ,你应该就可以看到他了
Debian8 x64
ERROR: The certificate of 'github.com' is not trusted.
ERROR: The certificate of 'github.com' hasn't got a known issuer.
这里的问题是github.com的CA证书没有过检。有可能在你的环境有MitM 攻击的风险。 如果你是不理会这个安全问题,可以给wget加上--no-check-certificate
这个参数,这样子就不检查证书了。如果你还需要了解更多的相关信息去彻底解决这个问题,应该来这里看看。
如果你不理会相关MitM的安全问题进行下载,可以执行下面的这条命令去获得脚本并且进入安装界面
wget --no-check-certificate -O ASF-install.sh https://github.com/zsnmwy/ArchiSteamFarm-Install-Script/releases/download/V1.0/ASF-install.sh && bash ASF-install.sh
Ubuntu 16 x64
ASF-install.sh: line 643: dotnet: command not found
选2启动提示一堆东西未安装。
从这个较少的信息,我只能够得出,在你首次安装的时候,出现比较重大的错误问题。直接导致了以下的脚本的命令没有正常执行
elif [[ "${ID}" == "ubuntu" && $(echo "${VERSION_ID}" | cut -d '.' -f1) -eq 16 ]]; then
## Ubuntu 16
echo "这里是Ubuntu 16的配置"
echo "这里是Ubuntu 16的配置"
echo "这里是Ubuntu 16的配置"
echo "这里是Ubuntu 16的配置"
echo -e "${OK} ${GreenBG} 当前系统为 Ubuntu ${VERSION_ID} ${VERSION} ${Font} "
Steam_information_account_Get
Steam_information_password_Get
INS="apt-get"
apt-get update
apt-get install curl wget unzip screen -y
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor >microsoft.gpg
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
apt-get update
apt-get install dotnet-sdk-2.1.4 -y
dotnet --version
echo -e "${Info} ${GreenBG} 若出现dotnet的版本号 为安装正常 ${Font}"
以上的命令,你可以查询微软的.NET Core 的官方安装文档了解更多
微软的官方文档里面要求的是Ubuntu 16.04,但是在我的脚本里面只要是Ubuntu 16就可以安装,对于后面的04并没有做要求。
请执行cat /etc/os-release
,回复的时候附上日志的输出。
like this
root@raspberrypi:/etc/cron.weekly# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
root@raspberrypi:/etc/cron.weekly#
并且附上你按下安装按钮之后的全部日志,你给的日志的内容太少了,我很难判断。⊙﹏⊙|||
最好可以提供下你所购买的服务的服务商,我过去看看咋回事!?(・_・;?
Ubuntu 16 x64
你的选择是(数字):
1
ASF-install.sh: line 643: dotnet: command not found
root@shouer:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial
你的选择是(数字):
2
[PM2] Starting /opt/ArchiSteamFarm/ArchiSteamFarm.sh in fork_mode (1 instance)
[PM2] Done.
┌────────────────┬──────┬────────┬───┬─────┬────────────┐
│ Name │ mode │ status │ ↺ │ cpu │ memory │
├────────────────┼──────┼────────┼───┼─────┼────────────┤
│ ArchiSteamFarm │ fork │ online │ 0 │ 0% │ 148.0 KB │
└────────────────┴──────┴────────┴───┴─────┴────────────┘
Use pm2 show <id|name>
to get more details about an app
[TAILING] Tailing last 15 lines for [ArchiSteamFarm] process (change the value with --lines option)
/root/.pm2/logs/ArchiSteamFarm-error-0.log last 15 lines:
/root/.pm2/logs/ArchiSteamFarm-out-0.log last 15 lines:
0|ArchiSte | ERROR: dotnet CLI tools are not installed!
0|ArchiSte | ERROR: dotnet CLI tools are not installed!
0|ArchiSte | ERROR: dotnet CLI tools are not installed!
0|ArchiSte | ERROR: dotnet CLI tools are not installed!
应该都是dotnet的问题。。
VPS服务商hiformance,国外服务器。
Debian8 x64
安装后和CentOS7 x64一样的问题,社区hosts报错,并且dotnet也找不到指令。
CentOS7 x64
[信息] 尝试获取steamcommunity hosts 更新脚本
--2018-04-13 09:34:51-- https://github.com/zsnmwy/Temporary-storage/releases/download/V0.5/Add_cron_update_hosts_steamcommunity.sh
Resolving github.com (github.com)... 192.30.253.113, 192.30.253.112
Connecting to github.com (github.com)|192.30.253.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/116959526/85c512c8-39f7-11e8-99d4-2e139d7b0e19?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180413T093540Z&X-Amz-Expires=300&X-Amz-Signature=7d22245eb48517247bed1639849db2d8feb682cc0279e379efaa6461b25b91f8&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DAdd_cron_update_hosts_steamcommunity.sh&response-content-type=application%2Foctet-stream [following]
--2018-04-13 09:34:51-- https://github-production-release-asset-2e65be.s3.amazonaws.com/116959526/85c512c8-39f7-11e8-99d4-2e139d7b0e19?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180413T093540Z&X-Amz-Expires=300&X-Amz-Signature=7d22245eb48517247bed1639849db2d8feb682cc0279e379efaa6461b25b91f8&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DAdd_cron_update_hosts_steamcommunity.sh&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.164.115
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.164.115|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 614 [application/octet-stream]
Saving to: 'Add_cron_update_hosts_steamcommunity.sh'
100%[==============================================>] 614 --.-K/s in 0s
2018-04-13 09:34:51 (12.1 MB/s) - 'Add_cron_update_hosts_steamcommunity.sh' saved [614/614]
[OK] Add Update-hosts-steamcommunity.sh
准备修改hosts
[信息] 使用sed修改hosts
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 218 100 218 0 0 1066 0 --:--:-- --:--:-- --:--:-- 1068
[信息] 72.246.23.66 steamcommunity.com
[信息] 尝试获取remove hosts log 脚本
--2018-04-13 09:34:52-- https://github.com/zsnmwy/Temporary-storage/releases/download/V0.5/Remove_hosts_log_week.sh
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/116959526/85f788f2-39f7-11e8-974f-1b2dbbb3ae26?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180413T093541Z&X-Amz-Expires=300&X-Amz-Signature=6adc4d6bdbbf6ac1f58ece27ecfc843121702799720476e3910f3149a587762d&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DRemove_hosts_log_week.sh&response-content-type=application%2Foctet-stream [following]
--2018-04-13 09:34:52-- https://github-production-release-asset-2e65be.s3.amazonaws.com/116959526/85f788f2-39f7-11e8-974f-1b2dbbb3ae26?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180413%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180413T093541Z&X-Amz-Expires=300&X-Amz-Signature=6adc4d6bdbbf6ac1f58ece27ecfc843121702799720476e3910f3149a587762d&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DRemove_hosts_log_week.sh&response-content-type=application%2Foctet-stream
Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.164.115
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.164.115|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 44 [application/octet-stream]
Saving to: 'Remove_hosts_log_week.sh'
100%[==============================================>] 44 --.-K/s in 0s
2018-04-13 09:34:52 (859 KB/s) - 'Remove_hosts_log_week.sh' saved [44/44]
[OK] Add Remove_hosts_log_week.sh
获取都没问题,选完语言就报错
请输入数字[1-3]:
1
[OK] zh-CN
source ~/.bashrc succeed
Failed to resolve library symbol hostfxr_main_startupinfo, error: /usr/share/dotnet/host/fxr/2.0.0/libhostfxr.so: undefined symbol: hostfxr_main_startupinfo
对于.NET Core的安装,你先尝试下微软的官方文档的指导方案,看看能不能装得上。
如果不行的话,现在这个脚本的内容是不适合你这个机子的。或许你可以手动地去尝试下ASF的docker或者他已经编译好带有依赖的包
现在的脚本安装方法主要是,.NET Core SDK 然后再用dotnet ArchiSteamFarm.dll
启动的
请务必附上完整的安装日志,那一堆超长的日志。主要看下最前面的那一段dotnet的安装
dotnet错误问题是安装包是损坏的,我从微软官方文档重新获取包也不行。.NET Core2的安装包损坏,1的倒是没问题。
root@shouer:~# sudo apt-get install dotnet-sdk-2.0.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
dotnet-sdk-2.0.0 : Depends: dotnet-runtime-2.0.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Centos7
对于这个错误的出现是因为执行了 dotnet --version
去查看版本,去检测是不是安装正常。这个错误应该也是出现在了前面的日志里面。
Failed to resolve library symbol hostfxr_main_startupinfo, error: /usr/share/dotnet/host/fxr/2.0.0/libhostfxr.so: undefined symbol: hostfxr_main_startupinfo
这个似乎是RPM的repos的dotnet版本引起的。你可以参考
https://github.com/dotnet/core-setup/issues/4007#issuecomment-380685340
Failed to resolve library symbol hostfxr_main_startupinfo on Amazon Linux 2 AMI
你手动安装.NET Core 的时候
把微软的产品源的稳定版本替换成这个预览版本的源
#这里是微软的指导教程的源
sudo sh -c 'echo -e "[packages-microsoft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl=https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/dotnetdev.repo'
把下面的替换掉上面的那个
sudo sh -c 'echo -e "[packages-microsoft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl=https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc\nexclude=*preview*" > /etc/yum.repos.d/dotnetdev.repo'
Debian 8 x64
对于这个问题的出现
Failed to resolve library symbol hostfxr_main_startupinfo, error: /usr/share/dotnet/host/fxr/2.0.0/libhostfxr.so: undefined symbol: hostfxr_main_startupinfo
我搜了一圈,都是Centos和Ubuntu的解决方案
这个我似乎还真没有啥子苗头
如果实在搞不定,我好像对这个dotnet问题也没有啥子办法了
尝试下ASF官方的编译好的包,附带.NET Core依赖的那个。但是我测试部分centos7机子上面会出现段错误,这个也是我解决不了问题。尴尬 不然我都不会选择去装完整的.NET Core了
ASF的docker可以试试
微软官方指南都出错,很难受。
那我还是弄yum的把,避开apt的。。yum的好像没错?我重装看看。
CentOS7 x64的dotnet没问题,版本是2.0.0
那你还是折腾centos7吧,这个没有大问题。
哇,难受啊。官网甚至连ubuntu的包都没有,1和2的都没有。有毒吧。
Ubuntu 16 x64的成功了
.NET Core安装参照https://www.microsoft.com/net/learn/get-started/linux/ubuntu16-04
至少没报错了。版本为2.1.104
程序能够完整运行了。
已经开始挂卡,成功了。
这就有点奇怪了,我脚本是完全照搬微软官方的安装指南的。
我估计是源都没了。。
源?你是换了微软的其他源吗?还是?
我用你之前发的那个网站,我连apt update都做不到了。
不清楚。。反正你发的第一个官网,我按操作做下来会报错,到update那里就不行了,后面我百度的那个官网,按操作弄下来没报错。
啊?官网还是有新旧的咯?要不要这么坑? 给下你百度出来的那个官网的地址我看看...... 看到了
就我上面参照的那个。。我看安装操作界面面板都不一样。。
估计文档的没更新。看那个文档最后更新时间还是16年。。
我对比了下两边的命令
# 你发的那个https://www.microsoft.com/net/learn/get-started/linux/ubuntu16-04
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1.104
---
#我给的那个https://docs.microsoft.com/zh-cn/dotnet/core/linux-prerequisites?tabs=netcore2x#supported-linux-versions
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1.4
多装了一个apt-transport-https
,以及dotnet的sdk的版本不同
不知道是不是这个apt-transport-https
的锅
真是神坑,我测试的vu和腾讯云都没事。商家定做的镜像蛋疼啊。。。一个好一个没有好,好醉
最后再问个问题,你自己开启其他游戏的时候,挂卡是会暂停吗?还是要手动暂停?有没有影响。
挂卡会自己停的。
你电脑端启动游戏的时候,在steam里面会提示其他电脑在玩,问你是不是要强制登入挤掉那个在线的电脑(大概这个意思)然后你确定就是了,ASF会自己暂停的。你可以去看看ASF的wiki
如果没有问题,我就关掉这个issue了。我得去看看这两个文档有什么不同,加进去才行。
好,没了。