error: could not lock config file .git/config: Permission denied/Command failed with exit 255
Posted 柳鲲鹏
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error: could not lock config file .git/config: Permission denied/Command failed with exit 255相关的知识,希望对你有一定的参考价值。
吾就安装个软件,竟然报这个错误:
error: could not lock config file .git/config: Permission denied
Error: Command failed with exit 255: git
- 解决办法
sudo chgrp -R admin /usr/local
sudo chmod -R g+w /usr/local
执行时会报目录没权限,不必理会。
以上是关于error: could not lock config file .git/config: Permission denied/Command failed with exit 255的主要内容,如果未能解决你的问题,请参考以下文章
error: could not lock config file */to/.ssh/loc/.gitconfig: No such file or directory的解决办法
error: could not lock config file */to/.ssh/loc/.gitconfig: No such file or directory的解决办法
E: Could not get lock /var/lib/dpkg/lock
could not get lock /var/lib/dpkg/lock