主要工作流程:
apt update
apt upgrade
do-release-upgrade
失败。当遵循Ubuntu sudo apt get update 404 Not Found 问题答案(用 bionic ofc 替换 focal)我得到多个定义(/var/log/dist-upgrade 日志:
2022-09-15 10:04:28,860 ERROR IOError/SystemError in cache.update(): 'W:Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-i386) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-arm64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (restricted/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons-small (restricted/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-i386) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-arm64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (restricted/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-i386) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-arm64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (restricted/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons-small (restricted/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-i386) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-arm64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (restricted/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.38 80], E:Some index files failed to download. They have been ignored, or old ones used instead.'. Retrying (currentRetry: 0)
2022-09-15 10:04:36,988 ERROR IOError/SystemError in cache.update(): 'W:Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-i386) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-arm64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (restricted/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons-small (restricted/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-i386) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-arm64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (restricted/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-i386) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-arm64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (restricted/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons-small (restricted/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-i386) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-arm64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (restricted/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.38 80], E:Some index files failed to download. They have been ignored, or old ones used instead.'. Retrying (currentRetry: 1)
2022-09-15 10:04:57,516 ERROR IOError/SystemError in cache.update(): 'W:Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-i386) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-arm64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11 (restricted/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons-small (restricted/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-i386) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-arm64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Contents-deb (restricted/Contents-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (restricted/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:15, W:Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-i386) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-arm64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11 (restricted/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons-small (restricted/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-i386) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-arm64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target Contents-deb (restricted/Contents-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (restricted/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, W:Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list:16, E:Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.39 80], E:Some index files failed to download. They have been ignored, or old ones used instead.'. Retrying (currentRetry: 2)
2022-09-15 10:04:57,516 ERROR doUpdate() failed completely
2022-09-15 10:04:57,517 DEBUG abort called
删除上述线程在 sources.list 中创建的行时,只留下自动添加的行
deb http://archive.canonical.com/ubuntu bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner
我得到了不同的输出(但结果相同):
2022-09-15 10:12:26,125 DEBUG running doUpdate() (showErrors=True)
2022-09-15 10:12:32,086 ERROR IOError/SystemError in cache.update(): 'E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.36 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.36 80], E:Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 91.189.91.39 80], E:Some index files failed to download. They have been ignored, or old ones used instead.'. Retrying (currentRetry: 0)
2022-09-15 10:12:42,241 ERROR IOError/SystemError in cache.update(): 'E:Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.36 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.36 80], E:Some index files failed to download. They have been ignored, or old ones used instead.'. Retrying (currentRetry: 1)
2022-09-15 10:12:49,308 ERROR IOError/SystemError in cache.update(): 'E:Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.39 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.36 80], E:Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/main/binary-arm64/Packages 404 Not Found [IP: 185.125.190.36 80], E:Some index files failed to download. They have been ignored, or old ones used instead.'. Retrying (currentRetry: 2)
2022-09-15 10:12:49,308 ERROR doUpdate() failed completely
2022-09-15 10:12:49,308 DEBUG abort called
我想我需要强制管理器不要以某种方式更新 arm64 包(我的架构当然是 x86,arm 包用于交叉编译项目)。我尝试按照这里的一些帖子的建议删除 snapd,但没有帮助。
答案1
好的,所以需要做两件事。首先,我需要获取正确的有效 sources.list(例如https://gist.github.com/h0bbel/4b28ede18d65c3527b11b12fa36aa8d1)。 第二
dpkg --remove-architecture arm64
确保我没有尝试获取 ARM 软件包。最后,更新管理器完成后,除“sudo reboot”之外的任何其他方式重新启动均不起作用。重启后一切似乎都正常。