sudo apt update
错误:11 https://mirrors.ustc.edu.cn/ubuntu jammy/main arm64 Packages
404 Not Found [IP: 2001:da8:d800:95::110 443]
忽略:20 https://mirrors.ustc.edu.cn/ubuntu jammy/restricted arm64 Packages
忽略:28 https://mirrors.ustc.edu.cn/ubuntu jammy/universe arm64 Packages
忽略:38 https://mirrors.ustc.edu.cn/ubuntu jammy/multiverse arm64 Packages
错误:50 https://mirrors.ustc.edu.cn/ubuntu jammy-security/main arm64 Packages
404 Not Found [IP: 2001:da8:d800:95::110 443]
忽略:61 https://mirrors.ustc.edu.cn/ubuntu jammy-security/restricted arm64 Packages
忽略:64 https://mirrors.ustc.edu.cn/ubuntu jammy-security/universe arm64 Packages
忽略:74 https://mirrors.ustc.edu.cn/ubuntu jammy-security/multiverse arm64 Packages
错误:84 https://mirrors.ustc.edu.cn/ubuntu jammy-updates/main arm64 Packages
404 Not Found [IP: 2001:da8:d800:95::110 443]
忽略:93 https://mirrors.ustc.edu.cn/ubuntu jammy-updates/restricted arm64 Packages
忽略:96 https://mirrors.ustc.edu.cn/ubuntu jammy-updates/universe arm64 Packages
忽略:107 https://mirrors.ustc.edu.cn/ubuntu jammy-updates/multiverse arm64 Packages
错误:117 https://mirrors.ustc.edu.cn/ubuntu jammy-backports/main arm64 Packages
404 Not Found [IP: 2001:da8:d800:95::110 443]
忽略:128 https://mirrors.ustc.edu.cn/ubuntu jammy-backports/universe arm64 Packages
已下载 83.3 MB,耗时 10秒 (7,946 kB/s)
正在读取软件包列表... 完成
E: 无法下载 https://mirrors.ustc.edu.cn/ubuntu/dists/jammy/main/binary-arm64/Packages 404 Not Found [IP: 2001:da8:d800:95::110 443]
E: 无法下载 https://mirrors.ustc.edu.cn/ubuntu/dists/jammy-security/main/binary-arm64/Packages 404 Not Found [IP: 2001:da8:d800:95::110 443]
E: 无法下载 https://mirrors.ustc.edu.cn/ubuntu/dists/jammy-updates/main/binary-arm64/Packages 404 Not Found [IP: 2001:da8:d800:95::110 443]
E: 无法下载 https://mirrors.ustc.edu.cn/ubuntu/dists/jammy-backports/main/binary-arm64/Packages 404 Not Found [IP: 2001:da8:d800:95::110 443]
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
观察后面发现: arm64架构,Ubuntu LTS进行 sudo apt-get update 一直报上面错误,源使用的是22.04对应版本jammy,且使用arm64架构的ubuntu-ports,换了很多源一直报同样的错,不知为什么。
但点进去该报错链接页面确实不存在,404…
后来多方查找终于解决了!!!
运行:
sudo dpkg --print-architecture
# 输出:arm64
sudo dpkg --print-foreign-architecture
# 输出:amd64 又或者显示了两个架构的:i386 arm64
貌似是多了个外部架构,需删除掉它。
解决:
sudo dpkg --remove-architecture arm64
之后 sudo apt-get install 成功
标签:文件,cn,jammy,索引,报错,arm64,https,ubuntu,edu From: https://www.cnblogs.com/zhengyan6/p/18189739