[Bug 2027620] [NEW] DOTNET_ROOT is unnecessarily set

Richard Lander 2027620 at bugs.launchpad.net
Wed Jul 12 18:44:08 UTC 2023


Public bug reported:

This is what I see on my machine.

```
rich at vancouver:~$ dotnet --version
7.0.109
rich at vancouver:~$ cat /etc/os-release | head -n 1
PRETTY_NAME="Ubuntu 22.04.2 LTS"
rich at vancouver:~$ export | grep DOTNET
declare -x DOTNET_BUNDLE_EXTRACT_BASE_DIR="/home/rich/.cache/dotnet_bundle_extract"
declare -x DOTNET_ROOT="/usr/lib/dotnet"
rich at vancouver:~$ dotnet --info | grep ROOT
  DOTNET_ROOT       [/usr/lib/dotnet]
rich at vancouver:~$ cat /etc/dotnet/install_location
/usr/lib/dotnet
```

I am surprised to see `DOTNET_ROOT` set. The value in
`/etc/dotnet/install_location` is set to the same value and should be
doing the same job. The `/etc/dotnet` configuration is intended for the
global install and `DOTNET_ROOT` is intended for developers.

Please re-consider (not) setting `DOTNET_ROOT`.

Separately, is there a reason why `DOTNET_BUNDLE_EXTRACT_BASE_DIR` is
set?

** Affects: dotnet6 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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/2027620

Title:
  DOTNET_ROOT is unnecessarily set

Status in dotnet6 package in Ubuntu:
  New

Bug description:
  This is what I see on my machine.

  ```
  rich at vancouver:~$ dotnet --version
  7.0.109
  rich at vancouver:~$ cat /etc/os-release | head -n 1
  PRETTY_NAME="Ubuntu 22.04.2 LTS"
  rich at vancouver:~$ export | grep DOTNET
  declare -x DOTNET_BUNDLE_EXTRACT_BASE_DIR="/home/rich/.cache/dotnet_bundle_extract"
  declare -x DOTNET_ROOT="/usr/lib/dotnet"
  rich at vancouver:~$ dotnet --info | grep ROOT
    DOTNET_ROOT       [/usr/lib/dotnet]
  rich at vancouver:~$ cat /etc/dotnet/install_location
  /usr/lib/dotnet
  ```

  I am surprised to see `DOTNET_ROOT` set. The value in
  `/etc/dotnet/install_location` is set to the same value and should be
  doing the same job. The `/etc/dotnet` configuration is intended for
  the global install and `DOTNET_ROOT` is intended for developers.

  Please re-consider (not) setting `DOTNET_ROOT`.

  Separately, is there a reason why `DOTNET_BUNDLE_EXTRACT_BASE_DIR` is
  set?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dotnet6/+bug/2027620/+subscriptions




More information about the foundations-bugs mailing list