无法定位软件包 ros-noetic
搜索是软件列表有问题,于是sudo apt update 这回错误更多
Certificate verification failed: The certificate is NOT trusted. T
he certificate chain uses not yet valid certificate.
Could not handshake: Error in the certificate verification. [IP: 104.22.5.26 443]
仓库 “https://deb.nodesource.com/node_14.x focal Release” 不再含有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 仓库 “https://packages.microsoft.com/repos/code stable Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: http://mirrors.ustc.edu.cn/ros/ubuntu/dists/focal/InRelease 的 Release 文件已经过期(已经过期了 974天 3小时 31分 51秒)。该仓库的更新将不会应用。
E: 仓库 “https://pkgs.tailscale.com/stable/ubuntu focal Release” 不再含有 Release 文件 。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: http://mirrors.aliyun.com/ubuntu/dists/focal-security/InRelease 的 Release 文件已经 过期(已经过期了 974天 22小时 15分 21秒)。该仓库的更新将不会应用。
E: http://mirrors.aliyun.com/ubuntu/dists/focal-updates/InRelease 的 Release 文件已经过期(已经过期了 975天 11小时 25分 51秒)。该仓库的更新将不会应用。
E: http://mirrors.aliyun.com/ubuntu/dists/focal-backports/InRelease 的 Release 文件已经过期(已经过期了 796天 5小时 56分 9秒)。该仓库的更新将不会应用。
E: http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/dists/focal/InRelease 的 Release 文件已经过期(已经过期了 673天 17小时 26分 34秒)。该仓库的更新将不会应用。
解决apt update的问题
通过搜索,以为是ca证书有问题,但是重新安装最新版证书后,还是报错
的 Release 文件已 经过期(已经过期了 796天 5小时 43分 5秒)。该仓库的更新将不会应用。
我还不停的换源,都不行,将https改为http也不行。
最后发现是树莓派的时间不对,我现在是2024年5月10日,但是树莓派的时间是 2021年,于是乎 这个过期就说得过去了。
参考:执行apt-get update后,更新源显示Release文件已经过期_ubuntu20.04清华源release 文件已经过期-CSDN博客
解决树莓派非x86架构换源的问题
改好了树莓派系统时间,我又apt update, 但是还是报错 E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
E: 无法下载 http://mirrors.163.com/ubuntu/dists/focal/main/binary-armhf/Packages 404 Not Found [IP: 60.191.80.15 80]
E: 无法下载 http://mirrors.163.com/ubuntu/dists/focal-security/main/binary-armhf/Packages 404 Not Found [IP: 60.191.80.15 80]
E: 无法下载 http://mirrors.163.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages 404 Not Found [IP: 60.191.80.15 80]
E: 无法下载 http://mirrors.163.com/ubuntu/dists/focal-proposed/main/binary-armhf/Packages 404 Not Found [IP: 60.191.80.15 80]
E: 无法下载 http://mirrors.163.com/ubuntu/dists/focal-backports/main/binary-armhf/Packages 404 Not Found [IP: 60.191.80.15 80]
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
搜索说是源的问题,可我换了很多源,都是报错 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
在清华源官网发现 源还分指令集架构,我一直在复制别人的x86源,所以导致索引不对。
ubuntu | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
修改为非x86源,就能用到树莓派的ubuntu了