Consegui consertar isso instalando o software proprietário do site da HP.
Estou executando o Ubuntu 16.04 no meu PC e não consigo fazer minha impressora funcionar. (Minha impressora é uma MFP LaserJet Pro M127fn, se isso for importante.) Espero que o seguinte seja suficiente para alguém me ajudar.
Eu tentei passar por esta página para ajudar: link , com os seguintes resultados (eu também tentei outras coisas, mas apenas inclua isso aqui para que eu não tenha uma parede gigante de texto inútil):
para a parte 2:
$ lsmod | grep usb
usbhid 49152 0
hid 118784 3 i2c_hid,hid_generic,usbhid
Partes 3 e 4:
Com a impressora desconectada:
$ tail -f /var/log/syslog
Feb 5 17:30:44 pc AptDaemon: INFO: Quitting was requested
Feb 5 17:30:44 pc org.freedesktop.PackageKit[841]: 17:30:44 AptDaemon [INFO]: Quitting due to inactivity
Feb 5 17:30:44 pc org.freedesktop.PackageKit[841]: 17:30:44 AptDaemon [INFO]: Quitting was requested
Feb 5 17:31:13 pc /hpfax: [6392]: error: Failed to create /var/spool/cups/tmp/.hplip
Feb 5 17:32:51 pc org.gnome.evolution.dataserver.Sources5[31580]: ** (evolution-source-registry:31804): WARNING **: secret_service_search_sync: must specify at least one attribute to match
Feb 5 18:17:02 pc CRON[6875]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Feb 5 18:47:20 pc avahi-daemon[779]: Registering new address record for fd00:9050:ca39:91a2:9ccb:a669:64dd:d3dd on enp0s31f6.*.
Feb 5 18:47:21 pc kernel: [344063.354207] audit: type=1400 audit(1517885241.895:4954): apparmor="DENIED" operation="open" profile="/usr/lib/lightdm/lightdm-guest-session" name="/proc/2144/net/arp" pid=2144 comm=4C696E6B204D6F6E69746F72 requested_mask="r" denied_mask="r" fsuid=983 ouid=0
Feb 5 18:47:22 pc avahi-daemon[779]: Withdrawing address record for fd00:9050:ca39:91a2:fccd:806b:e158:6630 on enp0s31f6.
Feb 5 18:47:23 pc kernel: [344064.636528] audit: type=1400 audit(1517885243.177:4955): apparmor="DENIED" operation="open" profile="/usr/lib/lightdm/lightdm-guest-session" name="/proc/2144/net/arp" pid=2144 comm=4C696E6B204D6F6E69746F72 requested_mask="r" denied_mask="r" fsuid=983 ouid=0
Quando eu conecto minha impressora, nada mais acontece.
Parte 6:
$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 093a:2521 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 003: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
que para mim parece que meu computador não está encontrando a impressora, mas eu realmente não sei.
Parte 7:
$ sudo ls -l /dev/usb/lp* /dev/bus/usb/*/*
ls: cannot access '/dev/usb/lp*': No such file or directory
crw-rw-r-- 1 root root 189, 0 Feb 1 19:13 /dev/bus/usb/001/001
crw-rw-r-- 1 root root 189, 1 Feb 1 19:13 /dev/bus/usb/001/002
crw-rw-r-- 1 root root 189, 2 Feb 1 19:13 /dev/bus/usb/001/003
crw-rw-r-- 1 root root 189, 128 Feb 1 19:13 /dev/bus/usb/002/001
crw-rw-r-- 1 root root 189, 256 Feb 1 19:13 /dev/bus/usb/003/001
crw-rw-r-- 1 root root 189, 384 Feb 1 19:13 /dev/bus/usb/004/001
A parte 8 também me diz que não existe tal arquivo ou diretório (quando tento executar o usb_printerid ...
).
$ hp-info -i
HP Linux Imaging and Printing System (ver. 3.16.3)
Device Information Utility ver. 5.2
Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.
error: No device found that support this feature.
Parte 10:
$ lpinfo -v
serial serial:/dev/ttyS0?baud=115200
direct hp
network ipps
network beh
network ipp14
network ipp
network https
network http
network socket
network lpd
direct hpfax
network dnssd://NameOfOldPrinterThatDoesntWork._ipp._tcp.local/cups?uuid=da4399a3-5b79-3cc8-5ac9-011902fc20ed
O resto do material sugerido não é aplicável porque depende de material de partes anteriores, por isso não posso fazê-lo.
Consegui consertar isso instalando o software proprietário do site da HP.