Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#1,218 コメント 15 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
fedora, linux, rust

調査の方向性

Reproduce the behavior on Fedora Silverblue with sudo pkgm install fish, then compare it with the non-sudo command and the documented installation expectation. Done means resolving the permission error and installing fish into /usr/local/bin as described, with the relevant behavior covered by a test if the repository provides one.

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Rust
スター
9.9k
フォーク
1.4k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pkgxdev/pkgx のほかの issue

pkgxdev/pkgx の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。