question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install dotnet interactive on WSL (Ubuntu 20.04)

See original GitHub issue

Describe the bug

Upon trying to install dotnet interactive on Ubuntu 20.04 WSL using the tutorial I encounter problems.

$ python --version
Python 3.8.2
$ dotnet --version
3.1.402
$ jupyter --version
jupyter core     : 4.6.3
jupyter-notebook : 6.1.4
qtconsole        : 4.7.7
ipython          : 7.18.1
ipykernel        : 5.3.4
jupyter client   : 6.1.7
jupyter lab      : 2.2.7
nbconvert        : 5.6.1
ipywidgets       : 7.5.1
nbformat         : 5.0.7
traitlets        : 5.0.4

if I run dotnet tool install -g --add-source "https://dotnet.myget.org/F/dotnet-try/api/v3/index.json" Microsoft.dotnet-interactive I get an error saying it’s already installed:

Tool ‘microsoft.dotnet-interactive’ is already installed.

but if I do dotnet tool list I get an empty list:

$ dotnet tool list
Package Id      Version      Commands      Manifest
---------------------------------------------------

by trying to use dotnet interactive:

Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET Core program, but dotnet-interactive does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

/mnt/c/Users/lucas/.dotnet/tools is present on $PATH. This happens even after

  • I close all WSL sessions
  • I run Restart-Service LxssManager on an admin PowerShell window

Please complete the following:

Which version of .NET Interactive are you using? Impossible to determine as the problem is within the installation

  • OS
    • Windows 10 (2004 OS Build 19041.508)
    • macOS
    • Ubuntu 20.04 WSL
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Other (please specify)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
wli3commented, Oct 8, 2020

why \\wsl$\Ubuntu-20.04\ is needed? And you are running this append command on the host? I don’t think editing the PATH on the host will reflect to inside WSL shell session.

Could you run export PATH=$PATH:/home/mundim/.dotnet/tools inside the WSL?

2reactions
wli3commented, Oct 8, 2020

Do you have /home/mundim/.dotnet/tools on the path of powershell?

Read more comments on GitHub >

github_iconTop Results From Across the Web

installing dotnet6 on ubuntu 22.04 WSL2 - installed but not ...
This is how I got dotnet6 to work,. I discovered that previously I had installed dotnet 3.1 and dotnet 5 using the script...
Read more >
Installing PowerShell 7 in Ubuntu 20.04
First, you must follow the instructions for installing .NET Core for Ubuntu 20.04 from the Microsoft Documentation: ...
Read more >
Ubuntu 22.04 dotnet can't find dotnet sdks
I recently updated my Ubuntu distro to 22.04 from 20 and now it seems I cannot install dotnet sdks correctly. I have dotnet...
Read more >
Developing in the Windows Subsystem for Linux with ...
The Visual Studio Code WSL extension lets you use the Windows Subsystem for Linux (WSL) as your full-time development environment right from VS...
Read more >
[Guide] Hass.IO on Windows 10 WSL2 (No more VMs!)
Open the Microsoft Store and install Ubuntu, launch it and let it install, it will prompt to set a username and password. Run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found