.net-core - Travis:E:无法找到包 dotnet-sdk-2.0.0
问题描述
今天早上我的 travis 构建因错误而停止:
E: Unable to locate package dotnet-sdk-2.0.0
我的 travis yaml(如下)与正在运行的构建没有改变:
language: csharp
dist: trusty
sudo: required
mono: none
dotnet: 2.0.0
solution: Dibware.Salon.sln
addons:
sonarcloud:
organization: "dibley1973-github" # the key of the org you chose at step #3
token:
secure: $SONAR_TOKEN
branches:
only:
- master
before_script:
- chmod +x build.sh
- chmod +x run-tests.sh
script:
- ./build.sh
- ./run-tests.sh
- sonar-scanner
日志的关键条目如下:
C# support for Travis-CI is community maintained.
Please open any issues at https://travis-ci.community/c/languages/37-category and cc @joshua-anderson @akoeplinger @nterry
Installing .NET Core
$ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
$ export DOTNET_CLI_TELEMETRY_OPTOUT=1
7.67s0.49sE: Unable to locate package dotnet-sdk-2.0.0
E: Couldn't find any package by glob 'dotnet-sdk-2.0.0'
E: Couldn't find any package by regex 'dotnet-sdk-2.0.0'
The command "sudo apt-get install -qq dotnet-sdk-2.0.0" failed and exited with 100 during .
Your build has been stopped.
travis 构建链接: https ://travis-ci.com/dibley1973/Dibware.Salon
任何关于为什么失败的建议都值得赞赏。
解决方案
推荐阅读
- r - r - 包含 unicode (Farsi) 字符的源脚本文件
- c# - 从 Windows 窗体应用程序以横向模式打印 SSRS 报告
- python - 将 2182869 等大数格式化为 2.1E8
- sql - 计划的作业没有执行我的 PLSQL 块
- c# - 如何在 Viewbag 中设置为字符串的 MVC 视图中显示/转换货币符号
- gmail - 电子邮件基础:Gmail 应用程序中的小视图端口
- ms-access - 在 Access VBA 中打开 RecordSet 时,如果类型为 dbOpenSnapshot,是否会使选项 dbReadOnly 变得多余?
- javascript - react/redux 正在注册 2 个对 reducer 的调用,即使该操作仅触发一次
- c# - How to get selected value of item from dropdownlist inside formview?
- parse-platform - Parse Server - 您在单页应用程序中将会话令牌存储在哪里?