Skip to content

yum install dotnet-sdk-3.0 fails on centos7 #4121

Closed

Description

@cjvirtucio87

yum install dotnet-sdk-3.0 fails

General

We're unable to install dotnet-sdk-3.0 on centos7. Here's some steps to reproduce:

  1. Import the RPM key: rpm --import https://packages.microsoft.com/keys/microsoft.asc.
  2. Install the packages RPM file: rpm --upgrade --verbose --hash https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm.
  3. Install dotnet-sdk-3.0: yum install --assumeyes dotnet-sdk-3.0.

EXPECTED: dotnet-sdk-3.0 installs successfully.
ACTUAL:

Error: Package: dotnet-runtime-3.0-3.0.2-1.x86_64 (packages-microsoft-com-prod)
           Requires: dotnet-runtime-deps-3.0 >= 3.0.2
           Available: dotnet-runtime-deps-3.0-3.0.0-1.x86_64 (packages-microsoft-com-prod)
               dotnet-runtime-deps-3.0 = 3.0.0-1
           Available: dotnet-runtime-deps-3.0-3.0.1-1.x86_64 (packages-microsoft-com-prod)
               dotnet-runtime-deps-3.0 = 3.0.1-1

We suspect that it has to do with a missing 3.0.2 package from the repo (as of 1/14/2020 4:27 PM EST):

dotnet-runtime-deps-3.0.1-centos.7-x64.rpm 19-Nov-2019 23:28 2857
dotnet-runtime-deps-3.1.0-centos.7-x64.rpm 03-Dec-2019 21:08 2857

Activity

  1. matthewsullivan-wf commented on Jan 14, 2020

    @matthewsullivan-wf

    We have also found and reproduced this independent of @cjvirtucio87.

  2. randallswf commented on Jan 14, 2020

    @randallswf

    Repos are down again.

    Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2 File has unexpected size (88725 != 85265). Mirror sync in progress? [IP: 13.91.48.226 443]

    #3988

  3. scalablecory commented on Jan 14, 2020

    @scalablecory
    Contributor
  4. dagood commented on Jan 14, 2020

    @dagood
    Member

    It's unfortunately normal for the repos to get into this bad state after we push packages as part of a release. The Debian package manager's error message hints at this cause:

    File has unexpected size (88725 != 85265). Mirror sync in progress?

    I recently filed dotnet/docs#16670 about describing this problem in the troubleshooting section of the install documentation. Hopefully it'll make it easier to tell this is going on and give a reasonable time to wait until it normally resolves itself.

    /cc @dleeapho

  5. added
    area-setup
    on Jan 14, 2020
  6. dagood commented on Jan 14, 2020

    @dagood
    Member

    I'm reaching out internally to make sure we haven't also missed dotnet-runtime-deps-3.0 3.0.1 per the original report. (I can repro this too in a fresh centos:7 Docker container.)

    In the past, I think I remember seeing the rpm file itself showing up fine at https://packages.microsoft.com/centos/7/prod/ along with the others (just being indexed wrong), but the file is missing, so I'm a little concerned. Working to get it resolved as soon as possible if we need to fix this up.

  7. dagood commented on Jan 14, 2020

    @dagood
    Member

    It turns out the tooling logged errors when we tried to push the dotnet-runtime-deps packages, which is why they're missing. @vivmishra is retrying the push, and if it fails again we're filing a ticket with the team that owns the linux package repositories to get help.

  8. vivmishra commented on Jan 14, 2020

    @vivmishra
    Contributor

    The centos7 deps files for 3.1.1 and 3.0.2 are now pushed live. This should unblock 3.0 and 3.1.

    2.1.15 publishing is currently behind and not yet available for consumption.

  9. dagood commented on Jan 15, 2020

    @dagood
    Member

    This is now working for me on CentOS 7. In a container that was reproing the issue with dotnet-sdk-3.0, I was able to force the local repo cache to update and then the install works:

    sudo yum clean expire-cache
    sudo yum install dotnet-sdk-3.0
    

    dotnet-sdk-3.1 also works for me.

    Thanks all for the reports and the info, closing as resolved. Please let us know if this problem is still showing up for you and we'll take a look!


    Note that 2.1.15 publishing (dotnet-sdk-2.1) isn't done yet, and it's tracked at #4124 because there are issues beyond dotnet-runtime-deps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-setup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions