Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#76 Le 08/12/2021, à 23:09

ylag

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

Bonsoir,

Sur la 20.04, pour les erreurs python comme au message #70, peut-être installer le paquet python-is-python3, qui crée un lien symbolique /usr/bin/python piontant vers python3 :

sudo apt install python-is-python3

Concernant le ppa sane-project/sane-git, il aurait peut-être été préférable d'utiliser ppa-purge pour le retrograder; bien que je ne crois pas que la présence des paquets sane issus de ce ppa puisse vraimant causer problème.

Grillé par iznobe, désolé...

A+

Dernière modification par ylag (Le 08/12/2021, à 23:11)

Hors ligne

#77 Le 09/12/2021, à 07:25

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

christophe@christophe-desktop:~$ sudo apt-get install libcanberra-gtk-module
[sudo] Mot de passe de christophe : 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
libcanberra-gtk-module est déjà la version la plus récente (0.30-7ubuntu1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 6 non mis à jour.
christophe@christophe-desktop:~$ sudo apt update
Atteint :1 http://fr.archive.ubuntu.com/ubuntu focal InRelease
Atteint :2 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease
Atteint :3 http://security.ubuntu.com/ubuntu focal-security InRelease
Atteint :4 http://fr.archive.ubuntu.com/ubuntu focal-backports InRelease
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
6 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
christophe@christophe-desktop:~$ sudo ln -s /usr/bin/python2.7 /usr/bin/python
christophe@christophe-desktop:~$ hp-plugin -i

HP Linux Imaging and Printing System (ver. 3.21.10)
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.10)
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.10 |
------------------------------------------

  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...
Downloading plug-in from: 
Downloading plug-in: [\                                   ] 0%     Traceback (most recent call last):
  File "/usr/share/hplip/base/password.py", line 89, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/usr/share/hplip/installer/pluginhandler.py", line 257, in download
    core = core_install.CoreInstall()
  File "/usr/share/hplip/installer/core_install.py", line 241, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 122, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 145, in __readAuthType
    distro_name = get_distro_name().lower().replace(" ","")
  File "/usr/share/hplip/base/password.py", line 92, in get_distro_name
    os_name = distro.linux_distribution()[0]
  File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
    self.version(),
  File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
    self.lsb_release_attr('release'),
  File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_hplip_plugin.py.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/hplip/base/password.py", line 89, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/usr/share/hplip/installer/pluginhandler.py", line 257, in download
    core = core_install.CoreInstall()
  File "/usr/share/hplip/installer/core_install.py", line 241, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 122, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 145, in __readAuthType
    distro_name = get_distro_name().lower().replace(" ","")
  File "/usr/share/hplip/base/password.py", line 92, in get_distro_name
    os_name = distro.linux_distribution()[0]
  File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
    self.version(),
  File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
    self.lsb_release_attr('release'),
  File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
christophe@christophe-desktop:~$ sudo apt install python-is-python3
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Les NOUVEAUX paquets suivants seront installés :
  python-is-python3
0 mis à jour, 1 nouvellement installés, 0 à enlever et 6 non mis à jour.
Il est nécessaire de prendre 2364 o dans les archives.
Après cette opération, 10,2 ko d'espace disque supplémentaires seront utilisés.
Réception de :1 http://fr.archive.ubuntu.com/ubuntu focal/main amd64 python-is-python3 all 3.8.2-4 [2364 B]
2364 o réceptionnés en 0s (9651 o/s)           
Sélection du paquet python-is-python3 précédemment désélectionné.
(Lecture de la base de données... 201952 fichiers et répertoires déjà installés.
)
Préparation du dépaquetage de .../python-is-python3_3.8.2-4_all.deb ...
Dépaquetage de python-is-python3 (3.8.2-4) ...
Paramétrage de python-is-python3 (3.8.2-4) ...
christophe@christophe-desktop:~$ 

Hors ligne

