Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble installing on Ubuntu. Cannot run as sudo #165

Closed
vince-p opened this issue Jun 11, 2023 · 1 comment
Closed

Trouble installing on Ubuntu. Cannot run as sudo #165

vince-p opened this issue Jun 11, 2023 · 1 comment

Comments

@vince-p
Copy link

vince-p commented Jun 11, 2023

I'm running a clean install of ubuntu server.

I used the following commands to install dua:
curl -LSfs https://raw.githubusercontent.com/byron/dua-cli/master/ci/install.sh | \ sh -s -- --git byron/dua-cli --target x86_64-unknown-linux-musl --crate dua --tag v2.20.1

That ran successfully but the command 'dua' did not work, I got a "command not found error".
I added ~/.cargo/bin to my PATH, and now it does run.

But I cannot do 'sudo dua'. I again get 'command not found'.

Is there a way to install on Ubuntu so that I dont have to worry about paths and can run the program as sudo?
Alternately, how can run the command as sudo in my current situation.
Thanks

@vince-p
Copy link
Author

vince-p commented Jun 11, 2023

I also tried deleting everything, installing rustup and installing through cargo.
This results in the same situation: dua runs as my user but when I try 'sudo dua' i get 'command not found'

Repository owner locked and limited conversation to collaborators Jun 11, 2023
@Byron Byron converted this issue into discussion #166 Jun 11, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant