dotnet / dotnet/core

dotnet-runtime-deps has broken dependencies on Fedora 34

Open
#6,407 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
PowerShell
Stars
22k
Forks
4.9k
Avg merge
5d 5h
Merged PRs (30d)
29

Description

Originally reported by @m-ghaoui on
https://github.com/OmniSharp/omnisharp-vscode/issues/4360#issuecomment-864365758

### Description

The `dotnet-runtime-deps-5.0.7` package for Fedora 34 on packages.microsoft.com has broken dependencies.

You can see that by following the steps on the issue described above:

```
sudo dnf remove dotnet*
sudo wget -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/fedora/34/prod.repo <-- Note I changed it to 34
sudo dnf config-manager --save --setopt="*microsoft-*.priority=50"
sudo dnf install dotnet-runtime-5.0
```

The last command shows the error:

```
# dnf install dotnet-runtime-5.0
Last metadata expiration check: 0:07:12 ago on Tue Jun 22 21:00:06 2021.
Dependencies resolved.

Problem: package dotnet-runtime-5.0-5.0.7-1.x86_64 requires dotnet-runtime-deps-5.0 >= 5.0.7, but none of the providers can be installed
- cannot install the best candidate for the job
- nothing provides compat-openssl10 needed by dotnet-runtime-deps-5.0-5.0.7-1.x86_64
```

You can see the dependency information directly in the broken package itself:
```bash
$ wget https://packages.microsoft.com/fedora/34/prod/dotnet-runtime-deps-5.0.7-fedora.27-x64.rpm
$ rpm -qp --requires dotnet-runtime-deps-5.0.7-fedora.27-x64.rpm
compat-openssl10
libicu
krb5-libs
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
$ sudo dnf install dotnet-runtime-deps-5.0.7-fedora.27-x64.rpm
Last metadata expiration check: 0:38:43 ago on Tue 22 Jun 2021 04:48:36 PM EDT.
Error:
Problem: conflicting requests
- nothing provides compat-openssl10 needed by dotnet-runtime-deps-5.0-5.0.7-1.x86_64
(try to add '--skip-broken' to skip uninstallable packages)
```

### Configuration

* Which version of .NET is the code running on? .NET 5.0
* What OS and version, and for Linux, what distro? Fedora 34
* What is the architecture (x64, x86, ARM, ARM64)? x64

### Regression?

This worked in Fedora 33, since `compat-openssl10` was available. `compat-openssl10` was removed starting with Fedora 34 which broke this dependency.

### Other information

* Do you know of any workarounds?
- Using the Fedora-provided packages is the suggested approach. When that doesn't work, the workaround is to install packages from packages.microsoft.com which is broken and is now tracked by this issue. In other words, the *workaround* is what's broken.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.