#78 Le 09/12/2021, à 08:31

xubu1957

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

Bonjour,

6 non mis à jour

Lance :

sudo apt full-upgrade

_ _ _

Montre :

apt-cache policy hplip-gui

> askubuntu.com/questions/1245010/hplip-driver-install-fails-on-ubuntu-20-04

Dernière modification par xubu1957 (Le 09/12/2021, à 08:37)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#79 Le 09/12/2021, à 09:03

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

bonjour,

christophe@christophe-desktop:~$ apt-cache policy hplip-gui
hplip-gui:
  Installé : (aucun)
  Candidat : 3.20.3+dfsg0-2
 Table de version :
     3.20.3+dfsg0-2 500
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe i386 Packages
christophe@christophe-desktop:~$ 

Hors ligne

#80 Le 09/12/2021, à 09:14

iznobe

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

bonjour , et

hp-check

Dernière modification par iznobe (Le 09/12/2021, à 09:15)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#81 Le 09/12/2021, à 09:15

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

christophe@christophe-desktop:~$ hpcheck

La commande « hpcheck » n'a pas été trouvée, voulez-vous dire :

  commande « hp-check » du deb hplip (3.20.3+dfsg0-2)

Essayez : sudo apt install <nom du deb>

christophe@christophe-desktop:~$ hp check
hp : commande introuvable
christophe@christophe-desktop:~$ 

Hors ligne

#82 Le 09/12/2021, à 09:16

iznobe

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

oublié le tiret desole , pas encore bien reveillé roll:

hp-check

Dernière modification par iznobe (Le 09/12/2021, à 09:19)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#83 Le 09/12/2021, à 09:22

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

christophe@christophe-desktop:~$ sudo apt full-upgrade
[sudo] Mot de passe de christophe : 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
Les paquets suivants seront mis à jour :
  gnome-shell-extension-desktop-icons libnetplan0 libssl-dev libssl1.1
  netplan.io openssl
6 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 3729 ko dans les archives.
Après cette opération, 5120 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] O
Réception de :1 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 libnetplan0 amd64 0.103-0ubuntu5~20.04.5 [53,4 kB]
Réception de :2 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl-dev amd64 1.1.1f-1ubuntu2.10 [1584 kB]
Réception de :3 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.10 [1322 kB]
Réception de :4 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 netplan.io amd64 0.103-0ubuntu5~20.04.5 [125 kB]
Réception de :5 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 openssl amd64 1.1.1f-1ubuntu2.10 [620 kB]
Réception de :6 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 gnome-shell-extension-desktop-icons all 20.04.0-3~ubuntu20.04.6 [25,0 kB]
3729 ko réceptionnés en 8s (465 ko/s)                                         
Préconfiguration des paquets...
(Lecture de la base de données... 201956 fichiers et répertoires déjà installés.
)
Préparation du dépaquetage de .../0-libnetplan0_0.103-0ubuntu5~20.04.5_amd64.deb
 ...
Dépaquetage de libnetplan0:amd64 (0.103-0ubuntu5~20.04.5) sur (0.103-0ubuntu5~20
.04.3) ...
Préparation du dépaquetage de .../1-libssl-dev_1.1.1f-1ubuntu2.10_amd64.deb ...
Dépaquetage de libssl-dev:amd64 (1.1.1f-1ubuntu2.10) sur (1.1.1f-1ubuntu2.9) ...
Préparation du dépaquetage de .../2-libssl1.1_1.1.1f-1ubuntu2.10_amd64.deb ...
Dépaquetage de libssl1.1:amd64 (1.1.1f-1ubuntu2.10) sur (1.1.1f-1ubuntu2.9) ...
Préparation du dépaquetage de .../3-netplan.io_0.103-0ubuntu5~20.04.5_amd64.deb 
...
Dépaquetage de netplan.io (0.103-0ubuntu5~20.04.5) sur (0.103-0ubuntu5~20.04.3) 
...
Préparation du dépaquetage de .../4-openssl_1.1.1f-1ubuntu2.10_amd64.deb ...
Dépaquetage de openssl (1.1.1f-1ubuntu2.10) sur (1.1.1f-1ubuntu2.9) ...
Préparation du dépaquetage de .../5-gnome-shell-extension-desktop-icons_20.04.0-
3~ubuntu20.04.6_all.deb ...
Dépaquetage de gnome-shell-extension-desktop-icons (20.04.0-3~ubuntu20.04.6) sur
 (20.04.0-3~ubuntu20.04.5) ...
