Script tries to downgrade .NET Standard but it fails.
Your instalator script fails when trying to install packages on deb-based distro - Mint 19.4.
You missed there __--allow-downgrades__, so it can downagrade to older .NET Standard Targeting Pack package of version 2.1.
As far as I remember .NET 3.1 was able to use .NET Standard 2.2 so why are you downgrading to 2.1 on .NET 5?
Preview image of an issue
Correct me if I am mistaken.
Greetings.
.NET Standard 2.1 is the latest version, and .NET Standard 2.2 shouldn't exist. If 2.2 did exist, it would actually install side-by-side with 2.1 and not cause any conflict, because they have different package names, netstandard-targeting-pack-2.1 and netstandard-targeting-pack-2.2. I think what's actually happening for you is a difference between the version of netstandard-targeting-pack-2.1 you have installed vs. the version that's included with the 5.0 preview tar.gz files. (We redistribute the latest version so that the tar.gz contains everything you need to install the 5.0 preview.)
@Arkasian can you provide some more detail, such as ~the Linux distro you're using~(edit: apologies, just spotted you provided this, Mint 19.4), which package you have installed before running the script, and more complete console output? (Copy paste is much more preferable to a screenshot!)
/cc @leecow @NikolaMilosavljevic
Sorry, dont have an output, didnt have it at the time of writing the issue either, because I closed terminal just after the fact. There was nothing more than what I showed, just standard log for every installation of .NET Core, and then it printed out what I showed.
I had installed there .NET Core 2.2.402 SDK and compatible runtime.
dotnet-sdk-2.2, aspnet-runtime-2.2 dotnet-runtime-2.2 and those are all I had installed on my system. I will try reproduce that error again, but Im not sure if I will be able to.
I just had the same issue crop up on TravisCI: https://travis-ci.org/github/demystifyfp/FsToolkit.ErrorHandling/builds/686310362
My current .travis.yml file:
language: csharp
sudo: false # use the new container-based Travis infrastructure
dist: xenial
dotnet: 3.1.200
before_script:
- nvm install 10.15.0
- nvm use 10.15.0
- npm install
- mkdir $HOME/dotnet_install && cd $HOME/dotnet_install
- "curl -H 'Cache-Control: no-cache' -L https://aka.ms/install-dotnet-preview -o install-dotnet-preview.sh"
- sudo bash install-dotnet-preview.sh
script:
- dotnet --info
- ./build.sh RunFableTests
Had this same issue on Debian 10 when trying to upgrade preview 5 to 6, and again now when I tried upgrading preview 6 to 7.
I run both .net core 3.1 application and preview 5.0 application on same machine
Here's the first output:
root@vps:~/dotnetinstall# bash install-dotnet-preview.sh
1
*** Checking required system dependencies for detected OS: Debian GNU/Linux 10 (buster) ...
*** tar is already installed.
*** gzip is already installed.
*** curl is already installed.
*** Setting package type to deb.
*** Download source: dotnet-5.0.0-preview.7-deb.tar.gz
*** Downloading https://dotnetcli.blob.core.windows.net/dotnet/release/install-preview/5.0.0-preview.7/dotnet-5.0.0-preview.7-deb.tar.gz to /root/dotnetinstall ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 85.5M 100 85.5M 0 0 3134k 0 0:00:27 0:00:27 --:--:-- 3193k
*** Unpacking dotnet-5.0.0-preview.7-deb.tar.gz ...
dotnet_packages/
dotnet_packages/dotnet-hostfxr-5.0.0-preview.7.20364.11-x64.deb
dotnet_packages/dotnet-host-5.0.0-preview.7.20364.11-x64.deb
dotnet_packages/aspnetcore-runtime-5.0.0-preview.7.20365.19-x64.deb
dotnet_packages/aspnetcore-targeting-pack-5.0.0-preview.7.20365.19.deb
dotnet_packages/dotnet-targeting-pack-5.0.0-preview.7.20364.11-x64.deb
dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb
dotnet_packages/dotnet-apphost-pack-5.0.0-preview.7.20364.11-x64.deb
dotnet_packages/dotnet-runtime-5.0.0-preview.7.20364.11-x64.deb
dotnet_packages/dotnet-sdk-5.0.100-preview.7.20366.6-x64.deb
dotnet_packages/dotnet-runtime-deps-5.0.0-preview.7.20364.11-x64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'aspnetcore-runtime-5.0' instead of '/root/dotnetinstall/dotnet_packages/aspnetcore-runtime-5.0.0-preview.7.20365.19-x64.deb'
Note, selecting 'aspnetcore-targeting-pack-5.0' instead of '/root/dotnetinstall/dotnet_packages/aspnetcore-targeting-pack-5.0.0-preview.7.20365.19.deb'
Note, selecting 'dotnet-apphost-pack-5.0' instead of '/root/dotnetinstall/dotnet_packages/dotnet-apphost-pack-5.0.0-preview.7.20364.11-x64.deb'
Note, selecting 'dotnet-host' instead of '/root/dotnetinstall/dotnet_packages/dotnet-host-5.0.0-preview.7.20364.11-x64.deb'
Note, selecting 'dotnet-hostfxr-5.0' instead of '/root/dotnetinstall/dotnet_packages/dotnet-hostfxr-5.0.0-preview.7.20364.11-x64.deb'
Note, selecting 'dotnet-runtime-5.0' instead of '/root/dotnetinstall/dotnet_packages/dotnet-runtime-5.0.0-preview.7.20364.11-x64.deb'
Note, selecting 'dotnet-runtime-deps-5.0' instead of '/root/dotnetinstall/dotnet_packages/dotnet-runtime-deps-5.0.0-preview.7.20364.11-x64.deb'
Note, selecting 'dotnet-sdk-5.0' instead of '/root/dotnetinstall/dotnet_packages/dotnet-sdk-5.0.100-preview.7.20366.6-x64.deb'
Note, selecting 'dotnet-targeting-pack-5.0' instead of '/root/dotnetinstall/dotnet_packages/dotnet-targeting-pack-5.0.0-preview.7.20364.11-x64.deb'
Note, selecting 'netstandard-targeting-pack-2.1' instead of '/root/dotnetinstall/dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb'
The following packages will be upgraded:
aspnetcore-runtime-5.0 aspnetcore-targeting-pack-5.0 dotnet-apphost-pack-5.0
dotnet-host dotnet-hostfxr-5.0 dotnet-runtime-5.0 dotnet-runtime-deps-5.0
dotnet-sdk-5.0 dotnet-targeting-pack-5.0
The following packages will be DOWNGRADED:
netstandard-targeting-pack-2.1
9 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
Here's a simple repro command for Debian 10 isolated in Docker, if it helps, @NikolaMilosavljevic @leecow. It uses the artifacts directly rather than running through the full script for simplicity.
The versions being exactly the same (2.1.0-1) yet still causing this error is surprising and doesn't match up to my theory above... not sure what's going on here but perhaps the error message shouldn't necessarily be trusted:
docker run -it --rm debian:10 bash -c '
set -x
apt update
apt install -y wget
wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt update
apt install -y netstandard-targeting-pack-2.1
apt info netstandard-targeting-pack-2.1
wget https://dotnetcli.blob.core.windows.net/dotnet/release/install-preview/5.0.0-preview.7/dotnet-5.0.0-preview.7-deb.tar.gz
tar -xf dotnet-5.0.0-preview.7-deb.tar.gz
mv ./dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb netstandard.deb
chmod g+r netstandard.deb
apt info ./netstandard.deb
apt install -y ./netstandard.deb'
...
+ apt info netstandard-targeting-pack-2.1
Package: netstandard-targeting-pack-2.1
Version: 2.1.0-1
...
+ apt info ./netstandard.deb
Package: netstandard-targeting-pack-2.1
Version: 2.1.0-1
...
+ apt install -y ./netstandard.deb
...
The following packages will be DOWNGRADED:
netstandard-targeting-pack-2.1
Again, bumped into this on Debian Buster and discovered this GitHub issue. With the packages from .NET Core 3.1 SDK installed, I get this exact error and can reproduce the error easily:
apt - fails as above$ sudo apt install -y ./dotnet_packages/*.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'aspnetcore-runtime-5.0' instead of './dotnet_packages/aspnetcore-runtime-5.0.0-preview.8.20414.8-x64.deb'
Note, selecting 'aspnetcore-targeting-pack-5.0' instead of './dotnet_packages/aspnetcore-targeting-pack-5.0.0-preview.8.20414.8.deb'
Note, selecting 'dotnet-apphost-pack-5.0' instead of './dotnet_packages/dotnet-apphost-pack-5.0.0-preview.8.20407.11-x64.deb'
Note, selecting 'dotnet-host' instead of './dotnet_packages/dotnet-host-5.0.0-preview.8.20407.11-x64.deb'
Note, selecting 'dotnet-hostfxr-5.0' instead of './dotnet_packages/dotnet-hostfxr-5.0.0-preview.8.20407.11-x64.deb'
Note, selecting 'dotnet-runtime-5.0' instead of './dotnet_packages/dotnet-runtime-5.0.0-preview.8.20407.11-x64.deb'
Note, selecting 'dotnet-runtime-deps-5.0' instead of './dotnet_packages/dotnet-runtime-deps-5.0.0-preview.8.20407.11-x64.deb'
Note, selecting 'dotnet-sdk-5.0' instead of './dotnet_packages/dotnet-sdk-5.0.100-preview.8.20417.9-x64.deb'
Note, selecting 'dotnet-targeting-pack-5.0' instead of './dotnet_packages/dotnet-targeting-pack-5.0.0-preview.8.20407.11-x64.deb'
Note, selecting 'netstandard-targeting-pack-2.1' instead of './dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb'
aspnetcore-runtime-5.0 is already the newest version (5.0.0~preview.8.20414.8-1).
aspnetcore-targeting-pack-5.0 is already the newest version (5.0.0~preview.8.20414.8-1).
dotnet-apphost-pack-5.0 is already the newest version (5.0.0~preview.8.20407.11-1).
dotnet-host is already the newest version (5.0.0~preview.8.20407.11-1).
dotnet-host set to manually installed.
dotnet-hostfxr-5.0 is already the newest version (5.0.0~preview.8.20407.11-1).
dotnet-runtime-5.0 is already the newest version (5.0.0~preview.8.20407.11-1).
dotnet-runtime-deps-5.0 is already the newest version (5.0.0~preview.8.20407.11-1).
dotnet-sdk-5.0 is already the newest version (5.0.100-preview.8.20417.9-1).
dotnet-targeting-pack-5.0 is already the newest version (5.0.0~preview.8.20407.11-1).
The following packages will be DOWNGRADED:
netstandard-targeting-pack-2.1
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 62 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
dpkg - works fineIf I instead switch to using dpkg instead of apt (which feels more natural with local packages IMHO), it works flawlessly:
$ sudo dpkg -i ./dotnet_packages/*.deb
(Reading database ... 229589 files and directories currently installed.)
Preparing to unpack .../aspnetcore-runtime-5.0.0-preview.8.20414.8-x64.deb ...
Unpacking aspnetcore-runtime-5.0 (5.0.0~preview.8.20414.8-1) over (5.0.0~preview.8.20414.8-1) ...
Preparing to unpack .../aspnetcore-targeting-pack-5.0.0-preview.8.20414.8.deb ...
Unpacking aspnetcore-targeting-pack-5.0 (5.0.0~preview.8.20414.8-1) over (5.0.0~preview.8.20414.8-1) ...
Preparing to unpack .../dotnet-apphost-pack-5.0.0-preview.8.20407.11-x64.deb ...
Unpacking dotnet-apphost-pack-5.0 (5.0.0~preview.8.20407.11-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../dotnet-host-5.0.0-preview.8.20407.11-x64.deb ...
Unpacking dotnet-host (5.0.0~preview.8.20407.11-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../dotnet-hostfxr-5.0.0-preview.8.20407.11-x64.deb ...
Unpacking dotnet-hostfxr-5.0 (5.0.0~preview.8.20407.11-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../dotnet-runtime-5.0.0-preview.8.20407.11-x64.deb ...
Unpacking dotnet-runtime-5.0 (5.0.0~preview.8.20407.11-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../dotnet-runtime-deps-5.0.0-preview.8.20407.11-x64.deb ...
Unpacking dotnet-runtime-deps-5.0 (5.0.0~preview.8.20407.11-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../dotnet-sdk-5.0.100-preview.8.20417.9-x64.deb ...
Unpacking dotnet-sdk-5.0 (5.0.100-preview.8.20417.9-1) over (5.0.100-preview.8.20417.9-1) ...
Preparing to unpack .../dotnet-targeting-pack-5.0.0-preview.8.20407.11-x64.deb ...
Unpacking dotnet-targeting-pack-5.0 (5.0.0~preview.8.20407.11-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb ...
Unpacking netstandard-targeting-pack-2.1 (2.1.0-1) over (2.1.0-1) ...
Setting up dotnet-apphost-pack-5.0 (5.0.0~preview.8.20407.11-1) ...
Setting up dotnet-host (5.0.0~preview.8.20407.11-1) ...
Setting up dotnet-hostfxr-5.0 (5.0.0~preview.8.20407.11-1) ...
Setting up dotnet-runtime-deps-5.0 (5.0.0~preview.8.20407.11-1) ...
Setting up dotnet-targeting-pack-5.0 (5.0.0~preview.8.20407.11-1) ...
Setting up netstandard-targeting-pack-2.1 (2.1.0-1) ...
Setting up aspnetcore-targeting-pack-5.0 (5.0.0~preview.8.20414.8-1) ...
Setting up dotnet-runtime-5.0 (5.0.0~preview.8.20407.11-1) ...
Setting up aspnetcore-runtime-5.0 (5.0.0~preview.8.20414.8-1) ...
Setting up dotnet-sdk-5.0 (5.0.100-preview.8.20417.9-1) ...
This software may collect information about you and your use of the software, and send that to Microsoft.
Please visit http://aka.ms/dotnet-cli-eula for more information.
Welcome to .NET!
---------------------
Learn more about .NET: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
Configuring...
--------------
A command is running to populate your local package cache to improve restore speed and enable offline access. This command takes up to one minute to complete and only runs once.
Processing triggers for man-db (2.8.5-2) ...
If someone points me to the install-dotnet-preview.sh script, I can file a pull request to get this fixed. (or by all means, fix it yourself if you feel so inclined)
Update: I discovered the --verbose-versions flag in apt, which gives us this, shedding some further light on this weird, weird issue:
$ sudo apt install --verbose-versions -y ./dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'netstandard-targeting-pack-2.1' instead of './dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb'
The following packages will be DOWNGRADED:
netstandard-targeting-pack-2.1 (2.1.0-1 => 2.1.0-1)
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 62 not upgraded.
E: Packages were downgraded and -y was used without --allow-downgrades.
This almost feels like a bug in apt-get to me. If someone feels like it, it would make sense to report this to Debian upstream as well.
If I instead switch to using
dpkginstead ofapt(which feels more natural with local packages IMHO)
I don't think we can just do this: dotnet-runtime-deps-5.0 depends on distro-provided library packages that need to be installed from the distro repositories for .NET to be able to run. My understanding is that dpkg would just complain, then you'd have to install all those packages manually and run the script again, or something like that.
This is interesting though, and maybe a hybrid/more complex approach would be a viable workaround.
If someone points me to the
install-dotnet-preview.shscript
AFAIK this script isn't maintained on GitHub, but I believe @leecow and @rbhanda own it and may accept a patch anyway.
I don't think we can just do this: dotnet-runtime-deps-5.0 depends on distro-provided library packages that need to be installed from the distro repositories for .NET to be able to run.
Very good point. I agree, flawed logic on my behalf. :see_no_evil:
I looked a bit more now and here is the URL to the "official", released version of this package (coming from packages.microsoft.com):
$ sudo apt-get -f install --print-uris
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
netstandard-targeting-pack-2.1
The following NEW packages will be installed:
netstandard-targeting-pack-2.1
0 upgraded, 1 newly installed, 0 to remove and 62 not upgraded.
Need to get 1,474 kB of archives.
After this operation, 20.2 MB of additional disk space will be used.
'https://packages.microsoft.com/debian/10/prod/pool/main/n/netstandard-targeting-pack-2.1/netstandard-targeting-pack-2.1.0-x64.deb' netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb 1474124 MD5Sum:83005b6765f03ca8c6d07d9b01b3ad71
Do note the MD5 checksum there at the end (83005b6765f03ca8c6d07d9b01b3ad71).
But if I check with the package being downloaded from this script:
$ sudo md5sum dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb
d87876ad63b5f8fddf1ec78acbae2de3 dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb
$ sudo ls -l dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb
-rwx------ 1 501 staff 1476016 apr 23 21:06 dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb
...it's something completely different. The file size is different also.
The package in the distribution seems to be built at 2019-09-18:
$ sudo dpkg-deb -c dotnet_packages/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb
drwxr-xr-x root/root 0 2019-09-18 01:46 ./
drwxr-xr-x root/root 0 2019-09-18 01:46 ./usr/
drwxr-xr-x root/root 0 2019-09-18 01:46 ./usr/share/
drwxr-xr-x root/root 0 2019-09-18 01:46 ./usr/share/doc/
drwxr-xr-x root/root 0 2019-09-18 01:46 ./usr/share/doc/netstandard-targeting-pack-2.1/
-rw-r--r-- root/root 194 2019-09-18 01:46 ./usr/share/doc/netstandard-targeting-pack-2.1/changelog.Debian.gz
-rw-r--r-- root/root 1498 2019-09-18 01:46 ./usr/share/doc/netstandard-targeting-pack-2.1/copyright
drwxr-xr-x root/root 0 2019-09-18 01:46 ./usr/share/dotnet/
drwxr-xr-x root/root 0 2019-09-18 01:46 ./usr/share/dotnet/packs/
drwxr-xr-x root/root 0 2019-09-18 01:46 ./usr/share/dotnet/packs/NETStandard.Library.Ref/
drwxr-xr-x root/root 0 2019-09-18 01:46 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/
drwxr-xr-x root/root 0 2019-09-18 01:46 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/data/
[...]
...while the package provided from packages.microsoft.com seems to be slightly more recent:
$ sudo dpkg-deb -c /var/cache/apt/archives/netstandard-targeting-pack-2.1_2.1.0-1_amd64.deb
drwxr-xr-x root/root 0 2019-10-11 17:19 ./
drwxr-xr-x root/root 0 2019-10-11 17:19 ./usr/
drwxr-xr-x root/root 0 2019-10-11 17:19 ./usr/share/
drwxr-xr-x root/root 0 2019-10-11 17:19 ./usr/share/dotnet/
drwxr-xr-x root/root 0 2019-10-11 17:19 ./usr/share/dotnet/packs/
drwxr-xr-x root/root 0 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/
drwxr-xr-x root/root 0 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/
drwxr-xr-x root/root 0 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/data/
-rw-r--r-- root/root 25681 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/data/FrameworkList.xml
-rw-r--r-- root/root 3177 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/data/PackageOverrides.txt
drwxr-xr-x root/root 0 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/
drwxr-xr-x root/root 0 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/
-rw-r--r-- root/root 14200 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Linq.Parallel.dll
-rw-r--r-- root/root 14712 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Net.Primitives.dll
-rw-r--r-- root/root 13688 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Buffers.dll
-rw-r--r-- root/root 14200 2019-10-11 17:19 ./usr/share/dotnet/packs/NETStandard.Library.Ref/2.1.0/ref/netstandard2.1/System.Text.RegularExpressions.dll
[...]
As for the checksums being different, I guess it _could_ be that apt (which is a more recent, high-level tool) is more strict here than dpkg; dpkg can be seen as the more "raw" utility here, with capabilities to fully destroy your system if you just give it the right parameters. :smirk: Different MD5 checksums/older content => it could be that it's smart enough to understand that this is somehow a "downgrade" perhaps? (even though "downgrade" is not technically 100% accurate...)
Re-publishing a package with the exact same version number but with different content seems a bit odd on our behalf. Given these facts, I will not proceed with reporting this to Debian at this point. Could someone with enough insight into this try to dig in and figure out where the .deb package inside https://dotnetcli.blob.core.windows.net/dotnet/release/install-preview/5.0.0-preview.8/dotnet-5.0.0-preview.8-deb.tar.gz is coming from? And try to update it with the correct, officially released version of this package (i.e. https://packages.microsoft.com/debian/10/prod/pool/main/n/netstandard-targeting-pack-2.1/netstandard-targeting-pack-2.1.0-x64.deb).
PTAL @rbhanda
Ping @rbhanda, any updates on this?
Are you still seeing this issue with .NET 5 RC 1 update?
Works for me now on .NET 5 RC 1
@rbhanda Trying it now. (As a side note, the dotnetcli.blob.core.windows.net host is horribly slow btw, I get download speeds in the 2-3 Mbit/s range - would be great to get proper CDN acceleration on these builds as well.)
Anyway, looks much better on the new version (except for the notice at the end):
*** Checking required system dependencies for detected OS: Debian GNU/Linux 10 (buster) ...
*** tar is already installed.
*** gzip is already installed.
*** curl is already installed.
*** Setting package type to deb.
*** Download source: dotnet-5.0.0-rc.1-deb.tar.gz
*** Downloading https://dotnetcli.blob.core.windows.net/dotnet/release/install-preview/5.0.0-rc.1/dotnet-5.0.0-rc.1-deb.tar.gz to /home/per/dotnet_install ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88.4M 100 88.4M 0 0 277k 0 0:05:26 0:05:26 --:--:-- 289k
*** Unpacking dotnet-5.0.0-rc.1-deb.tar.gz ...
dotnet_packages/
dotnet_packages/dotnet-host-5.0.0-rc.1.20451.14-x64.deb
dotnet_packages/dotnet-hostfxr-5.0.0-rc.1.20451.14-x64.deb
dotnet_packages/dotnet-targeting-pack-5.0.0-rc.1.20451.14-x64.deb
dotnet_packages/aspnetcore-targeting-pack-5.0.0-rc.1.20451.17.deb
dotnet_packages/dotnet-sdk-5.0.100-rc.1.20452.10-x64.deb
dotnet_packages/._netstandard-targeting-pack-2.1.0-x64.deb
dotnet_packages/netstandard-targeting-pack-2.1.0-x64.deb
dotnet_packages/dotnet-apphost-pack-5.0.0-rc.1.20451.14-x64.deb
dotnet_packages/aspnetcore-runtime-5.0.0-rc.1.20451.17-x64.deb
dotnet_packages/dotnet-runtime-deps-5.0.0-rc.1.20451.14-x64.deb
dotnet_packages/dotnet-runtime-5.0.0-rc.1.20451.14-x64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'aspnetcore-runtime-5.0' instead of '/home/per/dotnet_install/dotnet_packages/aspnetcore-runtime-5.0.0-rc.1.20451.17-x64.deb'
Note, selecting 'aspnetcore-targeting-pack-5.0' instead of '/home/per/dotnet_install/dotnet_packages/aspnetcore-targeting-pack-5.0.0-rc.1.20451.17.deb'
Note, selecting 'dotnet-apphost-pack-5.0' instead of '/home/per/dotnet_install/dotnet_packages/dotnet-apphost-pack-5.0.0-rc.1.20451.14-x64.deb'
Note, selecting 'dotnet-host' instead of '/home/per/dotnet_install/dotnet_packages/dotnet-host-5.0.0-rc.1.20451.14-x64.deb'
Note, selecting 'dotnet-hostfxr-5.0' instead of '/home/per/dotnet_install/dotnet_packages/dotnet-hostfxr-5.0.0-rc.1.20451.14-x64.deb'
Note, selecting 'dotnet-runtime-5.0' instead of '/home/per/dotnet_install/dotnet_packages/dotnet-runtime-5.0.0-rc.1.20451.14-x64.deb'
Note, selecting 'dotnet-runtime-deps-5.0' instead of '/home/per/dotnet_install/dotnet_packages/dotnet-runtime-deps-5.0.0-rc.1.20451.14-x64.deb'
Note, selecting 'dotnet-sdk-5.0' instead of '/home/per/dotnet_install/dotnet_packages/dotnet-sdk-5.0.100-rc.1.20452.10-x64.deb'
Note, selecting 'dotnet-targeting-pack-5.0' instead of '/home/per/dotnet_install/dotnet_packages/dotnet-targeting-pack-5.0.0-rc.1.20451.14-x64.deb'
Note, selecting 'netstandard-targeting-pack-2.1' instead of '/home/per/dotnet_install/dotnet_packages/netstandard-targeting-pack-2.1.0-x64.deb'
netstandard-targeting-pack-2.1 is already the newest version (2.1.0-1).
netstandard-targeting-pack-2.1 set to manually installed.
The following packages will be upgraded:
aspnetcore-runtime-5.0 aspnetcore-targeting-pack-5.0 dotnet-apphost-pack-5.0 dotnet-host dotnet-hostfxr-5.0
dotnet-runtime-5.0 dotnet-runtime-deps-5.0 dotnet-sdk-5.0 dotnet-targeting-pack-5.0
9 upgraded, 0 newly installed, 0 to remove and 67 not upgraded.
Need to get 0 B/91.3 MB of archives.
After this operation, 17.8 MB disk space will be freed.
Get:1 /home/per/dotnet_install/dotnet_packages/dotnet-runtime-deps-5.0.0-rc.1.20451.14-x64.deb dotnet-runtime-deps-5.0 amd64 5.0.0~rc.1.20451.14-1 [2,642 B]
Get:2 /home/per/dotnet_install/dotnet_packages/dotnet-host-5.0.0-rc.1.20451.14-x64.deb dotnet-host amd64 5.0.0~rc.1.20451.14-1 [52.3 kB]
Get:3 /home/per/dotnet_install/dotnet_packages/dotnet-hostfxr-5.0.0-rc.1.20451.14-x64.deb dotnet-hostfxr-5.0 amd64 5.0.0~rc.1.20451.14-1 [141 kB]
Get:4 /home/per/dotnet_install/dotnet_packages/dotnet-runtime-5.0.0-rc.1.20451.14-x64.deb dotnet-runtime-5.0 amd64 5.0.0~rc.1.20451.14-1 [22.0 MB]
Get:5 /home/per/dotnet_install/dotnet_packages/aspnetcore-runtime-5.0.0-rc.1.20451.17-x64.deb aspnetcore-runtime-5.0 amd64 5.0.0~rc.1.20451.17-1 [6,005 kB]
Get:6 /home/per/dotnet_install/dotnet_packages/dotnet-targeting-pack-5.0.0-rc.1.20451.14-x64.deb dotnet-targeting-pack-5.0 amd64 5.0.0~rc.1.20451.14-1 [1,874 kB]
Get:7 /home/per/dotnet_install/dotnet_packages/aspnetcore-targeting-pack-5.0.0-rc.1.20451.17.deb aspnetcore-targeting-pack-5.0 amd64 5.0.0~rc.1.20451.17-1 [1,170 kB]
Get:8 /home/per/dotnet_install/dotnet_packages/dotnet-apphost-pack-5.0.0-rc.1.20451.14-x64.deb dotnet-apphost-pack-5.0 amd64 5.0.0~rc.1.20451.14-1 [3,406 kB]
Get:9 /home/per/dotnet_install/dotnet_packages/dotnet-sdk-5.0.100-rc.1.20452.10-x64.deb dotnet-sdk-5.0 amd64 5.0.100-rc.1.20452.10-1 [56.6 MB]
(Reading database ... 229589 files and directories currently installed.)
Preparing to unpack .../0-dotnet-runtime-deps-5.0.0-rc.1.20451.14-x64.deb ...
Unpacking dotnet-runtime-deps-5.0 (5.0.0~rc.1.20451.14-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../1-dotnet-host-5.0.0-rc.1.20451.14-x64.deb ...
Unpacking dotnet-host (5.0.0~rc.1.20451.14-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../2-dotnet-hostfxr-5.0.0-rc.1.20451.14-x64.deb ...
Unpacking dotnet-hostfxr-5.0 (5.0.0~rc.1.20451.14-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../3-dotnet-runtime-5.0.0-rc.1.20451.14-x64.deb ...
Unpacking dotnet-runtime-5.0 (5.0.0~rc.1.20451.14-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../4-aspnetcore-runtime-5.0.0-rc.1.20451.17-x64.deb ...
Unpacking aspnetcore-runtime-5.0 (5.0.0~rc.1.20451.17-1) over (5.0.0~preview.8.20414.8-1) ...
Preparing to unpack .../5-dotnet-targeting-pack-5.0.0-rc.1.20451.14-x64.deb ...
Unpacking dotnet-targeting-pack-5.0 (5.0.0~rc.1.20451.14-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../6-aspnetcore-targeting-pack-5.0.0-rc.1.20451.17.deb ...
Unpacking aspnetcore-targeting-pack-5.0 (5.0.0~rc.1.20451.17-1) over (5.0.0~preview.8.20414.8-1) ...
Preparing to unpack .../7-dotnet-apphost-pack-5.0.0-rc.1.20451.14-x64.deb ...
Unpacking dotnet-apphost-pack-5.0 (5.0.0~rc.1.20451.14-1) over (5.0.0~preview.8.20407.11-1) ...
Preparing to unpack .../8-dotnet-sdk-5.0.100-rc.1.20452.10-x64.deb ...
Unpacking dotnet-sdk-5.0 (5.0.100-rc.1.20452.10-1) over (5.0.100-preview.8.20417.9-1) ...
Setting up dotnet-host (5.0.0~rc.1.20451.14-1) ...
Setting up dotnet-runtime-deps-5.0 (5.0.0~rc.1.20451.14-1) ...
Setting up dotnet-hostfxr-5.0 (5.0.0~rc.1.20451.14-1) ...
Setting up dotnet-apphost-pack-5.0 (5.0.0~rc.1.20451.14-1) ...
Setting up dotnet-targeting-pack-5.0 (5.0.0~rc.1.20451.14-1) ...
Setting up aspnetcore-targeting-pack-5.0 (5.0.0~rc.1.20451.17-1) ...
Setting up dotnet-runtime-5.0 (5.0.0~rc.1.20451.14-1) ...
Setting up aspnetcore-runtime-5.0 (5.0.0~rc.1.20451.17-1) ...
Setting up dotnet-sdk-5.0 (5.0.100-rc.1.20452.10-1) ...
This software may collect information about you and your use of the software, and send that to Microsoft.
Please visit http://aka.ms/dotnet-cli-eula for more information.
Welcome to .NET!
---------------------
Learn more about .NET: https://aka.ms/dotnet-docs
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli-docs
Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
Configuring...
--------------
A command is running to populate your local package cache to improve restore speed and enable offline access. This command takes up to one minute to complete and only runs once.
Processing triggers for man-db (2.8.5-2) ...
N: Download is performed unsandboxed as root as file '/home/per/dotnet_install/dotnet_packages/dotnet-runtime-deps-5.0.0-rc.1.20451.14-x64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
(Notices are probably mostly harmless, but could still be worth investigating what is causing this:)
N is for notices. A notice is something that the program wants you to be aware of but that is not a warning. A typical notice from apt is N: There is 1 additional version. Please use the '-a' switch to see it.
As for the contents of the archive, it does look a bit dubious still:
$ tar tvf dotnet-5.0.0-rc.1-deb.tar.gz
drwxr-xr-x rahulbhandari/staff 0 2020-09-12 02:27 dotnet_packages/
-rwx------ rahulbhandari/staff 52306 2020-09-11 21:44 dotnet_packages/dotnet-host-5.0.0-rc.1.20451.14-x64.deb
-rwx------ rahulbhandari/staff 140848 2020-09-11 21:44 dotnet_packages/dotnet-hostfxr-5.0.0-rc.1.20451.14-x64.deb
-rwx------ rahulbhandari/staff 1873794 2020-09-11 21:45 dotnet_packages/dotnet-targeting-pack-5.0.0-rc.1.20451.14-x64.deb
-rwx------ rahulbhandari/staff 1169878 2020-09-11 21:44 dotnet_packages/aspnetcore-targeting-pack-5.0.0-rc.1.20451.17.deb
-rwx------ rahulbhandari/staff 56616970 2020-09-11 21:46 dotnet_packages/dotnet-sdk-5.0.100-rc.1.20452.10-x64.deb
-rw-r--r-- rahulbhandari/staff 686 2020-09-12 02:22 dotnet_packages/._netstandard-targeting-pack-2.1.0-x64.deb
-rw-r--r-- rahulbhandari/staff 1474124 2020-09-12 02:22 dotnet_packages/netstandard-targeting-pack-2.1.0-x64.deb
-rwx------ rahulbhandari/staff 3406392 2020-09-11 21:45 dotnet_packages/dotnet-apphost-pack-5.0.0-rc.1.20451.14-x64.deb
-rwx------ rahulbhandari/staff 6005130 2020-09-11 21:44 dotnet_packages/aspnetcore-runtime-5.0.0-rc.1.20451.17-x64.deb
-rwx------ rahulbhandari/staff 2642 2020-09-11 21:45 dotnet_packages/dotnet-runtime-deps-5.0.0-rc.1.20451.14-x64.deb
-rwx------ rahulbhandari/staff 22027756 2020-09-11 21:44 dotnet_packages/dotnet-runtime-5.0.0-rc.1.20451.14-x64.deb
Note the strange dotnet_packages/._netstandard-targeting-pack-2.1.0-x64.deb entry there. Seems like a mistake?
$ file dotnet_packages/._netstandard-targeting-pack-2.1.0-x64.deb
dotnet_packages/._netstandard-targeting-pack-2.1.0-x64.deb: AppleDouble encoded Macintosh file
The rahulbhandari/staff ownerships there also looks a bit odd, compared to the root/root in the previous example. I guess this archive was manually created by you @rbhanda, after inspecting the contents of the files or something?
As for the dotnet_packages/netstandard-targeting-pack-2.1.0-x64.deb file itself, it looks much better this time. It's definitely the same file as coming from packages.microsoft.com:
$ ls -l dotnet_packages/netstandard-targeting-pack-2.1.0-x64.deb
-rw-r--r-- 1 501 staff 1474124 sep 12 02:22 dotnet_packages/netstandard-targeting-pack-2.1.0-x64.deb
$ md5sum dotnet_packages/netstandard-targeting-pack-2.1.0-x64.deb
83005b6765f03ca8c6d07d9b01b3ad71 dotnet_packages/netstandard-targeting-pack-2.1.0-x64.deb
So, bottom line: the bigger problem has been resolved AFAICT. These minor issues pointed out here are more of an annoyance than anything else; it doesn't affect the end-user experience of being able to install/not install the packages => much better than in the Preview version. If I was maintaining the install experience, I would still give it a look though, to avoid the install looking slightly "weird" to more experienced users.