Error adding a repo to a new linux server is this network related

Asking for help? Comment out what you need so we can get more information to help you!
what is the issue below and how can I solve it

sudo apt-get update
Hit:2 Index of linux/ubuntu/ jammy InRelease

E: The repository ‘http://apt.kubernetes.io kubernetes-xenial Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.

Try renaming /etc/apt/sources.list.d/kubernetes.list file to something else and then do

sudo apt-get update

1 Like

This is what I kept getting
E: The repository ‘http://apt.kubernetes.io kubernetes-xenial Release’ does not have a Release file.
I renamed the kubernetes.list to kubernetes2.list but still getting some issues
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/archive_uri-http_apt_kubernetes_io_-jammy.list:1 and /etc/apt/sources.list.d/kubernetes2.list:1

apt.kubernetes.io was retired

See this blog for details:

4 Likes