Paramétrage de gnome-shell-extension-desktop-icons (20.04.0-3~ubuntu20.04.6) ...
Paramétrage de libssl1.1:amd64 (1.1.1f-1ubuntu2.10) ...
Paramétrage de libnetplan0:amd64 (0.103-0ubuntu5~20.04.5) ...
Paramétrage de netplan.io (0.103-0ubuntu5~20.04.5) ...
Paramétrage de libssl-dev:amd64 (1.1.1f-1ubuntu2.10) ...
Paramétrage de openssl (1.1.1f-1ubuntu2.10) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.31-0ubuntu9.2) 
...
Traitement des actions différées (« triggers ») pour man-db (2.9.1-1) ...
Traitement des actions différées (« triggers ») pour dbus (1.12.16-2ubuntu2.1) .
..
Traitement des actions différées (« triggers ») pour libglib2.0-0:amd64 (2.64.6-
1~ubuntu20.04.4) ...
christophe@christophe-desktop:~$ apt-cache policy hplip-gui
hplip-gui:
  Installé : (aucun)
  Candidat : 3.20.3+dfsg0-2
 Table de version :
     3.20.3+dfsg0-2 500
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe i386 Packages
christophe@christophe-desktop:~$ hpcheck

La commande « hpcheck » n'a pas été trouvée, voulez-vous dire :

  commande « hp-check » du deb hplip (3.20.3+dfsg0-2)

Essayez : sudo apt install <nom du deb>

christophe@christophe-desktop:~$ hp check
hp : commande introuvable
christophe@christophe-desktop:~$ hp-check
/usr/bin/hp-check:685: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if 'getfacl' not in g and '' is not g and 'file' not in g:
Saving output in log file: /home/christophe/hp-check.log

HP Linux Imaging and Printing System (ver. 3.21.10)
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

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

 Kernel: 5.11.0-41-generic #45~20.04.1-Ubuntu SMP Wed Nov 10 10:20:10 UTC 2021 GNU/Linux
 Host: christophe-desktop
 Proc: 5.11.0-41-generic #45~20.04.1-Ubuntu SMP Wed Nov 10 10:20:10 UTC 2021 GNU/Linux
 Distribution: 12 20.04
 Bitness: 64 bit


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

HPLIP-Version: HPLIP 3.21.10
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is 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.21.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.21.10
html=/usr/share/doc/hplip-3.21.10
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
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=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.21.10
restricted-build=no
ui-toolkit=qt5
qt3=no
qt4=no
qt5=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no
apparmor_build=yes
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:
[upgrade]
notify_upgrade = true
last_upgraded_time = 1638986377
pending_upgrade_time = 0

[installation]
date_time = 12/09/21 08:21:23
version = 3.21.10


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

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

 cups                 CUPS - Common Unix Printing System                           REQUIRED        1.1             2.3.1           OK         'CUPS Scheduler is 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.32          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        -               2.3.1           OK         -
 cups-image           CUPS image - CUPS image development files                    REQUIRED        -               2.3.1           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         -
 libavahi-dev         libavahi-dev                                                 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         -
 python3-pyqt5-dbus   PyQt 5 DBus - DBus Support for PyQt5                         OPTIONAL        5.0             5.14.1          OK         -
 python3-pyqt5        PyQt 5- Qt interface for Python (for Qt version 4.x)         REQUIRED        5.0             5.14.1          OK         -
 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        -               8.4.0           OK         -
 python3-reportlab    Reportlab - PDF library for Python                           OPTIONAL        2.0             3.6.3           OK         -

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

 libtool              libtool - Library building support services                  REQUIRED        -               2.4.6           OK         -
 gcc                  gcc - GNU Project C and C++ Compiler                         REQUIRED        -               9.3.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.21.10         OK         -
 hpmudext             IO-Extension                                                 REQUIRED        -               3.21.10         OK         -

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

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

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

