dotnet sdk installed incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dotnet6 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
dotnet binary installed to
/usr/lib/
link in /usr/bin is incorrect:
/usr/bin/dotnet -> ../lib/
should be
/usr/bin/dotnet -> /usr/lib/
incorrect link causes failure with dotnet fake build. System is unable to find assemblies.
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
dotnet6:
Installed: 6.0.121-
Candidate: 6.0.121-
Version table:
*** 6.0.121-
500 http://
500 http://
100 /var/lib/
I expected
$ dotnet fake build
to build the project
What happened
$ dotnet fake build
was unable to find assemblies
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: dotnet6 6.0.121-
ProcVersionSign
Uname: Linux 6.2.0-26-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: i3
Date: Thu Aug 17 14:11:08 2023
InstallationDate: Installed on 2023-04-19 (120 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
SourcePackage: dotnet6
UpgradeStatus: No upgrade log present (probably fresh install)
Hello Michael, thank you for reporting this bug!
The link /usr/bin/dotnet -> ../lib/ dotnet/ dotnet is a valid one per Debian Policy [1], which states that "In general, symbolic links within a top-level directory should be relative, and symbolic links pointing from one top-level directory to or into another should be absolute."
In fact, the "decision" to make the link relative is automatically made by a tool called dh_link [2], which creates these links conforming with Debian Policy.
It seems that FAKE's SDK Resolver isn't handling this well and fails to find assemblies. Therefore, we believe that this is an issue that should be resolved on FAKE's side.
[1] https:/ /www.debian. org/doc/ debian- policy/ ch-files. html#symbolic- links /manpages. debian. org/testing/ debhelper/ dh_link. 1.en.html# DESCRIPTION
[2] https:/