I had quite some difficulty getting "hp-setup" to configure a HP Color LaserJet Pro MFP M277dw to allow scanning + "hp-toolbox" to allow scanning, status check, etc. on Debian 10.
I found several things which together got scanning and hp-toolbox
working for me with my HP Color LaserJet Pro MFP M277dw. I hope the proceedure below is of help to someone else.
sudo cp -a /usr/share/hplip/base/validation.py /usr/share/hplip/base/validation.py.ORIG
vim /usr/share/hplip/base/validation.py
2. After getting the plugin to install using "hp-plugin" as a regular user and the root password when requested, the software still complained...
3. It seems that hplip expects the libraries in a different location than where they are getting installed:
find /usr/lib -name "*sane*" | grep hp2000S
sudo ln -s /usr/lib /usr/lib/i386-linux-gnu
sudo ln -s /usr/lib64 /usr/lib64/x86_64-linux-gnu