Skip to content

Trouble installing on Ubuntu. Cannot run as sudo #165

Closed

Description

@vince-p

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

Activity

  1. vince-p commented on Jun 11, 2023

    @vince-p
    Author

    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'

  2. Repository owner locked and limited conversation to collaborators on Jun 11, 2023
  3. converted this issue into a discussion #166 on Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions