Arch Linux WSL AUR

Arch Linux WSL AUR

AURビルドがWSLで機能するようにする方法。

デフォルトでは、rootとして実行されていないため、常に許可拒否(OSエラー13)が発生します。

ただし、rootユーザーとしてはAURは使用できませんのでご注意ください。 22.

ルートおよびローカルでマークされたトランザクションの例

    [root@DannysLaptop ~]# paru -S system-monitoring-center
:: Resolving dependencies...
error: can't install AUR package as root
[root@DannysLaptop ~]# su danny
[danny@DannysLaptop root]$ paru -S system-monitoring-center
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...

Repo (8) dmidecode-3.3-1  startup-notification-0.12-7  libxres-1.2.1-1  libwnck3-40.0-1  mesa-utils-8.4.0-7  python-cairo-1.20.1-3  freeglut-3.2.2-1  python-opengl-3.1.5-6
Aur (1) system-monitoring-center-1.2.1-1

:: Proceed to review? [Y/n]: 

:: Downloading PKGBUILDs...
 PKGBUILDs up to date
 nothing new to review
error: failed to run: sudo pacman --sync -- extra/dmidecode extra/startup-notification extra/libxres extra/libwnck3 extra/mesa-utils extra/python-cairo extra/freeglut extra/python-opengl: Permission denied (os error 13)
[danny@DannysLaptop root]$ 

ベストアンサー1

あなたが見ているエラーは、Rustのある種の権限問題に関連しているようです。バラよりこのGithubの問題可能な洞察を得るために。問題を再現しようとしましたが、paru自分自身もWSL2のArchに問題なくインストールして実行できました。

WSL2 / Archホームディレクトリに珍しいことはありますか?/home/danny/.cargoたとえば、Windowsドライブの場合、これが発生する可能性があることがわかります。/home/danny/.cargoそれとも、/home/danny/.rustupルートにファイルまたはディレクトリが存在しますか?

おすすめ記事