#1 Le 03/08/2019, à 09:50
- blego
[résolu]problème avec Python3
Bonjour,
Le problème concernant python3 est apparu au cours d'une discussion concernant HP device tools
https://forum.ubuntu-fr.org/viewtopic.php?pid=22131557
J'ai résolu mon problème avec HP device tools ,si bien que le titre de mon post n'avait plus de rapport direct avec Python 3,c'est pourquoi j'ai créé un nouveau sujet.
Je recopie une partie des réponses aux questions que m' a posé xbutu1957 qui a commencé à m'aider.
blego@blego-GA-78LMT-S2P:~$ sudo apt-get install python3.5-gdbm
[sudo] Mot de passe de blego :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Le paquet python3.5-gdbm est un paquet virtuel fourni par :
python3-gdbm 3.5.1-1 [Pas de version candidate]
E: Le paquet « python3.5-gdbm » n'a pas de version susceptible d'être installée
blego@blego-GA-78LMT-S2P:~$
Quel retour avec :
sudo dpkg --configure python3
mon retour
blego@blego-GA-78LMT-S2P:~$ sudo dpkg --configure python3
dpkg: erreur de traitement du paquet python3 (--configure) :
le paquet python3 est déjà installé et configuré
Des erreurs ont été rencontrées pendant l'exécution :
python3
blego@blego-GA-78LMT-S2P:~$
Tente :
sudo apt install python3-gdbm=3.5.1-1
indiqué dans > stackoverflow.com/questions/50187767/importerror-no-module-named-gdbm-occuring-while-using-source-bashrc
mon retour
j'ai appliqué la commande indiquée ,mais la version installée est antérieure à celle qui était présente.
Comment l'actualiser?
blego@blego-GA-78LMT-S2P:~$ sudo apt install python3-gdbm=3.5.1-1
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Paquets suggérés :
python3-gdbm-dbg
Les paquets suivants seront mis à une VERSION INFÉRIEURE :
python3-gdbm
0 mis à jour, 0 nouvellement installés, 1 remis à une version inférieure, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 12,2 ko dans les archives.
Après cette opération, 1 024 o d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n]
Réception de :1 http://fr.archive.ubuntu.com/ubuntu xenial/main amd64 python3-gdbm amd64 3.5.1-1 [12,2 kB]
12,2 ko réceptionnés en 0s (135 ko/s)
dpkg : avertissement : dégradation (« downgrade ») de python3-gdbm:amd64 depuis 3.6.5-3~16.04.york0.2 vers 3.5.1-1
(Lecture de la base de données... 272493 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../python3-gdbm_3.5.1-1_amd64.deb ...
Dépaquetage de python3-gdbm:amd64 (3.5.1-1) sur (3.6.5-3~16.04.york0.2) ...
Paramétrage de python3-gdbm:amd64 (3.5.1-1) ...
blego@blego-GA-78LMT-S2P:~$
Montre :
apt-cache policy libpython3.6
> askubuntu.com/questions/1083331/why-libpython3-6-is-not-installing
mon retour
blego@blego-GA-78LMT-S2P:~$ apt-cache policy libpython3.6
libpython3.6-stdlib:
Installé : (aucun)
Candidat : (aucun)
Table de version :
blego@blego-GA-78LMT-S2P:~$
Tu l'avais installé comment Python 3.6 sur ta version 16.04 ?
Dans > tecmint.com/install-python-in-ubuntu, je vois qu'il était conseillé un PPA.
réponse:
J'ai installé ubuntu 16.04 à partir d'un fichier .iso.
Je suppose qu'une version de python a été installée et que les différents upgrade de ubuntu ont apporté une version plus récente.Si je suis le tuto de tecmint,faut-il que je désinstalle la version 5.11 ,avant?
Si oui ,merci de m'indiquer la syntaxe.
extrait § 2.2.1 a écrit :
La dernière version (3.6) n'est pas dans les dépôts de la dernière LTS 16.04
Montre le sources.list :
find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n$1\n"; [[ $1 = *".list" ]] && nl -ba "$1"' _ '{}' \;
et :
dpkg -l | grep python
> forum.ubuntuusers.de/topic/hp
Dernière modification par blego (Le 03/08/2019, à 13:10)
Hors ligne
#2 Le 03/08/2019, à 10:00
- blego
Re : [résolu]problème avec Python3
[
blego@blego-GA-78LMT-S2P:~$ find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n$1\n"; [[ $1 = *".list" ]] && nl -ba "$1"' _ '{}' \;
/etc/apt/sources.list.save
/etc/apt/sources.list
1 #------------------------------------------------------------------------------#
2 # OFFICIAL UBUNTU REPOS #
3 #------------------------------------------------------------------------------#
4
5
6 ###### Ubuntu Main Repos
7 deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
8
9 ###### Ubuntu Update Repos
10 deb http://fr.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
11 deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
12 deb http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
13
14 ###### Ubuntu Partner Repo
15 deb http://archive.canonical.com/ubuntu xenial partner
/etc/apt/sources.list.d/diesch-ubuntu-testing-xenial.list
1 # deb http://ppa.launchpad.net/diesch/testing/ubuntu xenial main
2 # deb-src http://ppa.launchpad.net/diesch/testing/ubuntu xenial main
/etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list
1 # deb http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial main
2 # deb-src http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial main
3 # deb-src http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial main
/etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list.save
/etc/apt/sources.list.d/diesch-ubuntu-testing-xenial.list.save
/etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-xenial.list
1 deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial main
2 # deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial main
blego@blego-GA-78LMT-S2P:~$
blego@blego-GA-78LMT-S2P:~$ find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n$1\n"; [[ $1 = *".list" ]] && nl -ba "$1"' _ '{}' \;
/etc/apt/sources.list.save
/etc/apt/sources.list
1 #------------------------------------------------------------------------------#
2 # OFFICIAL UBUNTU REPOS #
3 #------------------------------------------------------------------------------#
4
5
6 ###### Ubuntu Main Repos
7 deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
8
9 ###### Ubuntu Update Repos
10 deb http://fr.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
11 deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
12 deb http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
13
14 ###### Ubuntu Partner Repo
15 deb http://archive.canonical.com/ubuntu xenial partner
/etc/apt/sources.list.d/diesch-ubuntu-testing-xenial.list
1 # deb http://ppa.launchpad.net/diesch/testing/ubuntu xenial main
2 # deb-src http://ppa.launchpad.net/diesch/testing/ubuntu xenial main
/etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list
1 # deb http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial main
2 # deb-src http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial main
3 # deb-src http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial main
/etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list.save
/etc/apt/sources.list.d/diesch-ubuntu-testing-xenial.list.save
/etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-xenial.list
1 deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial main
2 # deb-src http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu xenial main
blego@blego-GA-78LMT-S2P:~$
blego@blego-GA-78LMT-S2P:~$ dpkg -l | grep python
ii dh-python 2.20151103ubuntu1.1 all Debian helper tools for packaging Python libraries and applications
ii libpeas-1.0-0-python3loader 1.16.0-1ubuntu2 amd64 Application plugin library
ii libpython-dev:amd64 2.7.12-1~16.04 amd64 header files and a static library for Python (default)
ii libpython-stdlib:amd64 2.7.12-1~16.04 amd64 interactive high-level object-oriented language (default python version)
ii libpython2.7:amd64 2.7.12-1ubuntu0~16.04.4 amd64 Shared Python runtime library (version 2.7)
ii libpython2.7-dev:amd64 2.7.12-1ubuntu0~16.04.4 amd64 Header files and a static library for Python (v2.7)
ii libpython2.7-minimal:amd64 2.7.12-1ubuntu0~16.04.4 amd64 Minimal subset of the Python language (version 2.7)
ii libpython2.7-stdlib:amd64 2.7.12-1ubuntu0~16.04.4 amd64 Interactive high-level object-oriented language (standard library, version 2.7)
ii libpython3-stdlib:amd64 3.5.1-3 amd64 interactive high-level object-oriented language (default python3 version)
ii libpython3.5:amd64 3.5.2-2ubuntu0~16.04.5 amd64 Shared Python runtime library (version 3.5)
ii libpython3.5-minimal:amd64 3.5.2-2ubuntu0~16.04.5 amd64 Minimal subset of the Python language (version 3.5)
ii libpython3.5-stdlib:amd64 3.5.2-2ubuntu0~16.04.5 amd64 Interactive high-level object-oriented language (standard library, version 3.5)
ii python 2.7.12-1~16.04 amd64 interactive high-level object-oriented language (default version)
ii python-apt-common 1.1.0~beta1ubuntu0.16.04.5 all Python interface to libapt-pkg (locales)
ii python-beautifulsoup 3.2.1-1 all error-tolerant HTML parser for Python
ii python-bs4 4.4.1-1 all error-tolerant HTML parser for Python
ii python-cairo 1.8.8-2 amd64 Python bindings for the Cairo vector graphics library
ii python-chardet 2.3.0-2 all universal character encoding detector for Python2
ii python-compizconfig:amd64 1:0.9.12.3+16.04.20180221-0ubuntu1 amd64 Compizconfig bindings for Python
ii python-cycler 0.9.0-1 all composable kwarg iterator (Python 2)
ii python-dateutil 2.4.2-1 all powerful extensions to the standard datetime module
ii python-dbus 1.2.0-3 amd64 simple interprocess messaging system (Python interface)
ii python-dev 2.7.12-1~16.04 amd64 header files and a static library for Python (default)
ii python-gi 3.20.0-0ubuntu1 amd64 Python 2.x bindings for gobject-introspection libraries
ii python-glade2 2.24.0-4ubuntu1 amd64 GTK+ bindings: Glade support
ii python-gobject 3.20.0-0ubuntu1 all Python 2.x bindings for GObject - transitional package
ii python-gobject-2 2.28.6-12ubuntu1 amd64 deprecated static Python bindings for the GObject library
ii python-gtk2 2.24.0-4ubuntu1 amd64 Python bindings for the GTK+ widget set
ii python-html5lib 0.999-4 all HTML parser/tokenizer based on the WHATWG HTML5 specification (Python 2)
ii python-httplib2 0.9.1+dfsg-1 all comprehensive HTTP client library written for Python
ii python-imaging 3.1.2-0ubuntu1.1 all Python Imaging Library compatibility layer
ii python-lxml 3.5.0-1ubuntu0.1 amd64 pythonic binding for the libxml2 and libxslt libraries
ii python-markdown 2.6.6-1 all text-to-HTML conversion library/tool (Python 2 version)
ii python-matplotlib 1.5.1-1ubuntu1 amd64 Python based plotting system in a style similar to Matlab
ii python-matplotlib-data 1.5.1-1ubuntu1 all Python based plotting system (data package)
ii python-minimal 2.7.12-1~16.04 amd64 minimal subset of the Python language (default version)
ii python-notify 0.1.1-4 amd64 Python bindings for libnotify
ii python-numpy 1:1.11.0-1ubuntu1 amd64 Numerical Python adds a fast array facility to the Python language
ii python-pil:amd64 3.1.2-0ubuntu1.1 amd64 Python Imaging Library (Pillow fork)
ii python-pkg-resources 20.7.0-1 all Package Discovery and Resource Access using pkg_resources
ii python-poppler 0.12.1-8.1 amd64 Poppler Python bindings
ii python-pyaudio 0.2.8-1build2 amd64 Python bindings for PortAudio v19
ii python-pygments 2.1+dfsg-1 all syntax highlighting package written in Python
ii python-pyparsing 2.0.3+dfsg1-1ubuntu0.1 all Python parsing module
ii python-pypdf 1:1.13-3 all PDF toolkit implemented solely in Python
ii python-qt4 4.11.4+dfsg-1build4 amd64 Python bindings for Qt4
ii python-qt4-dbus 4.11.4+dfsg-1build4 amd64 D-Bus Support for PyQt4
ii python-renderpm:amd64 3.3.0-1 amd64 python low level render interface
ii python-reportlab 3.3.0-1 all ReportLab library to create PDF documents using Python
ii python-reportlab-accel:amd64 3.3.0-1 amd64 C coded extension accelerator for the ReportLab Toolkit
ii python-simplejson 3.8.1-1ubuntu2 amd64 simple, fast, extensible JSON encoder/decoder for Python
ii python-sip 4.17+dfsg-1build1 amd64 Python/C++ bindings generator runtime library
ii python-six 1.10.0-3 all Python 2 and 3 compatibility library (Python 2 interface)
ii python-sqlalchemy 1.0.11+ds1-1ubuntu2 all SQL toolkit and Object Relational Mapper for Python
ii python-sqlalchemy-ext 1.0.11+ds1-1ubuntu2 amd64 SQL toolkit and Object Relational Mapper for Python - C extension
ii python-talloc 2.1.5-2 amd64 hierarchical pool based memory allocator - Python bindings
ii python-tk 2.7.12-1~16.04 amd64 Tkinter - Writing Tk applications with Python
ii python-tz 2014.10~dfsg1-0ubuntu2 all Python version of the Olson timezone database
ii python-yaml 3.11-3build1 amd64 YAML parser and emitter for Python
ii python2.7 2.7.12-1ubuntu0~16.04.4 amd64 Interactive high-level object-oriented language (version 2.7)
ii python2.7-dev 2.7.12-1ubuntu0~16.04.4 amd64 Header files and a static library for Python (v2.7)
ii python2.7-minimal 2.7.12-1ubuntu0~16.04.4 amd64 Minimal subset of the Python language (version 2.7)
ii python3 3.5.1-3 amd64 interactive high-level object-oriented language (default python3 version)
ii python3-apport 2.20.1-0ubuntu2.19 all Python 3 library for Apport crash report handling
ii python3-apt 1.1.0~beta1ubuntu0.16.04.5 amd64 Python 3 interface to libapt-pkg
ii python3-aptdaemon 1.1.1+bzr982-0ubuntu14.1 all Python 3 module for the server and client of aptdaemon
ii python3-aptdaemon.gtk3widgets 1.1.1+bzr982-0ubuntu14.1 all Python 3 GTK+ 3 widgets to run an aptdaemon client
ii python3-aptdaemon.pkcompat 1.1.1+bzr982-0ubuntu14.1 all PackageKit compatibilty for AptDaemon
ii python3-blinker 1.3.dfsg2-1build1 all fast, simple object-to-object and broadcast signaling library
ii python3-brlapi 5.3.1-2ubuntu2.1 amd64 Braille display access via BRLTTY - Python3 bindings
ii python3-bs4 4.4.1-1 all error-tolerant HTML parser for Python 3
ii python3-cairo 1.10.0+dfsg-5build1 amd64 Python 3 bindings for the Cairo vector graphics library
ii python3-cffi-backend 1.5.2-1ubuntu1 amd64 Foreign Function Interface for Python 3 calling C code - runtime
ii python3-chardet 2.3.0-2 all universal character encoding detector for Python3
ii python3-checkbox-support 0.22-1 all collection of Python modules used by PlainBox providers
ii python3-commandnotfound 0.3ubuntu16.04.2 all Python 3 bindings for command-not-found.
ii python3-crypto 2.6.1-6ubuntu0.16.04.3 amd64 cryptographic algorithms and protocols for Python 3
ii python3-cryptography 1.2.3-1ubuntu0.2 amd64 Python library exposing cryptographic recipes and primitives (Python 3)
ii python3-cups 1.9.73-0ubuntu2 amd64 Python3 bindings for CUPS
ii python3-cupshelpers 1.5.7+20160212-0ubuntu2 all Python modules for printer configuration with CUPS
ii python3-dbus 1.2.0-3 amd64 simple interprocess messaging system (Python 3 interface)
ii python3-dbus.mainloop.qt 4.11.4+dfsg-1build4 amd64 D-Bus Support for PyQt4 with Python 3
ii python3-debian 0.1.27ubuntu2 all Python 3 modules to work with Debian-related data formats
ii python3-defer 1.0.6-2build1 all Small framework for asynchronous programming (Python 3)
ii python3-distupgrade 1:16.04.26 all manage release upgrades
ii python3-feedparser 5.1.3-3build1 all Universal Feed Parser for Python 3
ii python3-gdbm:amd64 3.5.1-1 amd64 GNU dbm database support for Python 3.x
ii python3-gi 3.20.0-0ubuntu1 amd64 Python 3 bindings for gobject-introspection libraries
ii python3-gi-cairo 3.20.0-0ubuntu1 amd64 Python 3 Cairo bindings for the GObject library
ii python3-guacamole 0.9.2-1 all framework for creating command line applications (Python 3)
ii python3-html5lib 0.999-4 all HTML parser/tokenizer based on the WHATWG HTML5 specification (Python 3)
ii python3-httplib2 0.9.1+dfsg-1 all comprehensive HTTP client library written for Python3
ii python3-idna 2.0-3 all Python IDNA2008 (RFC 5891) handling (Python 3)
ii python3-jinja2 2.8-1ubuntu0.1 all small but fast and easy to use stand-alone template engine
ii python3-jwt 1.3.0-1ubuntu0.1 all Python 3 implementation of JSON Web Token
ii python3-keyring 7.3-1ubuntu1 all store and access your passwords safely - Python 3 version of the package
ii python3-louis 2.6.4-2ubuntu0.4 all Python bindings for liblouis
ii python3-lxml 3.5.0-1ubuntu0.1 amd64 pythonic binding for the libxml2 and libxslt libraries
ii python3-mako 1.0.3+ds1-1ubuntu1 all fast and lightweight templating for the Python 3 platform
ii python3-markupsafe 0.23-2build2 amd64 HTML/XHTML/XML string library for Python 3
ii python3-minimal 3.5.1-3 amd64 minimal subset of the Python language (default python3 version)
ii python3-oauthlib 1.0.3-1 all generic, spec-compliant implementation of OAuth for Python3
ii python3-padme 1.1.1-2 all mostly transparent proxy class for Python 3
ii python3-pkg-resources 20.7.0-1 all Package Discovery and Resource Access using pkg_resources
ii python3-plainbox 0.25-1 all toolkit for software and hardware testing (python3 module)
ii python3-problem-report 2.20.1-0ubuntu2.19 all Python 3 library to handle problem reports
ii python3-pyasn1 0.1.9-1 all ASN.1 library for Python (Python 3 module)
ii python3-pyatspi 2.18.0+dfsg-3 all Assistive Technology Service Provider Interface - Python3 bindings
ii python3-pycurl 7.43.0-1ubuntu1 amd64 Python bindings to libcurl (Python 3)
ii python3-pyparsing 2.0.3+dfsg1-1ubuntu0.1 all Python parsing module, Python3 package
ii python3-pyqt4 4.11.4+dfsg-1build4 amd64 Python3 bindings for Qt4
ii python3-requests 2.9.1-3ubuntu0.1 all elegant and simple HTTP library for Python3, built for human beings
ii python3-secretstorage 2.1.3-1 all Python module for storing secrets - Python 3.x version
ii python3-sip 4.17+dfsg-1build1 amd64 Python 3/C++ bindings generator runtime library
ii python3-six 1.10.0-3 all Python 2 and 3 compatibility library (Python 3 interface)
ii python3-software-properties 0.96.20.8 all manage the repositories that you install software from
ii python3-speechd 0.8.3-1ubuntu3 all Python interface to Speech Dispatcher
ii python3-systemd 231-2build1 amd64 Python 3 bindings for systemd
ii python3-tk:amd64 3.6.5-3~16.04.york0.2 amd64 Tkinter - Writing Tk applications with Python 3.x
ii python3-uno 1:5.1.6~rc2-0ubuntu1~xenial8 amd64 Python-UNO bridge
ii python3-update-manager 1:16.04.15 all python 3.x module for update-manager
ii python3-urllib3 1.13.1-2ubuntu0.16.04.3 all HTTP library with thread-safe connection pooling for Python3
ii python3-xdg 0.25-4 all Python 3 library to access freedesktop.org standards
ii python3-xkit 0.5.0ubuntu2 all library for the manipulation of xorg.conf files (Python 3)
ii python3-xlsxwriter 0.7.3-1 all Python 3 module for creating Excel XLSX files
ii python3.5 3.5.2-2ubuntu0~16.04.5 amd64 Interactive high-level object-oriented language (version 3.5)
ii python3.5-minimal 3.5.2-2ubuntu0~16.04.5 amd64 Minimal subset of the Python language (version 3.5)
blego@blego-GA-78LMT-S2P:~$
Hors ligne
#3 Le 03/08/2019, à 10:25
- melixgaro
Re : [résolu]problème avec Python3
Salut,
Excuse-moi mais je n'ai pas compris quel était ton problème. Peux-tu reformuler ton besoin (ce que tu veux réparer ou ce que tu cherches à faire) stp ?
Linux depuis ~2007. Xubuntu seulement.
Hors ligne
#4 Le 03/08/2019, à 10:38
- xubu1957
Re : [résolu]problème avec Python3
Bonjour,
@melixgaro
C'est pour réinstaller python 3.6.
j'ai appliqué la commande indiquée ,mais la version installée est antérieure à celle qui était présente.
Comment l'actualiser?
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
#5 Le 03/08/2019, à 10:49
- melixgaro
Re : [résolu]problème avec Python3
Ok, merci. Étant donné que xenial n'est livré qu'avec python 3.5, ça n'est pas forcément une bonne idée d'installer 3.6 (ou 3.7). Je ne me risque pas moi-même à ce genre de manip' donc je ne pourrais peut-être pas aider ici.
Je vois toutefois que le PPA fournissant python3.6 est désactivé. Toutes les lignes de /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list sont commentées. Je dirais qu'il faudrait les décommenter, recharger la liste des paquets et normalement
apt show python3.6
devrait renvoyer quelque chose.
Mais si ce PPA est désactivé, c'est peut-être pour une bonne raison. Donc qui t'a fait faire ça et pourquoi ?
Dernière modification par melixgaro (Le 03/08/2019, à 10:49)
Linux depuis ~2007. Xubuntu seulement.
Hors ligne
#6 Le 03/08/2019, à 11:04
- blego
Re : [résolu]problème avec Python3
bonjour,
mon problème initial concernait mon imprimante multifonction.
Je ne pouvais plus scanner ni imprimer .HP device manager était inopérant .
J'ai ouvert un sujet HP device manager
Xbuntu 1957 m'a suggéré la commande suivante
sudo apt-get install python3.5-gdbm
ma réponse a été
blego@blego-GA-78LMT-S2P:~$ sudo apt-get install python3.5-gdbm
[sudo] Mot de passe de blego :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Le paquet python3.5-gdbm est un paquet virtuel fourni par :
python3-gdbm 3.5.1-1 [Pas de version candidate]
E: Le paquet « python3.5-gdbm » n'a pas de version susceptible d'être installée
blego@blego-GA-78LMT-S2P:~$
la discussion s'est poursuivie à propos de python3 .
Entre temps ,jai résolu le problème initial (HP manager) en réinstallant hplip.
Comme la discussion ne portait plus sur HP manager mais sur python3 ,j'ai préféré créer un nouveau sujet qui reprend la discussion entamée sur python3.
Apparemment il semble y avoir un problème avec python3 puisque j'ai eu ce retour
blego@blego-GA-78LMT-S2P:~$ sudo dpkg --configure python3
dpkg: erreur de traitement du paquet python3 (--configure) :
le paquet python3 est déjà installé et configuré
Des erreurs ont été rencontrées pendant l'exécution :
python3
blego@blego-GA-78LMT-S2P:~$
c'est le deuxème retour de ce sujet.#1
Le but actuel est de faire le ménage dans les différentes versions de python3 qui peuvent interagir.
J'espère avoir apporté une réponse à ta question.
Hors ligne
#7 Le 03/08/2019, à 11:06
- blego
Re : [résolu]problème avec Python3
j'ai vu qu'entre temps xbuntu est intervenu.mon baratin est devenu superflu
Hors ligne
#8 Le 03/08/2019, à 11:14
- melixgaro
Re : [résolu]problème avec Python3
Ok, donc tu ne cherches pas forcément à réinstaller python3.6, c'est ça ?
Que donnent ?
apt policy python3
apt policy python3.5
apt policy python3.6
Linux depuis ~2007. Xubuntu seulement.
Hors ligne
#9 Le 03/08/2019, à 11:21
- melixgaro
Re : [résolu]problème avec Python3
Donne quand même les retours demandés au n°8 mais je crois que ton message d'erreur… n'en est pas un.
J'ai le même retour sur une 19.04 à jour et saine :
$ sudo dpkg --configure python3
dpkg: error processing package python3 (--configure):
package python3 is already installed and configured
Errors were encountered while processing:
python3
Linux depuis ~2007. Xubuntu seulement.
Hors ligne
#10 Le 03/08/2019, à 11:22
- blego
Re : [résolu]problème avec Python3
Je vois toutefois que le PPA fournissant python3.6 est désactivé. Toutes les lignes de /etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list sont commentées. Je dirais qu'il faudrait les décommenter, recharger la liste des paquets et normalement
apt show python3.6
devrait renvoyer quelque chose.
Mais si ce PPA est désactivé, c'est peut-être pour une bonne raison. Donc qui t'a fait faire ça et pourquoi ?
Dernière modification par melixgaro (Aujourd'hui à 11:49)
Aie ça se corse ,car le problème d'imprimante s'est produit à la suite de modifications qui m'ont été suggérées pour un autre problème.
https://forum.ubuntu-fr.org/viewtopic.php?id=2042269 ubuntu lent au démarrage)
Je pense que c'est à partir de #64 de ce sujet que vous pouvez avoir une idée des modifications que j'ai pu apporter.
Hors ligne
#11 Le 03/08/2019, à 11:28
- blego
Re : [résolu]problème avec Python3
bonjour melixgaro
En effet ,je ne cherche pas à installer python3.6 mais à m'assurer que mon système n'est pas perturbé par une mauvaise installation de python.
voici les retour demandés
blego@blego-GA-78LMT-S2P:~$ apt policy python3
python3:
Installé : 3.5.1-3
Candidat : 3.5.1-3
Table de version :
*** 3.5.1-3 500
500 http://fr.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
100 /var/lib/dpkg/status
blego@blego-GA-78LMT-S2P:~$
blego@blego-GA-78LMT-S2P:~$ apt policy python3.5
python3.5:
Installé : 3.5.2-2ubuntu0~16.04.5
Candidat : 3.5.2-2ubuntu0~16.04.5
Table de version :
*** 3.5.2-2ubuntu0~16.04.5 500
500 http://fr.archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages
500 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
3.5.1-10 500
500 http://fr.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
blego@blego-GA-78LMT-S2P:~$
blego@blego-GA-78LMT-S2P:~$ apt policy python3.6
libpython3.6-stdlib:
Installé : (aucun)
Candidat : (aucun)
Table de version :
python3.6-tk:
Installé : (aucun)
Candidat : (aucun)
Table de version :
blego@blego-GA-78LMT-S2P:~$
Dernière modification par blego (Le 03/08/2019, à 11:29)
Hors ligne
#12 Le 03/08/2019, à 11:29
- Compte supprimé
Re : [résolu]problème avec Python3
Donne quand même les retours demandés au n°8 mais je crois que ton message d'erreur… n'en est pas un.
J'ai le même retour sur une 19.04 à jour et saine :
Bonjour,
+1
Il en est de même chez moi :
~ jt'écoute :sudo dpkg --configure python3
dpkg: erreur de traitement du paquet python3 (--configure) :
le paquet python3 est déjà installé et configuré
Des erreurs ont été rencontrées pendant l'exécution :
python3
~ jt'écoute :
Sinon pour avoir python3.6 sur xenial , le ppa de jonathonf-ubuntu-python-3_6-xenial fonctionne bien . Il ne pose chez moi aucun conflit de dépendance ...
Dernière modification par Compte supprimé (Le 03/08/2019, à 11:30)
#13 Le 03/08/2019, à 11:44
- Compte supprimé
Re : [résolu]problème avec Python3
Blego. Je te confirme que ton retour du 11 correspond à ce qui se doit. Tout va bien !
Dernière modification par Compte supprimé (Le 03/08/2019, à 11:44)
#14 Le 03/08/2019, à 11:52
- melixgaro
Re : [résolu]problème avec Python3
Merci pseudofab d'avoir regardé de ton côté. Donc je pense que tu peux passer le sujet en Résolu (bien qu'il n'y ait rien à résoudre )
Linux depuis ~2007. Xubuntu seulement.
Hors ligne
#15 Le 03/08/2019, à 18:15
- blego
Re : [résolu]problème avec Python3
Merci pour vos avis
Je passe en résolu
Hors ligne