Failed to install deb in project folder. Please help #114

Open
opened 2026-01-29 16:29:52 +00:00 by claunia · 2 comments
Owner

Originally created by @mazm786 on GitHub (Feb 9, 2022).

I have successfully installed at global level by following command.
dotnet tool install --global dotnet-deb

but failed to run it at project level by this command.
dotnet deb install

Error:

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 program, but dotnet-deb 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.

.Netcore version: .Net5.0
Ubuntu: 18.04.6 TLS
VSCODE : 1.64.1
OS: Linux x64 5.4.0-96-generic

Originally created by @mazm786 on GitHub (Feb 9, 2022). I have successfully installed at global level by following command. `dotnet tool install --global dotnet-deb` but failed to run it at project level by this command. `dotnet deb install` **Error:** ``` 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 program, but dotnet-deb 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. ``` .Netcore version: .Net5.0 Ubuntu: 18.04.6 TLS VSCODE : 1.64.1 OS: Linux x64 5.4.0-96-generic
Author
Owner

@leo-schick commented on GitHub (Mar 29, 2022):

Same for me. Running Debian on WSL:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 10 (buster)
Release:        10
Codename:       buster
$ dotnet --version
6.0.201
$ uname -r
5.10.60.1-microsoft-standard-WSL2
$ cat /proc/version
Linux version 5.10.60.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Aug 25 23:20:18 UTC 2021
@leo-schick commented on GitHub (Mar 29, 2022): Same for me. Running Debian on WSL: ``` $ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster ``` ``` $ dotnet --version 6.0.201 ``` ``` $ uname -r 5.10.60.1-microsoft-standard-WSL2 ``` ``` $ cat /proc/version Linux version 5.10.60.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Aug 25 23:20:18 UTC 2021 ```
Author
Owner

@stdedos commented on GitHub (Apr 4, 2022):

I have successfully installed at global level by following command. dotnet tool install --global dotnet-deb

Define successfully. I have successfully installed dotnet-deb, but then, the command output was:

root@c1bbe48cf612:/source# dotnet tool install --global dotnet-deb
Tools directory '/root/.dotnet/tools' is not currently on the PATH environment variable.
If you are using bash, you can add it to your profile by running the following command:

cat << \EOF >> ~/.bash_profile
# Add .NET Core SDK tools
export PATH="$PATH:/root/.dotnet/tools"
EOF

You can add it to the current session by running the following command:

export PATH="$PATH:/root/.dotnet/tools"

You can invoke the tool using the following command: dotnet-deb
Tool 'dotnet-deb' (version '0.1.220') was successfully installed.

Line

You can invoke the tool using the following command: dotnet-deb

implicitly expects that the message before it (i.e. the not-in-PATH message) wasn't triggered.

@stdedos commented on GitHub (Apr 4, 2022): > I have successfully installed at global level by following command. `dotnet tool install --global dotnet-deb` Define successfully. I have successfully installed `dotnet-deb`, but then, the command output was: ```console root@c1bbe48cf612:/source# dotnet tool install --global dotnet-deb Tools directory '/root/.dotnet/tools' is not currently on the PATH environment variable. If you are using bash, you can add it to your profile by running the following command: cat << \EOF >> ~/.bash_profile # Add .NET Core SDK tools export PATH="$PATH:/root/.dotnet/tools" EOF You can add it to the current session by running the following command: export PATH="$PATH:/root/.dotnet/tools" You can invoke the tool using the following command: dotnet-deb Tool 'dotnet-deb' (version '0.1.220') was successfully installed. ``` Line ``` You can invoke the tool using the following command: dotnet-deb ``` implicitly expects that the message before it (i.e. the not-in-PATH message) wasn't triggered.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#114