For months I could not figure out why I couldn't update, so I just left it alone.
Then one day when I was installing Ubuntu desktop on my windows computer, I ran into the same problem. Both my linux and windows computer are connected to the internet through an ethernet chord. So the fact that I got the same error on my other computer made me think it was a IP issue. So I switched my connection (on my windows) from ethernet to wifi and it worked.
Unfortunately on my linux, I do not have a wifi adapter. It won't let me install one either.
Why is that I can sudo apt-get update when connected through the wifi but not ethernet?
sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner
error:
Err:1 http://packages.ros.org/ros/ubuntu focal InRelease
403 Forbidden: header 'Content-Type' value denied [IP: 140.211.166.134 80]
Hit:2 http://packages.microsoft.com/repos/code stable InRelease
Err:3 http://security.ubuntu.com/ubuntu focal-security InRelease
403 Forbidden: header 'Content-Type' value denied [IP: 91.189.91.38 80]
Hit:4 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
Err:5 http://ppa.launchpad.net/apandada1/brightness-controller/ubuntu focal InRelease
403 Forbidden: header 'Content-Type' value denied [IP: 91.189.95.85 80]
Err:6 http://archive.ubuntu.com/ubuntu focal InRelease
403 Forbidden: header 'Content-Type' value denied [IP: 91.189.88.152 80]
Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease
Err:8 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu focal InRelease
403 Forbidden: header 'Content-Type' value denied [IP: 91.189.95.85 80]
Err:9 http://archive.ubuntu.com/ubuntu focal-updates InRelease
403 Forbidden: header 'Content-Type' value denied [IP: 91.189.88.152 80]
Err:10 http://ppa.launchpad.net/rock-core/qt4/ubuntu focal InRelease
403 Forbidden: header 'Content-Type' value denied [IP: 91.189.95.85 80]
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://packages.ros.org/ros/ubuntu focal InRelease' is not signed.
E: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/focal/InRelease 403 Forbidden: header 'Content-Type' value denied [IP: 140.211.166.134 80]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://security.ubuntu.com/ubuntu focal-security InRelease' is not signed.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease 403 Forbidden: header 'Content-Type' value denied [IP: 91.189.91.38 80]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://ppa.launchpad.net/apandada1/brightness-controller/ubuntu focal InRelease' is not signed.
E: Failed to fetch http://ppa.launchpad.net/apandada1/brightness-controller/ubuntu/dists/focal/InRelease 403 Forbidden: header 'Content-Type' value denied [IP: 91.189.95.85 80]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://archive.ubuntu.com/ubuntu focal InRelease' is not signed.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease 403 Forbidden: header 'Content-Type' value denied [IP: 91.189.88.152 80]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu focal InRelease' is not signed.
E: Failed to fetch http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu/dists/focal/InRelease 403 Forbidden: header 'Content-Type' value denied [IP: 91.189.95.85 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease 403 Forbidden: header 'Content-Type' value denied [IP: 91.189.88.152 80]
E: The repository 'http://archive.ubuntu.com/ubuntu focal-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/rock-core/qt4/ubuntu/dists/focal/InRelease 403 Forbidden: header 'Content-Type' value denied [IP: 91.189.95.85 80]
E: The repository 'http://ppa.launchpad.net/rock-core/qt4/ubuntu focal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.