Skip to content

Error Installing dotnet-sdk-6.0 on Ubuntu (GitHub actions) #7286

@snieking

Description

@snieking

Description

Getting errors installing dotnet-sdk-6.0 on Ubuntu

sudo add-apt-repository universe
  sudo apt-get install apt-transport-https
  sudo apt-get update
  sudo apt-get install dotnet-sdk-6.0
  shell: /usr/bin/bash -e {0}
'universe' distribution component is already enabled for all sources.
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version (2.0.6).
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:[3](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:3) http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:[4](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:4) https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease [10.[5](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:5) kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Hit:[6](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:6) http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal InRelease
Get:[7](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:7) http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1642 kB]
Get:[8](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:8) http://azure.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [312 kB]
Get:[9](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:9) http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14.8 kB]
Get:[10](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:10) http://azure.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [853 kB]
Get:[11](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:11) http://azure.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [[12](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:12)2 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [910 kB]
Get:[13](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:13) http://azure.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [202 kB]
Get:[14](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:14) http://azure.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [20.3 kB]
Get:[15](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:15) http://azure.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [23.8 kB]
Get:[16](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:16) http://azure.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [580 B]
Get:17 http://azure.archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [42.2 kB]
Get:18 http://azure.archive.ubuntu.com/ubuntu focal-backports/main Translation-en [10.1 kB]
Get:19 http://azure.archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [22.7 kB]
Get:20 http://azure.archive.ubuntu.com/ubuntu focal-backports/universe Translation-en [15.4 kB]
Get:21 http://azure.archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [804 B]
Get:22 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1317 kB]
Get:23 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [231 kB]
Get:24 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [9808 B]
Get:25 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [799 kB]
Get:26 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [114 kB]
Get:27 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [692 kB]
Get:28 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [121 kB]
Get:29 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [14.0 kB]
Reading package lists...
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease (expected focal but got testing)
E: Repository 'https://packages.microsoft.com/ubuntu/[20](https://github.com/capchapdev/capchap-admin/runs/5560138737?check_suite_focus=true#step:3:20).04/prod focal InRelease' changed its 'Origin' value from 'microsoft-ubuntu-focal-prod focal' to 'microsoft-ubuntu-focal-prod testing'
E: Repository 'https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease' changed its 'Label' value from 'microsoft-ubuntu-focal-prod focal' to 'microsoft-ubuntu-focal-prod testing'
E: Repository 'https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease' changed its 'Codename' value from 'focal' to 'testing'
Error: Process completed with exit code 100.

This was working fine earlier today and I haven't touched the GitHub Action pipeline which executes this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-setupIssues related to installing .NET Core

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions