0
respostas

Erro na instalação de ambiente >> Permission denied

kaio@DESKTOP-QLG7PH9:~$ mkdir alura-curso-beam
kaio@DESKTOP-QLG7PH9:~$ cd alura-curso-beam/
kaio@DESKTOP-QLG7PH9:~/alura-curso-beam$ ls
kaio@DESKTOP-QLG7PH9:~/alura-curso-beam$ python3 -m venv env-beam
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

  kaio@DESKTOP-QLG7PH9:~/alura-curso-beam$ python3 -m venv env-beam
The virtual environment was not created successfully because ensurepip is not
available.  On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.

    apt install python3.8-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/kaio/alura-curso-beam/env-beam/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']

kaio@DESKTOP-QLG7PH9:~/alura-curso-beam$ ls
env-beam  env-kaio
kaio@DESKTOP-QLG7PH9:~/alura-curso-beam$ apt install python3.8-venv
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?
kaio@DESKTOP-QLG7PH9:~/alura-curso-beam$