Erro ao tentar instalar All-In-One HP no Ubuntu 20.04

1. Erro ao tentar instalar All-In-One HP no Ubuntu 20.04

Izabella
cultwitch

(usa Ubuntu)

Enviado em 15/09/2022 - 10:35h

Olá,
Sou nova no Linux e recentemente estou enfrentando algumas dificuldades para instalar minha multifuncional HP no Ubuntu 20.04.
Fiz a instalação do hplip pelo repositório e ao rodar hp-info, obtive uma mensagem de erro:
error: Unable to communicate with device (code=12): hp:/usb/DeskJet_3700_series?serial=CN8795P14W06H4
error: Unable to open device hp:/usb/DeskJet_3700_series?serial=CN8795P14W06H4.


Ao rodar hp-check, obtive o seguinte:

Saving output in log file: /home/izabellaterencio/hp-check.log

HP Linux Imaging and Printing System (ver. 3.20.3)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-18 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the
HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies
are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro
supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball
has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode
will check both of the above cases (both compile- and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
OK
MISSING - Missing Dependency or Permission or Plug-in
INCOMPAT - Incompatible dependency-version or Plugin-version

warning: ubuntu-20.04 version is not supported. Using ubuntu-19.10 versions dependencies to verify and install...

---------------
| SYSTEM INFO |
---------------

Kernel: 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 GNU/Linux
Host: Inspiron-3583
Proc: 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 GNU/Linux
Distribution: ubuntu 20.04
Bitness: 64 bit


-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.20.3
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for ubuntu distro 20.04 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.20.3

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/hplip/HP
ppdbase=/usr/share/ppd/hplip
doc=/usr/share/doc/hplip
html=/usr/share/doc/hplip-doc
icon=no
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv
bin=/usr/bin
apparmor=/etc/apparmor.d
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=yes
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.20.3
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=yes
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=no
class-driver=no


Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory

Current contents of '~/.hplip/hplip.conf' file:
[commands]
scan = /usr/bin/simple-scan %SANE_URI%

[fax]
email_address =
voice_phone =

[installation]
date_time = 09/15/22 10:08:21
version = 3.20.3

[last_used]
device_uri = "hp:/usb/DeskJet_3700_series?serial=CN8795P14W06H4"
printer_name =
working_dir = .

[polling]
device_list =
enable = false
interval = 5

[refresh]
enable = false
rate = 30
type = 1

[settings]
systray_messages = 0
systray_visible = 0

[upgrade]
last_upgraded_time = 1663040598
notify_upgrade = false
pending_upgrade_time = 0


<Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

-------------------------
| External Dependencies |
-------------------------

error: cups CUPS - Common Unix Printing System REQUIRED 1.1 - INCOMPAT 'CUPS may not be installed or not running'
gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.50 OK -
xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.999 OK -
scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.29 OK -
dbus DBus - Message bus system REQUIRED - 1.12.16 OK -
policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
network network -wget OPTIONAL - 1.20.3 OK -
avahi-utils avahi-utils OPTIONAL - 0.7 OK -

------------------------
| General Dependencies |
------------------------

libjpeg libjpeg - JPEG library REQUIRED - - OK -
cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - - OK -
cups-image CUPS image - CUPS image development files REQUIRED - - OK -
libpthread libpthread - POSIX threads library REQUIRED - b'2.31' OK -
libusb libusb - USB library REQUIRED - 1.0 OK -
sane SANE - Scanning library REQUIRED - - OK -
sane-devel SANE - Scanning library development files REQUIRED - - OK -
libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.8 OK -
libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.1.1 OK -
python3X Python 2.2 or greater - Python programming language REQUIRED 2.2 3.8.10 OK -
python3-notify2 Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
error: python3-pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 OPTIONAL 4.0 - MISSING 'python3-pyqt4-dbus needs to be installed'
error: python3-pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 - MISSING 'python3-pyqt4 needs to be installed'
python3-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.16 OK -
python3-xml Python XML libraries REQUIRED - 2.2.9 OK -
python3-devel Python devel - Python development files REQUIRED 2.2 3.8.10 OK -
python3-pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 9.2.0 OK -
python3-reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.6.11 OK -

--------------
| COMPILEDEP |
--------------

libtool libtool - Library building support services REQUIRED - 2.4.6 OK -
gcc gcc - GNU Project C and C++ Compiler REQUIRED - 9.4.0 OK -
make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.2.1 OK -

---------------------
| Python Extentions |
---------------------

cupsext CUPS-Extension REQUIRED - 3.20.3 OK -
hpmudext IO-Extension REQUIRED - 3.20.3 OK -

----------------------
| Scan Configuration |
----------------------

hpaio HPLIP-SANE-Backend REQUIRED - 3.20.3 OK 'hpaio found in /etc/sane.d/dll.conf'
scanext Scan-SANE-Extension REQUIRED - 3.20.3 OK -

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

device `hpaio:/usb/DeskJet_3700_series?serial=CN8795P14W06H4' is a Hewlett-Packard DeskJet_3700_series all-in-one
device `escl:https://192.168.1.11:443' is a ESCL HP DeskJet 3700 series [398ABF] SSL flatbed scanner
device `escl:http://192.168.1.11:8080' is a ESCL HP DeskJet 3700 series [398ABF] flatbed scanner


--------------------------
| DISCOVERED USB DEVICES |
--------------------------

Device URI Model
-------------------------------- ----------------------
hp:/usb/DeskJet_3700_series?seri HP DeskJet 3700 series
al=CN8795P14W06H4

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------


DeskJet-3700
------------
Type: Printer
Device URI: hp:/usb/DeskJet_3700_series?serial=CN8795P14W06H4
PPD: /etc/cups/ppd/DeskJet-3700.ppd
PPD Description: HP Deskjet 3700 Series, hpcups 3.20.3
Printer status: impressora DeskJet-3700 está inativa; habilitada desde ter 13 set 2022 09:51:05
error: Unable to communicate with device (code=12): hp:/usb/DeskJet_3700_series?serial=CN8795P14W06H4
error: Device not found
error: Communication status: Failed


--------------
| PERMISSION |
--------------

USB DeskJet-3700 Required - - OK Node:'/dev/bus/usb/001/006' Perm:' root lp rw- rw- rw- rw- r--'

-----------
| SUMMARY |
-----------

Missing Required Dependencies
-----------------------------
error: 'libcups2' package is missing/incompatible
error: 'python3-pyqt4' package is missing/incompatible
error: 'gtk2-engines-pixbuf' package is missing/incompatible

Missing Optional Dependencies
-----------------------------
error: 'python3-dbus.mainloop.qt' package is missing/incompatible

Total Errors: 4
Total Warnings: 0


Tentei o seguinte, mas as dependências já estavam instaladas:
sudo apt-get install --assume-yes libcups2 cups libcups2-dev cups-bsd cups-client avahi-utils libavahi-client-dev libavahi-core-dev libavahi-common-dev libcupsimage2-dev libdbus-1-dev build-essential gtk2-engines-pixbuf ghostscript openssl libjpeg-dev libatk-adaptor libgail-common libsnmp-dev snmp-mibs-downloader libtool libtool-bin libusb-1.0-0-dev libusb-0.1-4 wget policykit-1 policykit-1-gnome automake1.11 python3-dbus.mainloop.pyqt5 python3-reportlab python3-notify2 python3-pyqt5 python3-dbus python3-gi python3-lxml python3-dev python3-pil python-is-python3 libsane libsane-dev sane-utils xsane

Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
gtk2-engines-pixbuf já é a versão mais recente (2.24.32-4ubuntu4).
libgail-common já é a versão mais recente (2.24.32-4ubuntu4).
libjpeg-dev já é a versão mais recente (8c-2ubuntu8).
libtool já é a versão mais recente (2.4.6-14).
libtool-bin já é a versão mais recente (2.4.6-14).
libusb-0.1-4 já é a versão mais recente (2:0.1.12-32).
libusb-1.0-0-dev já é a versão mais recente (2:1.0.23-2build1).
python-is-python3 já é a versão mais recente (3.8.2-4).
python3-dbus já é a versão mais recente (1.2.16-1build1).
python3-dev já é a versão mais recente (3.8.2-0ubuntu2).
python3-gi já é a versão mais recente (3.36.0-1).
python3-reportlab já é a versão mais recente (3.5.34-1ubuntu1).
automake1.11 já é a versão mais recente (1:1.11.6-5).
policykit-1-gnome já é a versão mais recente (0.105-7ubuntu2).
python3-dbus.mainloop.pyqt5 já é a versão mais recente (5.14.1+dfsg-3build1).
python3-notify2 já é a versão mais recente (0.3-4).
python3-pyqt5 já é a versão mais recente (5.14.1+dfsg-3build1).
snmp-mibs-downloader já é a versão mais recente (1.2).
avahi-utils já é a versão mais recente (0.7-4ubuntu7.1).
build-essential já é a versão mais recente (12.8ubuntu1.1).
cups já é a versão mais recente (2.3.1-9ubuntu1.2).
cups-bsd já é a versão mais recente (2.3.1-9ubuntu1.2).
cups-client já é a versão mais recente (2.3.1-9ubuntu1.2).
ghostscript já é a versão mais recente (9.50~dfsg-5ubuntu4.5).
libatk-adaptor já é a versão mais recente (2.34.2-0ubuntu2~20.04.1).
libavahi-client-dev já é a versão mais recente (0.7-4ubuntu7.1).
libavahi-common-dev já é a versão mais recente (0.7-4ubuntu7.1).
libavahi-core-dev já é a versão mais recente (0.7-4ubuntu7.1).
libcups2 já é a versão mais recente (2.3.1-9ubuntu1.2).
libcups2-dev já é a versão mais recente (2.3.1-9ubuntu1.2).
libcupsimage2-dev já é a versão mais recente (2.3.1-9ubuntu1.2).
libdbus-1-dev já é a versão mais recente (1.12.16-2ubuntu2.2).
libsane já é a versão mais recente (1.0.29-0ubuntu5.2).
libsane-dev já é a versão mais recente (1.0.29-0ubuntu5.2).
libsnmp-dev já é a versão mais recente (5.8+dfsg-2ubuntu2.5).
openssl já é a versão mais recente (1.1.1f-1ubuntu2.16).
policykit-1 já é a versão mais recente (0.105-26ubuntu1.3).
python3-lxml já é a versão mais recente (4.5.0-1ubuntu0.5).
python3-pil já é a versão mais recente (7.0.0-4ubuntu0.5).
sane-utils já é a versão mais recente (1.0.29-0ubuntu5.2).
wget já é a versão mais recente (1.20.3-1ubuntu2).
xsane já é a versão mais recente (0.999-8ubuntu2.1).
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 17 não atualizados.


Alguém pode me ajudar a entender e resolver esse problema?


  


2. Re: Erro ao tentar instalar All-In-One HP no Ubuntu 20.04

leandro peçanha scardua
leandropscardua

(usa Ubuntu)

Enviado em 15/09/2022 - 22:30h

Verificou se o serviço do cups está ativo?
systemctl status cups



3. Re: Erro ao tentar instalar All-In-One HP no Ubuntu 20.04

Ricardo Groetaers
ricardogroetaers

(usa Linux Mint)

Enviado em 17/09/2022 - 01:57h

cultwitch escreveu: .... recentemente estou enfrentando algumas dificuldades para instalar minha multifuncional HP no Ubuntu 20.04.
Fiz a instalação do hplip pelo repositório e ao rodar hp-info, obtive uma mensagem de erro:....

- Parece haver mistura de dependências.
- Como instalou o HPLiP?
- Existe mistura de repositórios?
O comando abaixo pode mostrar alguma coisa útil:
inxi -r

Obs: segundo o site do HPLIP, a versão mais antiga do HPLIP que suporta sua impressora é 3.17.7. A versão usada é mais recente que isso.



4. Re: Erro ao tentar instalar All-In-One HP no Ubuntu 20.04

Izabella
cultwitch

(usa Ubuntu)

Enviado em 17/09/2022 - 13:33h


leandropscardua escreveu:

Verificou se o serviço do cups está ativo?
systemctl status cups


Sim, está

&#9679; cups.service - CUPS Scheduler
Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: >
Active: active (running) since Sat 2022-09-17 10:05:56 -03; 3h 25min ago
TriggeredBy: &#9679; cups.socket
&#9679; cups.path
Docs: man:cupsd(8)
Main PID: 970 (cupsd)
Tasks: 1 (limit: 9261)
Memory: 6.0M
CGroup: /system.slice/cups.service
&#9492;&#9472;970 /usr/sbin/cupsd -l

set 17 10:05:56 Inspiron-3583 systemd[1]: Started CUPS Scheduler.




5. Re: Erro ao tentar instalar All-In-One HP no Ubuntu 20.04

Izabella
cultwitch

(usa Ubuntu)

Enviado em 22/09/2022 - 13:50h

ricardogroetaers escreveu:

cultwitch escreveu: .... recentemente estou enfrentando algumas dificuldades para instalar minha multifuncional HP no Ubuntu 20.04.
Fiz a instalação do hplip pelo repositório e ao rodar hp-info, obtive uma mensagem de erro:....

- Parece haver mistura de dependências.
- Como instalou o HPLiP?
- Existe mistura de repositórios?
O comando abaixo pode mostrar alguma coisa útil:
inxi -r

Obs: segundo o site do HPLIP, a versão mais antiga do HPLIP que suporta sua impressora é 3.17.7. A versão usada é mais recente que isso.


Fiz a instalação do HPLIP pelo repositório com
sudo apt install hplip 

A saída que obtive do comando inxi -r foi a seguinte:

Repos:
Active apt repos in: /etc/apt/sources.list
1: deb http://br.archive.ubuntu.com/ubuntu/ focal main restricted
2: deb http://br.archive.ubuntu.com/ubuntu/ focal-updates main restricted
3: deb http://br.archive.ubuntu.com/ubuntu/ focal universe
4: deb http://br.archive.ubuntu.com/ubuntu/ focal-updates universe
5: deb http://br.archive.ubuntu.com/ubuntu/ focal multiverse
6: deb http://br.archive.ubuntu.com/ubuntu/ focal-updates multiverse
7: deb http://br.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
8: deb http://archive.canonical.com/ubuntu focal partner
9: deb http://security.ubuntu.com/ubuntu focal-security main restricted
10: deb http://security.ubuntu.com/ubuntu focal-security universe
11: deb http://security.ubuntu.com/ubuntu focal-security multiverse
No active apt repos in: /etc/apt/sources.list.d/bionic-dell-loki-n3-v3-whl.list
No active apt repos in: /etc/apt/sources.list.d/bionic-dell-service.list
No active apt repos in: /etc/apt/sources.list.d/bionic-dell.list
No active apt repos in: /etc/apt/sources.list.d/bionic-oem.list
Active apt repos in: /etc/apt/sources.list.d/damien-moore-ubuntu-codeblocks-stable-bionic.list
1: deb http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu focal main # desabilitado na atualização para focal
No active apt repos in: /etc/apt/sources.list.d/damien-moore-ubuntu-codeblocks-stable-focal.list
No active apt repos in: /etc/apt/sources.list.d/home:hpcoder1.list
No active apt repos in: /etc/apt/sources.list.d/microsoft-prod.list
No active apt repos in: /etc/apt/sources.list.d/msprod.list
No active apt repos in: /etc/apt/sources.list.d/robert-ancell-ubuntu-simple-scan-bionic.list
No active apt repos in: /etc/apt/sources.list.d/somerville-dla-team-ubuntu-ppa-bionic.list
No active apt repos in: /etc/apt/sources.list.d/steam.list
No active apt repos in: /etc/apt/sources.list.d/teams.list
No active apt repos in: /etc/apt/sources.list.d/vscode.list
No active apt repos in: /etc/apt/sources.list.d/wireshark-dev-ubuntu-stable-bionic.list


Como posso desinstalar completamente o HPLIP do computador para proceder com a instalação de uma versão mais antiga?
Estou pensando em baixar a versão 3.17.7 mas receio que dará conflito de dependências.










Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts