Thanks. That worked for me on ubuntu 24.04, but to get the scanner working I needed a plugin, which apparmor policies rejected (took me ages to find that out). Removing hplip, rebooting and installing WITHOUT policies fixed that (or I could have removed the enforcement in apparmor). Running hp-plugin installed the required file.