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

**URL:** <https://discuss.kubernetes.io/t/error-adding-a-repo-to-a-new-linux-server-is-this-network-related/30146>\
**Category:** General Discussions\
**Created:** [October 15, 2024, 9:07pm UTC](https://discuss.kubernetes.io/t/error-adding-a-repo-to-a-new-linux-server-is-this-network-related/30146 "2024-10-15T21:07:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Regis712](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/regis712/32/16030_2.png) [@Regis712](https://discuss.kubernetes.io/u/Regis712)\
**Post date:** [October 15, 2024, 9:07pm UTC](https://discuss.kubernetes.io/t/error-adding-a-repo-to-a-new-linux-server-is-this-network-related/30146/1 "2024-10-15T21:07:04Z")

</div>

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/](https://download.docker.com/linux/ubuntu) jammy InRelease

E: The repository ‘[http://apt.kubernetes.io](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.

---

<div class="post-metadata">

**Author:** ![jayeshmahajan](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/jayeshmahajan/32/15459_2.png) [@jayeshmahajan](https://discuss.kubernetes.io/u/jayeshmahajan)\
**Post date:** [October 16, 2024, 12:40am UTC](https://discuss.kubernetes.io/t/error-adding-a-repo-to-a-new-linux-server-is-this-network-related/30146/2 "2024-10-16T00:40:31Z")

</div>

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

```auto
sudo apt-get update

```

---

<div class="post-metadata">

**Author:** ![Regis712](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/regis712/32/16030_2.png) [@Regis712](https://discuss.kubernetes.io/u/Regis712)\
**Post date:** [October 16, 2024, 1:52am UTC](https://discuss.kubernetes.io/t/error-adding-a-repo-to-a-new-linux-server-is-this-network-related/30146/3 "2024-10-16T01:52:40Z")

</div>

This is what I kept getting  
E: The repository ‘[http://apt.kubernetes.io](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

---

<div class="post-metadata">

**Author:** ![mrbobbytables](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/mrbobbytables/32/7_2.png) [@mrbobbytables](https://discuss.kubernetes.io/u/mrbobbytables)\
**Post date:** [October 16, 2024, 2:47am UTC](https://discuss.kubernetes.io/t/error-adding-a-repo-to-a-new-linux-server-is-this-network-related/30146/4 "2024-10-16T02:47:25Z")

</div>

[apt.kubernetes.io](http://apt.kubernetes.io) was retired

See this blog for details:

> **[Kubernetes Legacy Package Repositories Will Be Frozen On September 13, 2023](https://kubernetes.io/blog/2023/08/31/legacy-package-repository-deprecation/)**
>
> On August 15, 2023, the Kubernetes project announced the general availability of the community-owned package repositories for Debian and RPM packages available at pkgs.k8s.io. The new package repositories are replacement for the legacy Google-hosted...
