This error happens when trying to update Kinetic
sudo apt update
Ign:1 http://us.archive.ubuntu.com/ubuntu kinetic InRelease
Ign:2 http://us.archive.ubuntu.com/ubuntu kinetic-updates InRelease
Ign:3 http://us.archive.ubuntu.com/ubuntu kinetic-backports InRelease
Err:4 http://us.archive.ubuntu.com/ubuntu kinetic Release
404 Not Found [IP: 91.189.91.38 80]
Err:5 http://us.archive.ubuntu.com/ubuntu kinetic-updates Release
404 Not Found [IP: 91.189.91.38 80]
Ign:6 http://security.ubuntu.com/ubuntu kinetic-security InRelease
Err:7 http://us.archive.ubuntu.com/ubuntu kinetic-backports Release
404 Not Found [IP: 91.189.91.38 80]
Err:8 http://security.ubuntu.com/ubuntu kinetic-security Release
404 Not Found [IP: 2620:2d:4002:1::101 80]
Reading package lists... Done
E: The repository 'http://us.archive.ubuntu.com/ubuntu kinetic Release' does not have a Release file.
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: The repository 'http://us.archive.ubuntu.com/ubuntu kinetic-updates Release' does not have a Release file.
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: The repository 'http://us.archive.ubuntu.com/ubuntu kinetic-backports Release' does not have a Release file.
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: The repository 'http://security.ubuntu.com/ubuntu kinetic-security Release' does not have a Release file.
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.
rogerp@skynet:~$ su root
Password:
X11 connection rejected because of wrong authentication.
xdpyinfo: unable to open display "localhost:10.0".
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
xprop: unable to open display 'localhost:10.0'
X11 connection rejected because of wrong authentication.
xprop: unable to open display 'localhost:10.0'
X11 connection rejected because of wrong authentication.
xprop: unable to open display 'localhost:10.0'
X11 connection rejected because of wrong authentication.
xprop: unable to open display 'localhost:10.0'
Here is how to fix. Replace the source.list file with lunar
mv /etc/apt/source.list /etc/apt/sources.list.bak
sudo sed -i 's/kinetic/lunar/g' /etc/apt/sources.list
sudo apt update
sudo apt upgrade
sudo apt-get dist-upgrade
sudo do-release-upgrade