I've been trying to update my Raspberry Pi's Ubuntu version from 20.04 to 22.04 (Jammy Jellyfish). First, I encountered an error where my Software Updater claimed it could not connect to the web, despite that my internet connection was fine. I switched from Main Server to the US Server, and this seemed to solve the problem.
Then, part of the way into the update (during the "Setting New Software Channels" phase), it stopped working and I got a lengthy error message:
W:Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:43, W:Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:43, W:Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:3 and /etc/apt/sources.list:43,...
(I've cut out the middle section, which is mostly more of the same, to save space) ...W:Target CNF (restricted/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list:37 and /etc/apt/sources.list:50, W:Target CNF (restricted/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:37 and /etc/apt/sources.list:50, E:Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/jammy/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80], E:Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/jammy-updates/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80], E:Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/jammy-backports/universe/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80], E:Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/jammy-security/restricted/binary-i386/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.
The error message is far longer than just this (which is the very start and the very end), and while it all looks mostly like this, I might've missed something important. I can provide the entire error message if that's needed.
Either way, can someone tell me how I can get past this and update Ubuntu to 22.04?