Debian 11 - Instalação de HP M1132 MFP

13. Re: Debian 11 - Instalação de HP M1132 MFP

Guilherme Patriarcha Faria
gurermus

(usa Debian)

Enviado em 15/03/2023 - 01:16h



Buckminster escreveu:

HPLIP-Version: HPLIP 3.21.2
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for debian distro 11 version

Ali diz que essa versão do HPLIP não tem suporte para auto instalação, mas aqui no Debian 11 com Mate instalei com:

# apt install hplip

Depois dê o comando:
# hp-plugin

Daí pediu para fazer o download escolhendo a opção d e depois digite y.
Aqui correu tudo bem.
O problema é aí.
Verifique o arquivo dos repositórios /etc/apt/sources.list.


________________________________________________
Always listen the Buck!

_________________________________________________________________________________
Boa Noite.
Então descobri que baixando o plugin lá na HP (hplip-3.21.2.run) e mudando o nome dele pra (hplip-3.21.2-plugin.run)
ele instala, ok..... Mas não resolve o problema. Daí descobri um comando que dá o resultado abaixo em root e em usuário comum.
Estou pensando em formatar tudo e começar do "zero" denovo ou instalar o "buster" ou outra distribuição, seilá.
Tudo oque eu acho até para a minha impressora (M1132) dá certo em outras distribuições porque não dá no "bullseye"?

Tentei instalar o HPLIP novamente e notei isso ele pede um PyQt4 e um PyQt5 que não existe no repositório do Debian
veja na imagem.
_____________________________________________________________________________________
ROOT
root@debian11:/home/family# hp-plugin -g -i

HP Linux Imaging and Printing System (ver. 3.21.2)
Plugin Download and Install Utility ver. 2.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.

warning: It is not recommended to run 'hp-plugin' in a root mode.

HP Linux Imaging and Printing System (ver. 3.21.2)
Plugin Download and Install Utility ver. 2.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.

hp-plugin[10377]: debug: Locking: /var/hp-plugin.lock
hp-plugin[10377]: debug: Unable to open file /var/lib/hp/hplip.state for reading.
hp-plugin[10377]: debug: Unable to open file /var/lib/hp/hplip.state for reading.
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.21.2 |
-----------------------------------------

Option Description
---------- --------------------------------------------------
d Download plug-in from HP (recommended)
p Specify a path to the plug-in (advanced)
q Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? d

-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
hp-plugin[10377]: debug: /usr/bin/wget --cache=off --tries=3 --timeout=60 --output-document=- http://www.hp.com --spider -S
hp-plugin[10377]: debug: O modo aranha está habilitado. Verifique se o arquivo remoto existe.
--2023-03-15 00:26:06-- http://www.hp.com/
Resolvendo www.hp.com (www.hp.com)... 104.88.205.169, 104.88.205.193, 2600:1419:1e00:b::1729:ff98, ...
Conectando-se a www.hp.com (www.hp.com)|104.88.205.169|:80... conectado.
A requisição HTTP foi enviada, aguardando resposta...
HTTP/1.1 503 Service Unavailable
Server: AkamaiGHost
Mime-Version: 1.0
Content-Type: text/html
Content-Length: 177
Expires: Wed, 15 Mar 2023 03:26:06 GMT
Date: Wed, 15 Mar 2023 03:26:06 GMT
Connection: keep-alive
Set-Cookie: aka_client_code=BR-
Akamai-GRN: 0.a5cd5868.1678850766.39e53796
Server-Timing: ak_p; desc="466347_1750650277_971323286_24_5536_30_-";dur=1
O arquivo remoto não existe -- link quebrado!!!


