如何在 ubuntu 15.04 上下载 git

如何在 ubuntu 15.04 上下载 git

每当我输入 apt-get install git 时,它都会显示错误...终端显示的错误是

 yogesh@yogesh-dell:~$ apt-get install git
    E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
    E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

答案1

错误信息会准确地告诉您错误所在:E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

使用软件中心或sudo命令。阅读man sudo,然后尝试:

sudo apt-get install git  

相关内容