1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

curlとgitをインストールできない!!

Posted at

エラーコード

PowerShell
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

エラーコードの意味は 「システムにインストールを命令しようとしたけど、権限(root=管理者)がないから拒否された!」 です。

私が実行したコード

PowerShell
$ apt install curl git

このコードの意味は curlとgitをインストールという意味です!

解決策

コマンドの先頭に sudo をつけるだけ!

sudoってなに??

sudo = 「スーパーユーザ(管理者)として実行する」 という意味

【イレギュラー】初回だけPW入力が求められるかも!!

PowerShell
[sudo] password for (PC名:

と聞かれたら、WSLインストール時に決めたUbuntuのユーザパスワードを入力しましょう🌸

✅ まとめ

問題 解決方法
Permission denied → sudo をつけて実行
例)apt install xxx → sudo apt install xxx

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?