树莓派apt-get-update报错 Err:4https://packagecloud.io/headmelted/codebuilds/debian stretch InRelease 401

本文记录了在树莓派上遇到的apt-get更新问题,包括更换源后GPG签名错误、401 Unauthorized错误。解决方法包括重新获取GPG签名、删除不必要软件源文件。最终通过删除一个与vscode相关的软件源解决了401错误。
摘要由CSDN通过智能技术生成

unitree-机器狗A1开发问题解决——树莓派apt-get-update

在联网后需要sudo rou·te del default gw 192.168.123.1

每次联网ping一下常见网址 ping www.baidu.com 查看是否ping通过

1.更换源(尝试科学上网update失败)

2.密钥认证/GPG签名报错

树莓派在更改软件源之后 apt-get 时出现GPG签名错误 可以通过重新获取签名解决

报错了四个长16位的签名

将四个签名分别复制替换XXXXsudo apt-key adv --keyserver pgp.mit.edu --recv-keys XXXXXXXXXXXXXX (进行四次)

3.无法连接某网站Err:4 https://packagecloud.io/headmelted/codebuilds/debian stretch InRelease

401 Unauthorized [IP: 54.183.38.243 443]

连接镜像成功,报错

Err:4 https://packagecloud.io/headmelted/codebuilds/debian stretch InRelease

401 Unauthorized [IP: 54.183.38.243 443]

这个问题从下午六点卡到晚上九点半,在国内没有找到类似问题解决方案,尝试ping上面报错的网站,是不能ping通的,但是在浏览器连接是可以的。

解决:

在goggle上找到:https://forums.raspberrypi.com/viewtopic.php?t=311601 (还是得翻墙问问题:p)

删除/etc/apt/sources.list.d/中一个名字中有vscode的文件(删除时需要root管理员权限)

链接中帖子回复原文:

”Remove that packagecloud entry from either your /etc/apt/sources.list file, or one of the files in /etc/apt/sources.list.d/ , then run apt update again.“

“It’s the repo for headmelted’s vscode builds. IIRC it’s headmelted.list in /etc/apt/sources.list.d

vscode builds are now available from the RPF repo.”

之后进行接下来的配置即可。


有趣的事情:

在这里插入图片描述

在这里插入图片描述

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
root@6527d9173397:/# apt update Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease Err:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Temporary failure resolving 'security.ubuntu.com' Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Err:1 http://archive.ubuntu.com/ubuntu jammy InRelease Temporary failure resolving 'archive.ubuntu.com' Err:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Temporary failure resolving 'archive.ubuntu.com' Err:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Temporary failure resolving 'archive.ubuntu.com' Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease Temporary failure resolving 'archive.ubuntu.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones used instead.
06-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值