Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Linux] Error when trying to install package using 'sudo pkgm install' #1218

Open
@tclementdev

Description

On Fedora Silverblue, I installed pkgx:

> curl https://pkgx.sh | sh
> ls /usr/local/bin
mash pkgm pkgx

Then tried to install a package inside /usr/local/bin using pkgm:

> sudo pkgm install fish
sudo: unable to execute /root/.pkgx/pkgx.sh/v2.7.0/bin/pkgx: Permission denied

It seems like it is trying to install things in the context of the root user, rather than installing things in /usr/local/bin.

Not using sudo works:

> pkgm install fish
> which fish
~/.local/bin/fish

Based on the documentation, I expected sudo pkgm install fish to properly install the package in /usr/local/bin. Am I missing something here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /