赞
踩
warning: gpg (GnuPG) is not available.
warning: Installing it is strongly encouraged.
fatal: cannot make /home/xxxx/work/dove13/.repo/repo directory: File ex
kkkkcom@kkkkcom-virtual-machine:/snap/bin$ ls -l repo
lrwxrwxrwx 1 root root 13 5月 16 09:38 repo -> git-repo.repo
kkkkcom@kkkkcom-virtual-machine:/snap/bin$ ls -l git-repo.repo
lrwxrwxrwx 1 root root 13 5月 16 09:38 git-repo.repo -> /usr/bin/snap
这里直接去修改用户组发现并不能生效,可能跟链接L文件有关,于是通过rm -rf把有问题的repo删除,并且将实体机里面的repo文件拷贝到相关路径并设置相同的权限和用户组,发现问题解决
rm -rf /snap/bin/repo
kkkkcom@kkkkcom:kkkkcom-virtual-machine:/snap/bin$ sudo cp ~/Desktop/repo .
kkkkcom@kkkkcom-virtual-machine:/snap/bin$ ls -l repo
-rw-r–r-- 1 root root 45277 5月 26 10:40 repo
kkkkcom@kkkkcom-virtual-machine:/snap/bin$ sudo chown kkkkcom:kkkkcom repo
kkkkcom@kkkkcom-virtual-machine:/snap/bin$ ls -l repo
-rw-r–r-- 1 kkkkcom kkkkcom 45277 5月 26 10:40 repo
kkkkcom@kkkkcom-virtual-machine:/snap/bin$ chmod 775 repo
kkkkcom@kkkkcom-virtual-machine:/snap/bin$ ls -l repo
-rwxrwxr-x 1 kkkkcom kkkkcom 45277 5月 26 10:40 repo
参考解决办法:
https://blog.csdn.net/OneT1me/article/details/124981049
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。