No Scanner found.

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

No devices found.

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

 


Type: Unknown
Device URI: usb://HP/DeskJet%202700%20series?serial=CN1416E0C0&interface=1


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

No errors or warnings.

Done.
christophe@christophe-desktop:~$ 

Hors ligne

#84 Le 09/12/2021, à 09:32

iznobe

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

A priori , tout est parfait , vu que tu as passé python en v3 maintenant , retente :

hp-plugin -i

d ' apres ce lien , c ' est ce qui a resolu le probleme de scanner de notre ami  : https://forum.ubuntu-fr.org/viewtopic.p … #p22316152

Dernière modification par iznobe (Le 09/12/2021, à 09:35)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#85 Le 09/12/2021, à 09:40

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

christophe@christophe-desktop:~$ hp-plugin -i

HP Linux Imaging and Printing System (ver. 3.21.10)
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.10)
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.10 |
------------------------------------------

  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...
Downloading plug-in from: 
Downloading plug-in: [\                                   ] 0%     Traceback (most recent call last):
  File "/usr/share/hplip/base/password.py", line 89, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/usr/share/hplip/installer/pluginhandler.py", line 257, in download
    core = core_install.CoreInstall()
  File "/usr/share/hplip/installer/core_install.py", line 241, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 122, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 145, in __readAuthType
    distro_name = get_distro_name().lower().replace(" ","")
  File "/usr/share/hplip/base/password.py", line 92, in get_distro_name
    os_name = distro.linux_distribution()[0]
  File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
    self.version(),
  File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
    self.lsb_release_attr('release'),
  File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_hplip_plugin.py.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/hplip/base/password.py", line 89, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/usr/share/hplip/installer/pluginhandler.py", line 257, in download
    core = core_install.CoreInstall()
  File "/usr/share/hplip/installer/core_install.py", line 241, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 122, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 145, in __readAuthType
    distro_name = get_distro_name().lower().replace(" ","")
  File "/usr/share/hplip/base/password.py", line 92, in get_distro_name
    os_name = distro.linux_distribution()[0]
  File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
    self.version(),
  File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
    self.lsb_release_attr('release'),
  File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
christophe@christophe-desktop:~$ 

Hors ligne

#86 Le 09/12/2021, à 09:42

iznobe

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

ok faudrait attendre le retour de @ylag ou @grigouille pour avoir d' autres idées , j ' avoue que là , je suis un peu a court ... hmm

peut etre faut il telecharger le plugin manuellement avec la correspondance , pourtant c ' est ce qu ' il dit qu ' il fait dans le retour .

juste pour voir si les outils de compilation sont bien installés :

dpkg -l build-essential

Dernière modification par iznobe (Le 09/12/2021, à 09:45)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#87 Le 09/12/2021, à 09:52

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

christophe@christophe-desktop:~$ dpkg -l build-essential
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=att>
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom             Version       Architecture Description
+++-===============-=============-============-================================>
ii  build-essential 12.8ubuntu1.1 amd64        Informational list of build-esse>
lines 1-6/6 (END)

Hors ligne

#88 Le 09/12/2021, à 10:45

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

re
je fais quoi apres ???
merci d'avance pour votre aide !!!
Totoflenimois

Hors ligne

#89 Le 09/12/2021, à 10:51

iznobe

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

essaie ca :

hp-scan

