Many users fail because they try to use the "HP LaserJet 1010" entry found under "Windows Update" in the legacy driver menu. Do not use this. That driver is a stripped-down 32-bit Windows 7 driver. On Windows 11, it will install but cause a when you try to print.
Windows 11 includes a massive library of legacy drivers through and its built-in driver repository. Because the LaserJet 1010 uses a standard printer language (PCL 3 GUI), it can often be tricked into working using a generic or sister-model driver. Hp Laserjet 1010 Driver Windows 11