Have a HP LaserJet M1536dnf MFP, want to install the scanner driver in linux below the record about the installation process is simple:
1. Install HPLIP
sudo apt install hplip -y
2. vnc or directly operate the machine at a graphical interface case (be careful not to use the sudo)
hp-setup
Click the Show Advanced Options, set the Type to All-in-one / MFP devices only, set the Network diskcovery method as mDNS / Bonjour
If you are prompted to install fails, you can open a separate new terminal window and run hp-plugin go online to download the driver.