hp-plugin[10377]: debug: wget returned: 8
hp-plugin[10377]: debug: /usr/bin/curl --output - --connect-timeout 5 --max-time 10 http://www.hp.com --head
hp-plugin[10377]: debug: Traceback (most recent call last):
File "/usr/bin/hp-plugin", line 354, in <module>
ok = utils.check_network_connection()
File "/usr/share/hplip/base/utils.py", line 2293, in check_network_connection
status = download_via_curl(url, head=True)
File "/usr/share/hplip/base/utils.py", line 2271, in download_via_curl
status, output = run(cmd)
File "/usr/share/hplip/base/utils.py", line 1294, in run
child = pexpect.spawnu(cmd, timeout=timeout)
File "/usr/share/hplip/base/pexpect/__init__.py", line 1755, in __init__
super(spawnu, self).__init__(*args, **kwargs)
File "/usr/share/hplip/base/pexpect/__init__.py", line 486, in __init__
self._spawn(command, args)
File "/usr/share/hplip/base/pexpect/__init__.py", line 637, in _spawn
os.execv(self.command, self.args)
PermissionError: [Errno 13] Permission denied

hp-plugin[10377]: debug: curl returned: 1
hp-plugin[10377]: debug: /usr/bin/ping -c1 -W1 -w10 www.hp.com
hp-plugin[10377]: debug: Traceback (most recent call last):
File "/usr/bin/hp-plugin", line 354, in <module>
ok = utils.check_network_connection()
File "/usr/share/hplip/base/utils.py", line 2295, in check_network_connection
status = check_network_via_ping(ping_server)
File "/usr/share/hplip/base/utils.py", line 2284, in check_network_via_ping
status, output = run(cmd)
File "/usr/share/hplip/base/utils.py", line 1294, in run
child = pexpect.spawnu(cmd, timeout=timeout)
File "/usr/share/hplip/base/pexpect/__init__.py", line 1755, in __init__
super(spawnu, self).__init__(*args, **kwargs)
File "/usr/share/hplip/base/pexpect/__init__.py", line 486, in __init__
self._spawn(command, args)
File "/usr/share/hplip/base/pexpect/__init__.py", line 637, in _spawn
os.execv(self.command, self.args)
PermissionError: [Errno 13] Permission denied

hp-plugin[10377]: debug: ping returned: 1
error: Network connection not detected.
hp-plugin[10377]: debug: Unlocking: /var/hp-plugin.lock
_______________________________________________________________________
COMUM:
family@debian11:~$ hp-setup -g -i

HP Linux Imaging and Printing System (ver. 3.21.2)
Printer/Fax Setup Utility ver. 9.0

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.

