首页 新闻 会员 周边 捐助

travis ci 安装 .net core sdk 2.2 问题

0
悬赏园豆:30 [已解决问题] 解决于 2018-12-29 22:44

.travis.yml 的配置如下

language: csharp
mono: none
sudo: required
dist: trusty
dotnet: 2.2
os:
  - linux
script:
  - ./build.sh
  - ./test.sh

执行 travis ci job 时出现下面的错误

Unpacking dotnet-runtime-2.2 (2.2.0-1) ...
dpkg-deb: error: archive '/var/cache/apt/archives/aspnetcore-runtime-2.2_2.2.0-1_amd64.deb' has premature member 'control.tar.xz' before 'control.tar.gz', giving up
dpkg: error processing archive /var/cache/apt/archives/aspnetcore-runtime-2.2_2.2.0-1_amd64.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Selecting previously unselected package dotnet-sdk-2.2.
Preparing to unpack .../dotnet-sdk-2.2_2.2.101-1_amd64.deb ...
Unpacking dotnet-sdk-2.2 (2.2.101-1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/aspnetcore-runtime-2.2_2.2.0-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The command "sudo apt-get install -qq dotnet-sdk-2.2" failed and exited with 100 during .

请问如何解决?

dudu的主页 dudu | 高人七级 | 园豆:30939
提问于:2018-12-29 22:34
< >
分享
最佳答案
1

dist: trusty 改为 dist: xenial 后问题解决

dudu | 高人七级 |园豆:30939 | 2018-12-29 22:44

哈哈,前段时间我也遇到了,升级一下 ubuntu版本就好啦 Good Good

BUTTERAPPLE | 园豆:3190 (老鸟四级) | 2019-03-12 22:46
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册