Uploaded image for project: 'AI/ML Framework '
  1. AI/ML Framework
  2. AIMLFW-96

Failure to install kubelet, kubectl and kubeadm using the tools/kubernetes/install_k8s.sh file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • None

      Please refer to the followings.

      ℹ️ Update (March 26, 2024): the legacy Google-hosted repositories went away on March 4, 2024. It's not possible to install Kubernetes packages from the legacy Google-hosted package repositories any longer. Check out the deprecation announcement for more details about this change.

      $ ./tools/kubernetes/install_k8s.sh 
      Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
      Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
      Hit:3 http://kr.archive.ubuntu.com/ubuntu jammy InRelease
      Hit:4 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease
      Hit:5 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
      Reading package lists... Done
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      lsb-release is already the newest version (11.1.0ubuntu4).
      ca-certificates is already the newest version (20230311ubuntu0.22.04.1).
      curl is already the newest version (7.81.0-1ubuntu1.16).
      gnupg is already the newest version (2.2.27-3ubuntu2.1).
      apt-transport-https is already the newest version (2.4.12).
      0 upgraded, 0 newly installed, 0 to remove and 218 not upgraded.
      Found Docker Engine in the system. Skip Docker Engine installation.
      deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main
      Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
      Hit:2 http://kr.archive.ubuntu.com/ubuntu jammy InRelease                                               
      Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease                
      Hit:4 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease
      Hit:6 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
      Ign:5 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
      Err:7 https://packages.cloud.google.com/apt kubernetes-xenial Release
        404  Not Found [IP: 172.217.161.238 443]
      Reading package lists... Done
      E: The repository 'https://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.
      N: See apt-secure(8) manpage for repository creation and user configuration details.
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      E: Unable to locate package kubelet
      E: Unable to locate package kubectl
      E: Unable to locate package kubeadm
      E: Unable to locate package kubelet
      E: Unable to locate package kubeadm
      E: Unable to locate package kubectl
      E: No packages found
      sudo: kubeadm: command not found
      cp: cannot stat '/etc/kubernetes/admin.conf': No such file or directory
      chown: cannot access '/home/tiokim/.kube/config': No such file or directory
        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                       Dload  Upload   Total   Spent    Left  Speed
      100  218k  100  218k    0     0   135k      0  0:00:01  0:00:01 --:--:--  135k
      ./tools/kubernetes/install_k8s.sh: line 61: kubectl: command not found
      ./tools/kubernetes/install_k8s.sh: line 62: kubectl: command not found

        # Subject Branch Project Status CR V

            subhash_singh subhash kumar singh
            t25kim Taewan Kim
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: