Jguer/yay · error

could not find all required packages

Error message

could not find all required packages

What it means

Sentinel error (ErrPackagesNotFound) wrapping failures from dependency-graph resolution in local installs. During topological sorting of install targets, any package whose InstallInfo.Source is dep.Missing — i.e. the package could not be located in any enabled repository, the AUR, or the local targets — causes this error to be appended with the offending package name and version. It signals an unsatisfiable dependency, not a network or pacman failure.

Solutions

  1. Check the package name and version for typos
  2. Ensure the repository containing the package is enabled in pacman.conf
  3. Refresh the database with 'yay -Sy' before retrying
  4. If building locally, verify all targets were passed so the dependency can be resolved from the build set
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at errors.go:9 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Jguer/yay@328f4b4939 (2026-09-07). Data as JSON: /api/errors/347c177a8df4584f. Report an issue: GitHub.

Appendix: source

Thrown at errors.go:9

package main

import (
	"errors"

	"github.com/leonelquinteros/gotext"
)

var ErrPackagesNotFound = errors.New(gotext.Get("could not find all required packages"))

View on GitHub (pinned to 328f4b4939)