dans les choix qui seront affichés ( si ca fonctionne ) choisi le numero qui correspond a ca :
" hpaio:/usb/DeskJet_2700_series?serial=CN08R4E6RS "

Dernière modification par iznobe (Le 09/12/2021, à 10:52)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#90 Le 09/12/2021, à 10:54

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

christophe@christophe-desktop:~$ hp-scan

HP Linux Imaging and Printing System (ver. 3.21.10)
Scan Utility ver. 2.2

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.

error: No device selected/specified or that supports this functionality.
christophe@christophe-desktop:~$ 

Hors ligne

#91 Le 09/12/2021, à 11:16

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

re
je fais quoi apres ???
totoflenimois

Hors ligne

#92 Le 09/12/2021, à 11:18

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

et comment faire pour installer chrome sur Ubuntu ???

Hors ligne

#93 Le 09/12/2021, à 11:23

xubu1957

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

Tu ne sais pas chercher dans notre Documentation ?

> google_chrome

Mais je me sers de chromium-browser

_ _ _

totoflenimois a écrit :

je fais quoi apres ???


Pour info :

Le 30/05/2016, cqfd93 a écrit :

(...) tu n'es pas seul sur le forum et ici, ce n'est pas une hotline, c'est juste un forum où on répond quand on peut, quand on a le temps, quand on sait, quand on en a envie… et on est tous bénévoles donc on n'a aucune obligation ni de rapidité ni de résultat. Évidemment, comme on aime aider, on fait de notre mieux mais on ne doit rien à personne.

Dernière modification par xubu1957 (Le 09/12/2021, à 11:26)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#94 Le 09/12/2021, à 12:55

ylag

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

Bonjour,

On voit au message #78 que l'installation du greffon propriétaire aurait échouée ?

Est-ce que la commande :

hp-plugin -i

...a été relancée après l'installation du paquet python-is-python3 ?
Si non, réessayer et en poster le résultat complet :

hp-plugin -i

Je crois que le lien symbolique créé par le paquet python-is-python3 serait différent de celui suggéré par @iznobe au #76.

A+

Dernière modification par ylag (Le 09/12/2021, à 12:58)

Hors ligne

#95 Le 09/12/2021, à 12:56

iznobe

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

ok , on va essayer ca manuellement :
deja donne le retour suivant :

python --version

rends toi sur cette page : https://developers.hp.com/hp-linux-imag … ng/plugins
toiut en bas , fais un clic droit sur :" hplip-3.21.10-plugin.run " puis enregistrer la cible du lien sous , le nom par defaut devrait etre identique , et enregistre lr fichier dans Téléchargemnts .

chmod +x ~/Téléchargements/hplip-3.21.10-plugin.run

@ylag , normalement oui , j ' ai demandé ulterieurement a l ' installation de python-is-python3 de refaire l ' install du plugin en mode interactif .
Mais , il y a a priori un bug connu : https://bugs.launchpad.net/hplip/+bug/1884442 qui relate exactement la meme sortie que le retour qu ' on voit dans les messages du demandeur .

Dernière modification par iznobe (Le 09/12/2021, à 14:00)


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#96 Le 09/12/2021, à 13:16

ylag

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

@iznobe :

Bonjour,

Pour info, j'ai ceci sur mon Ubuntu 20.04 avec le paquet python-is-python3 installé :

yvan@yvan-maison:~$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 avr 15  2020 /usr/bin/python -> python3
yvan@yvan-maison:~$ which python3
/usr/bin/python3
yvan@yvan-maison:~$ ls -l /usr/bin/python3
lrwxrwxrwx 1 root root 9 mai  4  2021 /usr/bin/python3 -> python3.8
yvan@yvan-maison:~$ ls -l /usr/bin/python3.8
-rwxr-xr-x 1 root root 5490488 sep 28 12:10 /usr/bin/python3.8
yvan@yvan-maison:~$ python --version
Python 3.8.10
yvan@yvan-maison:~$