hp-setup[10383]: debug: param=
hp-setup[10383]: debug: selected_device_name=None
(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

hp-setup[10383]: debug:
DEVICE CHOOSER setup_fax=True, setup_print=True
hp-setup[10383]: debug: Cache miss: hp_laserjet_professional_m1132_mfp
hp-setup[10383]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-setup[10383]: debug: Searching for section [hp_laserjet_professional_m1132_mfp] in file /usr/share/hplip/data/models/models.dat
hp-setup[10383]: debug: Found section [hp_laserjet_professional_m1132_mfp] in file /usr/share/hplip/data/models/models.dat
hp-setup[10383]: debug: getDeviceUri(None, None, ('hp',), None, , True)
hp-setup[10383]: debug: Mode=0

Setting up device: hp:/usb/HP_LaserJet_Professional_M1132_MFP?serial=000000000YP30RBQPR1a


hp-setup[10383]: debug: Model=HP_LaserJet_Professional_M1132_MFP
hp-setup[10383]: debug: Unable to open file /var/lib/hp/hplip.state for reading.
hp-setup[10383]: debug: Unable to open file /var/lib/hp/hplip.state for reading.

------------------------
| PLUG-IN INSTALLATION |
------------------------


HP Linux Imaging and Printing System (ver. 3.21.2)
Plugin Download and Install Utility ver. 2.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.


HP Linux Imaging and Printing System (ver. 3.21.2)
Plugin Download and Install Utility ver. 2.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: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


-----------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.21.2 |
-----------------------------------------

Option Description
---------- --------------------------------------------------
d Download plug-in from HP (recommended)
p Specify a path to the plug-in (advanced)
q Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? d

-------------------
| DOWNLOAD PLUGIN |
-------------------

Checking for network connection...
error: Network connection not detected.
error: Failed to install Plugin.
error: The device you are trying to setup requires a binary plug-in. Some functionalities may not work as expected without plug-ins. Please run 'hp-plugin' as normal user to install plug-ins.Visit http://hplipopensource.com for more infomation.



  


14. Re: Debian 11 - Instalação de HP M1132 MFP

Buckminster
Buckminster

(usa Debian)

Enviado em 15/03/2023 - 15:02h

Cara verifica o /etc/apt/sources.list.


________________________________________________
Always listen the Buck!


15. Re: Debian 11 - Instalação de HP M1132 MFP

Guilherme Patriarcha Faria
gurermus

(usa Debian)

Enviado em 21/03/2023 - 21:38h


Buckminster escreveu:

Cara verifica o /etc/apt/sources.list.


________________________________________________
Always listen the Buck!


Boa Noite Buckminster, então... verifiquei e adicionei uma porrada de coisa mas mesmo assim não rolou. é sempre o mesmo erro, dá uma olhada no sources.list
____________________________________________________________________________________
# deb cdrom:[Debian GNU/Linux 11.6.0 _Bullseye_ - Official amd64 NETINST 20221217-10:42]/ bullseye main

#deb cdrom:[Debian GNU/Linux 11.6.0 _Bullseye_ - Official amd64 NETINST 20221217-10:42]/ bullseye main

# Bullseye debian.org

deb http://deb.debian.org/debian/ bullseye main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free

deb http://deb.debian.org/debian/ bullseye-backports main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bullseye-backports main contrib non-free non-free-firmware

deb http://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bullseye-proposed-updates main contrib non-free non-free-firmware

deb http://deb.debian.org/debian/ bullseye-backports-sloppy main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bullseye-backports-sloppy main contrib non-free non-free-firmware

deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bullseye/updates main contrib non-free non-free-firmware

# Bullseye security.debian.org
deb http://security.debian.org/debian-security bullseye-security main contrib non-free non-free-firmware updates
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free non-free-firmware updates

# Bullseye ftp.de.debian.org
deb http://ftp.de.debian.org/debian/">http://ftp.de.debian.org/debian/ bullseye main contrib non-free
deb-src http://ftp.de.debian.org/debian-security">http://ftp.de.debian.org/debian-security bullseye main contrib non-free

# Bullseye ftp.br.debian.org
deb http://ftp.br.debian.org/debian/ bullseye main contrib non-free
deb-src http://ftp.br.debian.org/debian-security bullseye main contrib non-free

deb http://ftp.br.debian.org/debian/ bullseye-backports main contrib non-free
deb-src http://ftp.br.debian.org/debian/ bullseye-backports main contrib non-free

deb http://ftp.br.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://ftp.br.debian.org/debian-security bullseye/updates main contrib non-free

# Stable deb.debian.org
deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free

deb http://deb.debian.org/debian/ stable-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free non-free-firmware

deb http://deb.debian.org/debian/ stable-proposed-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ stable-proposed-updates main contrib non-free non-free-firmware

deb http://deb.debian.org/debian/ stable-backports main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ stable-backports main contrib non-free non-free-firmware

deb http://deb.debian.org/debian/ stable-backports-sloppy main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ stable-backports-sloppy main contrib non-free non-free-firmware

# Stable security.debian.org
deb http://security.debian.org/debian-security stable-security main contrib non-free non-free-frimware updates
deb-src http://security.debian.org/debian-security stable-security main contrib non-free non-free-firmware updates

# realtek firmware
deb http://ftp.de.debian.org/debian bullseye main contrib non-free
deb-src http://ftp.de.debian.org/debian bullseye main contrib non-free

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free non-free-firmware

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
_____________________________________________________________


16. Re: Debian 11 - Instalação de HP M1132 MFP

Buckminster
Buckminster

(usa Debian)

Enviado em 22/03/2023 - 16:28h

# apt-get update
# apt-get install pyqt5-dev pyqt5-dev-tools python3

https://packages.debian.org/bullseye/python3

https://packages.debian.org/bullseye/pyqt5-dev

Cara, deixe assim teu sources.list:

deb http://ftp.br.debian.org/debian bullseye main contrib non-free
deb-src http://ftp.br.debian.org/debian bullseye main contrib non-free

deb http://ftp.br.debian.org/debian bullseye-updates main contrib non-free
deb-src http://ftp.br.debian.org/debian bullseye-updates main contrib non-free

deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security/ bullseye-security main contrib non-free

#deb http://ftp.br.debian.org/debian bullseye-backports main contrib non-free
#deb-src http://ftp.br.debian.org/debian bullseye-backports main contrib non-free

Não precisa mais do que isso. Tem muita gosma no teu sources.list.
Os backports tu deixa comentado e somente usa quando for preciso algum pacote que tu não encontrar normalmente nos outros repositórios, daí tu descomenta, instala o pacote e comenta de novo os backports.
Os deb-src se quiser pode deixar comentado também porque a única função deles é baixar os fontes de cada pacote, mas vai da tua escolha.


________________________________________________
Always listen the Buck!


17. Re: Debian 11 - Instalação de HP M1132 MFP

Daniel Lara Souza
danniel-lara

(usa Fedora)

Enviado em 22/03/2023 - 17:23h


Buckminster escreveu:

HPLIP-Version: HPLIP 3.21.2
HPLIP-Home: /usr/share/hplip
warning: HPLIP-Installation: Auto installation is not supported for debian distro 11 version

Ali diz que essa versão do HPLIP não tem suporte para auto instalação, mas aqui no Debian 11 com Mate instalei com:

# apt install hplip

Depois dê o comando:
# hp-plugin 


Daí pediu para fazer o download escolhendo a opção d e depois digite y.
Aqui correu tudo bem.
O problema é aí.
Verifique o arquivo dos repositórios /etc/apt/sources.list.


________________________________________________
Always listen the Buck!


com o comando

    # hp-plugin  


Resolveu aqui pra mim , já saiu na impressora o teste



18. Re: Debian 11 - Instalação de HP M1132 MFP

Guilherme Patriarcha Faria
gurermus

(usa Debian)

Enviado em 04/04/2023 - 12:18h


Buckminster escreveu:

# apt-get update
# apt-get install pyqt5-dev pyqt5-dev-tools python3

https://packages.debian.org/bullseye/python3

https://packages.debian.org/bullseye/pyqt5-dev

Cara, deixe assim teu sources.list:

deb http://ftp.br.debian.org/debian bullseye main contrib non-free
deb-src http://ftp.br.debian.org/debian bullseye main contrib non-free

deb http://ftp.br.debian.org/debian bullseye-updates main contrib non-free
deb-src http://ftp.br.debian.org/debian bullseye-updates main contrib non-free

deb http://security.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security/ bullseye-security main contrib non-free

#deb http://ftp.br.debian.org/debian bullseye-backports main contrib non-free
#deb-src http://ftp.br.debian.org/debian bullseye-backports main contrib non-free

Não precisa mais do que isso. Tem muita gosma no teu sources.list.
Os backports tu deixa comentado e somente usa quando for preciso algum pacote que tu não encontrar normalmente nos outros repositórios, daí tu descomenta, instala o pacote e comenta de novo os backports.
Os deb-src se quiser pode deixar comentado também porque a única função deles é baixar os fontes de cada pacote, mas vai da tua escolha.


________________________________________________
Always listen the Buck!

_______________________________________________________________________________
Tem mesmo.... é porque estou tentando resolver esse problema da impressora.




19. Re: Debian 11 - Instalação de HP M1132 MFP

Guilherme Patriarcha Faria
gurermus

(usa Debian)

Enviado em 04/04/2023 - 12:33h

Eu apaguei o HPLIP e Instalei de novo mas agora voltei ao "Erro inicial", é muita coisa que eu tenho que fazer agora pra poder chegar aonde eu estava.
Preciso seguir um caminho mais fácil:
1 Opção: Descobrir uma forma de instalar uma impressora genérica;
2 Opção: Voltar o Debian para uma versão anterior, ou
3 Opção: Abandonar o Debian e encontrar uma outra distribuição do Linux.



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts