I've been trying to wirelessly connect a printer to my Ubuntu computer. The computer detects the printer and adds it to the list of printers, but some weird things happen:
The computer has 3 instances of the printer on the list of printers, each of which has a slightly different name and description.
When I try to use any of the 3 instances to print something, it will not print, even though it gives me the notification that it is printing something on that printer.
Ubuntu Version: 20.04
Printer: HP OfficeJet Pro 8710
Instance names:
- HP-OfficeJet-Pro-8710-AE7B1C
- HP_OfficeJet_Pro_8710_AE7B1C_
- HP_OfficeJect_Pro_8710_AE7B1C_@(random numbers and characters).local
Output of lpstat -l -e
:
HP_OfficeJet_Pro_8710_AE7B1C_ network none ipps://HP%20OfficeJet%20Pro%208710%20%5BAE7B1C%5D._ipps._tcp.local/
[email protected] permanent ipp://localhost/printers/[email protected] implicitclass://HP_OfficeJet_Pro_8710_AE7B1C_%40HPB4B686AE7B1C.local/
Output of avahi-browse -art | grep -A 2 -i hostname.*office
Failed to resolve service 'HP OfficeJet Pro 8710 [AE7B1C]' of type '_ipp._tcp' in domain 'local': Timeout reached
Failed to resolve service 'HP OfficeJet Pro 8710 [AE7B1C]' of type '_ipp._tcp' in domain 'local': Timeout reached
Failed to resolve service 'HP OfficeJet Pro 8710 [AE7B1C]' of type '_ipps._tcp' in domain 'local': Timeout reached
Failed to resolve service 'HP OfficeJet Pro 8710 [AE7B1C]' of type '_ipps._tcp' in domain 'local': Timeout reached
Output of avahi-browser -art | grep -B 1 -i hostname.*office
Failed to resolve service 'HP OfficeJet Pro 8710 [AE7B1C]' of type '_ipps._tcp' in domain 'local': Timeout reached
Failed to resolve service 'HP OfficeJet Pro 8710 [AE7B1C]' of type '_ipps._tcp' in domain 'local': Timeout reached
Failed to resolve service 'HP OfficeJet Pro 8710 [AE7B1C]' of type '_ipp._tcp' in domain 'local': Timeout reached
Failed to resolve service 'HP OfficeJet Pro 8710 [AE7B1C]' of type '_ipp._tcp' in domain 'local': Timeout reached
I'm really confused and hope someone can help me out!
lpstat -l -e
has an entry forHP_OfficeJet_Pro_8710_AE7B1C_
.This has been has been discovered by CUPS itself. You should be able to print with
lp -d "HP_OfficeJet_Pro_8710_AE7B1C_" /etc/nsswitch.conf
. Can you?You can also set up a print queue if the IP address of the printer is known. It can be found from the printer's front panel. A URI is needed to substitute in the next command. It is
ipp://IP_ADDRESS/ipp/print
. ipps may be used instead of ipp.Now execute
lpadmin -p PRINTER_NAME -v URI -E -m everywhere
PRINTER_NAME can be what you want, such as pro8710. Test printing with
lp -d PRINTER_NAME /etc/nsswitch.conf
.You may get more debug information with this command from hplip package
This checks the system and dependencies then displays a complete report
You should also have a look to
hplip-gui
, which gives a more complete installation process than the basic Linux softwareCheck out these pages and previous answer.
HPPrinterInstallation
HpAllInOne
How should I install HPLIP binary/proprietary plugin/driver for my HP printer or printer+scanner?
In my experience with my laserjets: after running
sudo hp-setup -i
andhp-check
. It was necessary to install a few more packages and libs to get printer functions such as fax and scanning to work correctly. You may find usingapt search <whatever dependency you may need>
helpful to resolve missing dependency errors that may appear after usinghp-check
as iaeiou suggested.Also make sure to check any firewall settings that may interfere with detection. Temporarily disable them while you configure the printer. If you use UFW:
systemctl status ufw
sudo systemctl stop ufw
Then allow necessary rules for the printer
sudo ufw allow CUPS
To start it back up:
sudo systemctl start ufw