Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet 7.0 and dotnet 8.0 are incompatible (host part) #17894

Closed
bcornec opened this issue Nov 30, 2023 · 2 comments
Closed

dotnet 7.0 and dotnet 8.0 are incompatible (host part) #17894

bcornec opened this issue Nov 30, 2023 · 2 comments

Comments

@bcornec
Copy link

bcornec commented Nov 30, 2023

Context: Ubuntu 22.04 LTS up to date

$ sudo /usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"
install aspnetcore-runtime-6.0 dotnet-runtime-6.0 dotnet-sdk-6.0 aspnetcore-runtime-7.0 dotnet-runtime-7.0 dotnet-sdk-7.0 aspnetcore-runtime-8.0 dotnet-runtime-8.0 dotnet-sdk-8.0 dotnet-host
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
dotnet-host-7.0 : Conflicts: dotnet-host
E: Unable to correct problems, you have held broken package

Whatever we try it seems it's impossible to have both dotnet-host for v7 and v8.
The other packages can be installed alongside the other version, but not the dotnet-host one.

A new compatible package should be provided for v7, which allows update or simultaneous install with dotnet-host-8.0

At least that should be correctly documented in the installation doc (which doesn't mention dotnet-host BTW).

Formerly opened as dotnet/aspnetcore#52352 but closed without good reason, so retrying here as it may be more relevant as a place.

@baronfel
Copy link
Member

This really sounds like you have mixed packages - some coming from the distro and some coming from Microsoft. Can you take a look at the troubleshooting docs here and see if that's the case? https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#troubleshooting

@marcpopMSFT
Copy link
Member

Old issue triage: I'd guess the issue is what baronfel already mentioned about packages from multiple sources. Closing for now. Ping if this is not resolved.

@marcpopMSFT marcpopMSFT closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants