vscode git commit时报错 gpg: skipped “****”’ no secret key,解决方法

博客讲述了作者在使用VSCode时遇到Git提交报错,原因是启用了GPG验证。通过检查VSCode的Git配置,作者发现了并取消了GPG验证设置,从而解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

先说下报错的原因:vscode中git配置项配置了GPG验证。

自己经历的过程:不知道哪天回来git提交时就报了这个错,也不知是不是自己误操作了,嗯…省略一万字,然后网上搜各种方法也没解决,但却给我思路,报错是因为开启了GPG验证,后面git命令查了配置,没看到有开启这个验证,然后想着是不是vscode中git设置了验证,去看了下,果然如此!

解决方法:vscode中git配置中的gpg验证去掉即可,如下图
在这里插入图片描述

在ubuntu22.04码安装autoware.universe报错如下,怎么解决码wuhen@PC:~/autoware$ ./setup-dev-env.sh Setting up the build environment can take up to 1 hour. > Are you sure you want to run setup? [y/N] y /home/wuhen/.local/bin is already in PATH. ⚠️ All pipx binary directories have been appended to PATH. If you are sure you want to proceed, try again with the '--force' flag. Otherwise pipx is ready to go! ✨ 🌟 ✨ Installing to existing venv 'ansible' installed package ansible 6.7.0, installed using Python 3.10.12 These apps are now globally available - ansible - ansible-community - ansible-config - ansible-connection - ansible-console - ansible-doc - ansible-galaxy - ansible-inventory - ansible-playbook - ansible-pull - ansible-test - ansible-vault done! ✨ 🌟 ✨ ansible-galaxy collection install -f -r /home/wuhen/autoware/ansible-galaxy-requirements.yaml Starting galaxy collection install process Process install dependency map Starting collection install process Installing 'autoware.dev_env:0.1.0' to '/home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env' Created collection for autoware.dev_env:0.1.0 at /home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env autoware.dev_env:0.1.0 was installed successfully ansible-playbook autoware.dev_env.universe --ask-become-pass --extra-vars install_devel=y --extra-vars data_dir=/home/wuhen/autoware_data --extra-vars rosdistro=humble --extra-vars rmw_implementation=rmw_cyclonedds_cpp --extra-vars base_image=ros:humble-ros-base-jammy --extra-vars cuda_version=12.3 --extra-vars cudnn_version=8.9.5.29-1+cuda12.2 --extra-vars tensorrt_version=8.6.1.6-1+cuda12.0 --extra-vars pre_commit_clang_format_version=17.0.5 BECOME password: [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' [WARNING]: running playbook inside collection autoware.dev_env [Warning] Some Autoware components depend on the CUDA, cuDNN and TensorRT NVIDIA libraries which have end-user license agreements that should be reviewed before installation. Install NVIDIA libraries? [y/N]: y [Warning] Should the ONNX model files and other artifacts be downloaded alongside setting up the development environment. Download artifacts? [y/N]: y PLAY [Set up source development environments for Autoware Universe] ************ TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Verify OS] *************************************************************** skipping: [localhost] TASK [Print args] ************************************************************** ok: [localhost] => { "msg": [ { "rosdistro": "humble" }, { "rmw_implementation": "rmw_cyclonedds_cpp" }, { "cuda_version": "12.3" }, { "cudnn_version": "8.9.5.29-1+cuda12.2" }, { "tensorrt_version": "8.6.1.6-1+cuda12.0" } ] } TASK [Show a warning if the NVIDIA libraries will not be installed] ************ skipping: [localhost] TASK [autoware.dev_env.ros2 : Install dependencies for setting up apt sources] *** ok: [localhost] TASK [autoware.dev_env.ros2 : Authorize ROS GPG key] *************************** fatal: [localhost]: FAILED! => {"changed": false, "dest": "/usr/share/keyrings/ros-archive-keyring.gpg", "elapsed": 10, "gid": 0, "group": "root", "mode": "01204", "msg": "Request failed: <urlopen error _ssl.c:990: The handshake operation timed out>", "owner": "root", "size": 1167, "state": "file", "uid": 0, "url": "https://raw.githubusercontent.com/ros/rosdistro/master/ros.key"} PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Failed.
07-22
wuhen@PC:~/autoware$ ./setup-dev-env.sh Setting up the build environment can take up to 1 hour. > Are you sure you want to run setup? [y/N] y /home/wuhen/.local/bin is already in PATH. ⚠️ All pipx binary directories have been appended to PATH. If you are sure you want to proceed, try again with the '--force' flag. Otherwise pipx is ready to go! ✨ 🌟 ✨ Installing to existing venv 'ansible' installed package ansible 6.7.0, installed using Python 3.10.12 These apps are now globally available - ansible - ansible-community - ansible-config - ansible-connection - ansible-console - ansible-doc - ansible-galaxy - ansible-inventory - ansible-playbook - ansible-pull - ansible-test - ansible-vault done! ✨ 🌟 ✨ ansible-galaxy collection install -f -r /home/wuhen/autoware/ansible-galaxy-requirements.yaml Starting galaxy collection install process Process install dependency map Starting collection install process Installing 'autoware.dev_env:0.1.0' to '/home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env' Created collection for autoware.dev_env:0.1.0 at /home/wuhen/.ansible/collections/ansible_collections/autoware/dev_env autoware.dev_env:0.1.0 was installed successfully ansible-playbook autoware.dev_env.universe --ask-become-pass --extra-vars install_devel=y --extra-vars data_dir=/home/wuhen/autoware_data --extra-vars rosdistro=humble --extra-vars rmw_implementation=rmw_cyclonedds_cpp --extra-vars base_image=ros:humble-ros-base-jammy --extra-vars cuda_version=12.3 --extra-vars cudnn_version=8.9.5.29-1+cuda12.2 --extra-vars tensorrt_version=8.6.1.6-1+cuda12.0 --extra-vars pre_commit_clang_format_version=17.0.5 BECOME password: [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' [WARNING]: running playbook inside collection autoware.dev_env [Warning] Some Autoware components depend on the CUDA, cuDNN and TensorRT NVIDIA libraries which have end-user license agreements that should be reviewed before installation. Install NVIDIA libraries? [y/N]: y [Warning] Should the ONNX model files and other artifacts be downloaded alongside setting up the development environment. Download artifacts? [y/N]: y PLAY [Set up source development environments for Autoware Universe] ************ TASK [Gathering Facts] ********************************************************* ok: [localhost] TASK [Verify OS] *************************************************************** skipping: [localhost] TASK [Print args] ************************************************************** ok: [localhost] => { "msg": [ { "rosdistro": "humble" }, { "rmw_implementation": "rmw_cyclonedds_cpp" }, { "cuda_version": "12.3" }, { "cudnn_version": "8.9.5.29-1+cuda12.2" }, { "tensorrt_version": "8.6.1.6-1+cuda12.0" } ] } TASK [Show a warning if the NVIDIA libraries will not be installed] ************ skipping: [localhost] TASK [autoware.dev_env.ros2 : Install dependencies for setting up apt sources] *** ok: [localhost] TASK [autoware.dev_env.ros2 : Authorize ROS GPG key] *************************** fatal: [localhost]: FAILED! => {"changed": false, "dest": "/usr/share/keyrings/ros-archive-keyring.gpg", "elapsed": 10, "gid": 0, "group": "root", "mode": "01204", "msg": "Request failed: <urlopen error _ssl.c:990: The handshake operation timed out>", "owner": "root", "size": 1167, "state": "file", "uid": 0, "url": "https://raw.githubusercontent.com/ros/rosdistro/master/ros.key"} PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0 Failed. wuhen@PC:~/autoware$
07-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值