kubernetes/kops · error

error fetching the list of available packages: %v: %s

Error message

error fetching the list of available packages: %v:
%s

What it means

Error "error fetching the list of available packages: %v: %s" thrown in kubernetes/kops.

Source

Thrown at upup/pkg/fi/nodeup/nodetasks/package.go:341

				}
			}
		} else {
			pkgs = append(pkgs, e.Name)
		}

		env := os.Environ()
		if d.IsDebianFamily() {
			env = append(env, "DEBIAN_FRONTEND=noninteractive")
		}

		// If the package manager update was less than 10 minutes ago, skip updating the package list.
		if d.IsDebianFamily() && time.Since(packageManagerLastUpdated) > 10*time.Minute {
			klog.Infof("Running command apt-get update")
			cmd := exec.Command("apt-get", "update")
			cmd.Env = env
			output, err := cmd.CombinedOutput()
			if err != nil {
				return fmt.Errorf("error fetching the list of available packages: %v:\n%s", err, string(output))
			}
			// Successful package list update, updating the last updated time.
			packageManagerLastUpdated = time.Now()
		}

		var args []string
		if d.IsDebianFamily() {
			args = []string{"apt-get", "install", "--yes", "--no-install-recommends"}
		} else if d.IsRHELFamily() {

			if d.HasDNF() {
				args = []string{"/usr/bin/dnf", "install", "-y", "--setopt=install_weak_deps=False"}
			} else {
				args = []string{"/usr/bin/yum", "install", "-y"}
			}
		} else {
			return fmt.Errorf("unsupported package system")
		}

View on GitHub (pinned to 4c8573c808)

When it happens

Trigger: Thrown at upup/pkg/fi/nodeup/nodetasks/package.go:341 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05). Data as JSON: /api/errors/87cddbb90a33ebda. Report an issue: GitHub.