Ça donne ceci concernant le greffon propriétaire :

van@yvan-maison:~$ hp-plugin -i

HP Linux Imaging and Printing System (ver. 3.20.3)
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.20.3)
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.20.3 |
-----------------------------------------

The driver plugin for HPLIP 3.20.3 appears to already be installed.
Do you wish to download and re-install the plug-in? (y=yes*, n=no, q=quit) ? q
yvan@yvan-maison:~$ 

...l'installation du greffon s'était bien passée pour moi après l'installation du paquet python-is-python3.

En espérant que ça puisse être utile...

A+

Hors ligne

#97 Le 09/12/2021, à 16:35

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

christophe@christophe-desktop:~$ hp-plugin -i

HP Linux Imaging and Printing System (ver. 3.21.10)
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.10)
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.10 |
------------------------------------------

  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...
Downloading plug-in from: 
Downloading plug-in: [\                                   ] 0%     Traceback (most recent call last):
  File "/usr/share/hplip/base/password.py", line 89, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/usr/share/hplip/installer/pluginhandler.py", line 257, in download
    core = core_install.CoreInstall()
  File "/usr/share/hplip/installer/core_install.py", line 241, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 122, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 145, in __readAuthType
    distro_name = get_distro_name().lower().replace(" ","")
  File "/usr/share/hplip/base/password.py", line 92, in get_distro_name
    os_name = distro.linux_distribution()[0]
  File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
    self.version(),
  File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
    self.lsb_release_attr('release'),
  File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 153, in apport_excepthook
    with os.fdopen(os.open(pr_filename,
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_hplip_plugin.py.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/share/hplip/base/password.py", line 89, in get_distro_name
    os_name = platform.dist()[0]
AttributeError: module 'platform' has no attribute 'dist'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/hp-plugin", line 363, in <module>
    status, plugin_path, error_str = pluginObj.download(plugin_path, plugin_download_callback)
  File "/usr/share/hplip/installer/pluginhandler.py", line 257, in download
    core = core_install.CoreInstall()
  File "/usr/share/hplip/installer/core_install.py", line 241, in __init__
    self.passwordObj = password.Password(ui_mode)
  File "/usr/share/hplip/base/password.py", line 122, in __init__
    self.__readAuthType()  # self.__authType
  File "/usr/share/hplip/base/password.py", line 145, in __readAuthType
    distro_name = get_distro_name().lower().replace(" ","")
  File "/usr/share/hplip/base/password.py", line 92, in get_distro_name
    os_name = distro.linux_distribution()[0]
  File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution
    self.version(),
  File "/usr/lib/python3/dist-packages/distro.py", line 737, in version
    self.lsb_release_attr('release'),
  File "/usr/lib/python3/dist-packages/distro.py", line 899, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/usr/lib/python3/dist-packages/distro.py", line 552, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/usr/lib/python3/dist-packages/distro.py", line 1012, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
christophe@christophe-desktop:~$ 

Hors ligne

#98 Le 09/12/2021, à 16:36

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

christophe@christophe-desktop:~$ python --version
Python 3.8.10
christophe@christophe-desktop:~$ 

Hors ligne

#99 Le 09/12/2021, à 16:38

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

christophe@christophe-desktop:~$ chmod +x ~/Téléchargements/hplip-3.21.10-plugin.run
chmod: impossible d'accéder à '/home/christophe/Téléchargements/hplip-3.21.10-plugin.run': Aucun fichier ou dossier de ce type
christophe@christophe-desktop:~$ 

Hors ligne

#100 Le 09/12/2021, à 16:40

totoflenimois

Re : Débutant cherche de l'aide pour installer HP Deskjet 2710e sur Ubuntu

christophe@christophe-desktop:~$ chmod +x ~/Téléchargements/hplip-3.21.10-plugin.run
christophe@christophe-desktop:~$ 

Hors ligne