[Bug 2048926] Re: Not getting listed in dotnet --list-runtimes so facing an error missing 6.0 runtime
Dominik Viererbe
2048926 at bugs.launchpad.net
Thu Jan 11 08:34:50 UTC 2024
Hello Rajavarman, thank your for reporting this issue and helping to
improve ubuntu.
I could not reproduce the described behavior with
$ lxc launch ubuntu:jammy jammy
$ lxc shell jammy
$ sudo apt-get update
$ sudo apt-get install --no-install-recommends aspnetcore-runtime-6.0=6.0.125-0ubuntu1~22.04.1
$ dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.25 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.25 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
but you also wrote "if I install any specific version like 6.0.25-1 it
was working fine", so I think this is what you meant. I additionally
installed aspnetcore-runtime-7.0 but this was also giving me the correct
result.
Your output shows the line
The following packages were automatically installed and are no longer required:
... dotnet-runtime-deps-6.0 ...
We do not build a package with that name "dotnet-runtime-deps-6.0", but
Microsoft does in their package archive. Therefore I conclude that you
have previous installs of dotnet packages from the Microsoft archive.
Unfortunately the Microsoft packages are not compatible with our builds
and cause conflict.
Therefore I suggest to
1. Remove the Microsoft APT repository
$ sudo rm /etc/apt/trusted.gpg.d/microsoft.asc.gpg
/etc/apt/sources.list.d/microsoft-prod.list
2. sudo apt update
3. sudo apt autopurge dotnet*
4. sudo apt install --no-install-recommends aspnetcore-runtime-6.0=6.0.125
If this does not solve your problem (or my conclusion is somehow wrong)
please run
$ apport-collect 2048926
This will collect more information about the packages you have installed
on your system and add it to this bug report.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dotnet6 in Ubuntu.
https://bugs.launchpad.net/bugs/2048926
Title:
Not getting listed in dotnet --list-runtimes so facing an error
missing 6.0 runtime
Status in dotnet6 package in Ubuntu:
New
Bug description:
I tried running this command
cmd:
sudo apt-get install --no-install-recommends aspnetcore-runtime-6.0=6.0.125-0ubuntu1~22.04.1
o/p:
dotnet-runtime-6.0=6.0.125-0ubuntu1~22.04.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
bridge-utils dns-root-data dnsmasq-base dotnet-runtime-deps-6.0 ubuntu-fan
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
aspnetcore-runtime-6.0 dotnet-runtime-6.0
2 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.
Need to get 0 B/30.9 MB of archives.
After this operation, 2769 kB disk space will be freed.
(Reading database ... 138343 files and directories currently installed.)
Preparing to unpack .../dotnet-runtime-6.0_6.0.125-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-runtime-6.0 (6.0.125-0ubuntu1~22.04.1) over (6.0.25-1) ...
Preparing to unpack .../aspnetcore-runtime-6.0_6.0.125-0ubuntu1~22.04.1_amd64.deb ...
Unpacking aspnetcore-runtime-6.0 (6.0.125-0ubuntu1~22.04.1) over (6.0.25-1) ...
Setting up dotnet-runtime-6.0 (6.0.125-0ubuntu1~22.04.1) ...
Setting up aspnetcore-runtime-6.0 (6.0.125-0ubuntu1~22.04.1) ...
it was installed successfully
but when I try to list dotnet runtimes
dotnet --list-runtimes
Microsoft.AspNetCore.App 7.0.14 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.14 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
I couldn't able to see it
if I install any specific version like 6.0.25-1 it was working fine
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dotnet6/+bug/2048926/+subscriptions
More information about the foundations-bugs
mailing list