0


ubuntu warning: gpg (GnuPG) is not available. 解决办法

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

标签: ubuntu git linux

本文转载自: https://blog.csdn.net/sssddd12345_/article/details/129819222
版权归原作者 星空语 所有, 如有侵权,请联系我们删除。

“ubuntu warning: gpg (GnuPG) is not available. 解决办法”的评论:

还没有评论