Z
Z
ZaurK2018-06-15 15:15:03
linux
ZaurK, 2018-06-15 15:15:03

How to fix an error when installing a program?

Good afternoon! The second day I study Ubuntu, I installed different programs, but when I try to install git I get an error

~$ apt-get install git
E: Не удалось открыть файл блокировки /var/lib/dpkg/lock - open (13: Отказано в доступе)
E: Не удалось выполнить блокировку управляющего каталога (/var/lib/dpkg/); у вас есть права суперпользователя?

Please tell me how to fix this error?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kolya K, 2018-06-15
@ZaurK

Try this
or

su-
apt-get install git

V
vaut, 2018-06-15
@vaut

For the future:
Some commands require root privileges. Basically, these are commands that affect the system itself:
installing packages, editing system configs, mounting, etc.
The privileges for these commands are raised by the sudo command.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question