You can’t just download a standard installer from HP’s website (they don’t offer one for modern macOS). Instead, I had to use the HP LaserJet Software Bundle from HP’s support site for older macOS versions, or use Gutenprint / CUPS via terminal. Some users also succeed with the generic HP LaserJet 1020 driver already hidden in macOS – but it didn’t show up automatically.
Minimal HP LaserJet 1020 driver for modern macOS (GitHub) . hp laserjet 1020 driver for macbook air
The is an older, "Host-based" printer. It does not have a standard driver included in macOS, and HP has discontinued official support for this specific model on modern macOS versions (Big Sur, Monterey, Ventura, Sonoma). You can’t just download a standard installer from