#1 Le 01/03/2021, à 12:38
- Pestiolade
[Contourné] Le terminal ne s'ouvre plus
Bonjour
Je suis relativement débutant avec Ubuntu (20.4). Depuis quelques jours mon terminal gnome ne s'ouvre plus. J'ai consulté quelques discussions sur ce forum à propos de problèmes comparables, et j'en suis arrivé à la conclusion qu'il y a un truc qui cloche avec les différentes version de Python installées.
J'ai installé le terminal Xfce avec succès, ce qui me permet d'avoir quand même la possibilité d'utiliser la console. Quand je tape la commande <gnome-terminal>, j'obtiens ceci :
~$ gnome-terminal
Traceback (most recent call last):
File "/usr/bin/gnome-terminal", line 9, in <module>
from gi.repository import GLib, Gio
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "/usr/lib/python3/dist-packages/gi/importer.py", line 146, in load_module
dynamic_module = load_overrides(introspection_module)
File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 118, in load_overrides
override_mod = importlib.import_module(override_package_name)
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 37, in <module>
from gi import _option as option
File "/usr/lib/python3/dist-packages/gi/_option.py", line 31, in <module>
import optparse
File "/usr/lib/python3.8/optparse.py", line 422, in <module>
_builtin_cvt = { "int" : (_parse_int, _("integer")),
File "/usr/lib/python3.8/gettext.py", line 751, in gettext
return dgettext(_current_domain, message)
File "/usr/lib/python3.8/gettext.py", line 677, in dgettext
t = translation(domain, _localedirs.get(domain, None))
File "/usr/lib/python3.8/gettext.py", line 613, in translation
t = _translations.setdefault(key, class_(fp))
File "/usr/lib/python3.8/gettext.py", line 261, in __init__
self._parse(fp)
File "/usr/lib/python3.8/gettext.py", line 456, in _parse
catalog[str(msg, charset)] = str(tmsg, charset)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 31: ordinal not in range(128)
Dans /usr/bin/, j'ai un lien python2 qui pointe vers python2.7, et un lien python3 qui pointe vers python3.8. Par contre dans /usr/lib/ j'ai 4 dossiers : python2.7, python3, python3.8 et python3.9. Je sens bien que quelque chose ne va pas, mais c'est ici que ma compétence s'arrête. Merci de votre aide !
ps. Pendant que j'y suis, j'ai aussi une petite icône 'sens interdit' en haut à droite, et je n'ai plus accès à l'interface graphique de gestion des mises à jours... Je suppose que tout ça est lié.
Dernière modification par Pestiolade (Le 03/03/2021, à 21:57)
Hors ligne
#2 Le 01/03/2021, à 12:41
- xubu1957
Re : [Contourné] Le terminal ne s'ouvre plus
Bonjour,
Comme demandé dans le premier message du tutoriel Retour utilisable de commande
Pour ajouter toi-même les balises code à ton précédent message #1 : Merci
Cliquer sur le lien « Modifier » en bas à droite du message
Sélectionner le texte
Cliquer sur le <> de l'éditeur de message
_ _ _
Peux- tu fournir :
df -Th
?
Dernière modification par xubu1957 (Le 01/03/2021, à 12:58)
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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
En ligne
#3 Le 01/03/2021, à 12:46
- Pestiolade
Re : [Contourné] Le terminal ne s'ouvre plus
Résultat de df -Th :
Sys. de fichiers Type Taille Utilisé Dispo Uti% Monté sur
udev devtmpfs 16G 0 16G 0% /dev
tmpfs tmpfs 3,2G 2,7M 3,1G 1% /run
/dev/nvme0n1p2 ext4 468G 17G 428G 4% /
tmpfs tmpfs 16G 948K 16G 1% /dev/shm
tmpfs tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/loop0 squashfs 56M 56M 0 100% /snap/core18/1988
/dev/loop1 squashfs 163M 163M 0 100% /snap/gnome-3-28-1804/145
/dev/loop2 squashfs 65M 65M 0 100% /snap/gtk-common-themes/1514
/dev/loop3 squashfs 63M 63M 0 100% /snap/gtk-common-themes/1506
/dev/loop4 squashfs 135M 135M 0 100% /snap/skype/164
/dev/nvme0n1p1 vfat 511M 58M 454M 12% /boot/efi
/dev/loop5 squashfs 55M 55M 0 100% /snap/core18/1880
/dev/loop6 squashfs 256M 256M 0 100% /snap/gnome-3-34-1804/36
/dev/loop7 squashfs 32M 32M 0 100% /snap/snapd/11036
/dev/loop8 squashfs 219M 219M 0 100% /snap/gnome-3-34-1804/66
/dev/loop9 squashfs 50M 50M 0 100% /snap/snap-store/467
/dev/loop10 squashfs 240M 240M 0 100% /snap/zoom-client/134
/dev/loop11 squashfs 52M 52M 0 100% /snap/snap-store/518
/dev/loop12 squashfs 30M 30M 0 100% /snap/snapd/8542
tmpfs tmpfs 3,2G 48K 3,2G 1% /run/user/1000
/dev/sda1 vfat 29G 25G 3,7G 88% /media/guillaume/CLE_32
/dev/sr0 iso9660 2,6G 2,6G 0 100% /media/guillaume/Ubuntu 20.04.1 LTS amd64
Hors ligne
#4 Le 01/03/2021, à 12:57
- xubu1957
Re : [Contourné] Le terminal ne s'ouvre plus
Fournis les noyaux présents :
echo; dpkg -l | awk '!/^rc/ && / linux-(c|g|h|i|lo|m|si|t)/{print $1,$2,$3,$4 | "sort -k3V | column -t"}' ; echo -e "\nNoyau courant : $(uname -mr)"
Astuce pour copier / coller sans erreur :
triple clic gauche pour sélectionner et copier une ligne entière
clic molette pour coller dans le terminal
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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
En ligne
#5 Le 01/03/2021, à 13:41
- Pestiolade
Re : [Contourné] Le terminal ne s'ouvre plus
~$ echo; dpkg -l | awk '!/^rc/ && / linux-(c|g|h|i|lo|m|si|t)/{print $1,$2,$3,$4 | "sort -k3V | column -t"}' ; echo -e "\nNoyau courant : $(uname -mr)"
ii linux-headers-5.4.0-42 5.4.0-42.46 all
ii linux-headers-5.4.0-42-generic 5.4.0-42.46 amd64
ii linux-image-5.4.0-42-generic 5.4.0-42.46 amd64
ii linux-modules-5.4.0-42-generic 5.4.0-42.46 amd64
ii linux-modules-extra-5.4.0-42-generic 5.4.0-42.46 amd64
ii linux-hwe-5.8-headers-5.8.0-43 5.8.0-43.49~20.04.1 all
ii linux-headers-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-image-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-modules-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-modules-extra-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-hwe-5.8-headers-5.8.0-44 5.8.0-44.50~20.04.1 all
ii linux-headers-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-image-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-modules-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-modules-extra-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-generic-hwe-20.04 5.8.0.44.50~20.04.30 amd64
ii linux-headers-generic-hwe-20.04 5.8.0.44.50~20.04.30 amd64
ii linux-image-generic-hwe-20.04 5.8.0.44.50~20.04.30 amd64
Hors ligne
#6 Le 01/03/2021, à 13:48
- xubu1957
Re : [Contourné] Le terminal ne s'ouvre plus
Montre :
sudo apt update
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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
En ligne
#7 Le 01/03/2021, à 15:10
- Pestiolade
Re : [Contourné] Le terminal ne s'ouvre plus
~$ sudo apt update
Atteint :1 http://fr.archive.ubuntu.com/ubuntu focal InRelease
Réception de :2 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Réception de :3 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Réception de :4 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [24,3 kB]
Réception de :5 http://fr.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Réception de :6 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [58,3 kB]
Réception de :7 http://fr.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [433 kB]
Réception de :8 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [840 kB]
Réception de :9 http://fr.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [264 kB]
Réception de :10 http://fr.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [555 kB]
Réception de :11 http://fr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [746 kB]
Réception de :12 http://fr.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [302 kB]
Réception de :13 http://fr.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2468 B]
Réception de :14 http://fr.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1768 B]
3551 ko réceptionnés en 18s (199 ko/s)
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
3 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
~$ apt list --upgradable
En train de lister... Fait
bind9-dnsutils/focal-updates 1:9.16.1-0ubuntu2.7 amd64 [pouvant être mis à jour depuis : 1:9.16.1-0ubuntu2.6]
bind9-host/focal-updates 1:9.16.1-0ubuntu2.7 amd64 [pouvant être mis à jour depuis : 1:9.16.1-0ubuntu2.6]
bind9-libs/focal-updates 1:9.16.1-0ubuntu2.7 amd64 [pouvant être mis à jour depuis : 1:9.16.1-0ubuntu2.6]
Hors ligne
#8 Le 01/03/2021, à 15:12
- xubu1957
Re : [Contourné] Le terminal ne s'ouvre plus
Montre d'éventuels paquets cassés :
dpkg -l | grep -v ^ii
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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
En ligne
#9 Le 01/03/2021, à 15:34
- Pestiolade
Re : [Contourné] Le terminal ne s'ouvre plus
<~$ dpkg -l | grep -v ^ii
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Architecture Description
+++-==========================================-=====================================-============-======================================================================================================
rc language-pack-en-base 1:20.04+20210121 all translations for language English
rc language-pack-gnome-en-base 1:20.04+20210121 all GNOME translations for language English
rc language-pack-gnome-xh-base 1:17.10+20171012 all GNOME translations for language Xhosa
rc language-pack-xh-base 1:17.10+20171012 all translations for language Xhosa
rc libreoffice-l10n-xh 1:6.4.6-0ubuntu0.20.04.1 all office productivity suite -- Xhosa language package
iF pdfarranger 1.4.2-1 all merge, split and re-arrange pages from PDF documents
iF python3-pikepdf 1.10.3+dfsg-1 amd64 Python library to read and write PDFs with QPDF
Les deux derniers résultent d'une installation ratée de pdfarranger (qui apparaît dans la liste des programmes installés mais ne se lance pas...)
Le pack de langue Xhosa est bizarre ici : j'ai effectivement fait des bidouilles pour tester des claviers alternatifs, mais rien de spécial avec le Xhosa... (enfin, je l'ai peut-être testé, mais comme d'autres)
Hors ligne
#10 Le 01/03/2021, à 15:36
- xubu1957
Re : [Contourné] Le terminal ne s'ouvre plus
Je ne sais pas aider pour python.
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] 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
En ligne
#11 Le 01/03/2021, à 15:39
- Pestiolade
Re : [Contourné] Le terminal ne s'ouvre plus
Merci en tous cas.
Hors ligne
#12 Le 01/03/2021, à 18:39
- geole
Re : [Contourné] Le terminal ne s'ouvre plus
Bonjour
Fais la commande
sudo apt upgrade
Elle va certainement se planter en te fournissant la commande à faire (en oubliant sudo devant ) pour tenter de débloquer
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#13 Le 01/03/2021, à 19:06
- Pestiolade
Re : [Contourné] Le terminal ne s'ouvre plus
Merci, mais je l'ai fait plein de fois, et rien ne change (voir plus haut)
Hors ligne
#14 Le 01/03/2021, à 19:58
- geole
Re : [Contourné] Le terminal ne s'ouvre plus
Alors donne simplement le retour de
sudo apt upgrade
afin qu'on puisse savoir la réponse
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#15 Le 01/03/2021, à 21:08
- nicobzz
Re : [Contourné] Le terminal ne s'ouvre plus
as tu essayé d'installer ou de réinstaller python3.7 ?
C'est peut être là l'erreur
ATTENTION ne supprime pas python3.7, je l'ai fait une fois, avec toutes les dépendances, ça m'a retiré plein de packet et le système marchait plus vraiment.
tu dois pouvoir faire par contre
sudo apt install python3.7
ou
sudo apt install --reinstall python3.7
Vous confirmez?
Hors ligne
#16 Le 02/03/2021, à 09:20
- Pestiolade
Re : [Contourné] Le terminal ne s'ouvre plus
ça devient intéressant :
~$ sudo apt install python3.7
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet python3.7
Hors ligne
#17 Le 02/03/2021, à 12:36
- geole
Re : [Contourné] Le terminal ne s'ouvre plus
Bonjour
Le retour semble normal. Le paquet doit s'appeler autrement
Peux-tu donner ce retour
dpkg -l | grep python
Par exemple
sudo apt install --simulate python3.7
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet python3.7
E: Impossible de trouver de paquet correspondant à l'expression rationnelle « python3.7 »
dpkg -l | grep python
ii glade2script-python3 3.2.4~ppa23 all Glade interface engine for scripts (Python3 version)
ii libpython2-stdlib:amd64 2.7.17-2ubuntu4 amd64 interactive high-level object-oriented language (Python2)
ii libpython2.7-minimal:amd64 2.7.18-1~20.04 amd64 Minimal subset of the Python language (version 2.7)
ii libpython2.7-stdlib:amd64 2.7.18-1~20.04 amd64 Interactive high-level object-oriented language (standard library, version 2.7)
ii libpython3-stdlib:amd64 3.8.2-0ubuntu2 amd64 interactive high-level object-oriented language (default python3 version)
ii libpython3.8:amd64 3.8.5-1~20.04.2 amd64 Shared Python runtime library (version 3.8)
ii libpython3.8-minimal:amd64 3.8.5-1~20.04.2 amd64 Minimal subset of the Python language (version 3.8)
ii libpython3.8-stdlib:amd64 3.8.5-1~20.04.2 amd64 Interactive high-level object-oriented language (standard library, version 3.8)
ii python-apt-common 2.0.0ubuntu0.20.04.4 all Python interface to libapt-pkg (locales)
ii python-exif 2.3.1-1~20.04.sav0 all Transition package for python-exifread
ii python-exifread 2.3.1-1~20.04.sav0 all Python library to extract Exif data from TIFF and JPEG files
ii python-is-python2 2.7.17-4 all symlinks /usr/bin/python to the DEPRECATED python2
ii python-mutagen 1.44.0-1+20.04.sav0 all audio metadata editing library
ii python-olefile 0.46-2 all Python module to read/write MS OLE2 files
ii python-pil:amd64 6.2.2-0ubuntu1~20.04.sav0 amd64 Python Imaging Library (Pillow fork)
ii python-wxgtk3.0 3.0.2.0+dfsg-8build1 amd64 Python interface to the wxWidgets Cross-platform C++ GUI toolkit
ii python-wxversion 3.0.2.0+dfsg-8build1 all API for selecting the wxPython version to use
ii python2 2.7.17-2ubuntu4 amd64 interactive high-level object-oriented language (Python2 version)
ii python2-minimal 2.7.17-2ubuntu4 amd64 minimal subset of the Python2 language
ii python2.7 2.7.18-1~20.04 amd64 Interactive high-level object-oriented language (version 2.7)
ii python2.7-minimal 2.7.18-1~20.04 amd64 Minimal subset of the Python language (version 2.7)
ii python3 3.8.2-0ubuntu2 amd64 interactive high-level object-oriented language (default python3 version)
ii python3-apport 2.20.11-0ubuntu27.16 all Python 3 library for Apport crash report handling
ii python3-apt 2.0.0ubuntu0.20.04.4 amd64 Python 3 interface to libapt-pkg
ii python3-aptdaemon 1.1.1+bzr982-0ubuntu32.3 all Python 3 module for the server and client of aptdaemon
ii python3-aptdaemon.gtk3widgets 1.1.1+bzr982-0ubuntu32.3 all Python 3 GTK+ 3 widgets to run an aptdaemon client
ii python3-bcrypt 3.1.7-2ubuntu1 amd64 password hashing library for Python 3
ii python3-blinker 1.4+dfsg1-0.3ubuntu1 all fast, simple object-to-object and broadcast signaling library
ii python3-brlapi:amd64 6.0+dfsg-4ubuntu6 amd64 Braille display access via BRLTTY - Python3 bindings
ii python3-cairo:amd64 1.16.2-2ubuntu2 amd64 Python3 bindings for the Cairo vector graphics library
ii python3-certifi 2019.11.28-1 all root certificates for validating SSL certs and verifying TLS hosts (python3)
ii python3-cffi-backend 1.14.0-1build1 amd64 Foreign Function Interface for Python 3 calling C code - runtime
ii python3-chardet 3.0.4-4build1 all universal character encoding detector for Python3
ii python3-click 7.0-3 all Wrapper around optparse for command line utilities - Python 3.x
ii python3-colorama 0.4.3-1build1 all Cross-platform colored terminal text in Python - Python 3.x
ii python3-commandnotfound 20.04.4 all Python 3 bindings for command-not-found.
ii python3-cryptography 2.8-3ubuntu0.1 amd64 Python library exposing cryptographic recipes and primitives (Python 3)
ii python3-cups 1.9.73-3build1 amd64 Python3 bindings for CUPS
ii python3-cupshelpers 1.5.12-0ubuntu1.1 all Python utility modules around the CUPS printing system
ii python3-dateutil 2.7.3-3ubuntu1 all powerful extensions to the standard Python 3 datetime module
ii python3-dbus 1.2.16-1build1 amd64 simple interprocess messaging system (Python 3 interface)
ii python3-debconf 1.5.73 all interact with debconf from Python 3
ii python3-debian 0.1.36ubuntu1 all Python 3 modules to work with Debian-related data formats
ii python3-defer 1.0.6-2.1 all Small framework for asynchronous programming (Python 3)
ii python3-distro 1.4.0-1 all Linux OS platform information API
ii python3-distro-info 0.23ubuntu1 all information about distributions' releases (Python 3 module)
ii python3-distupgrade 1:20.04.30 all manage release upgrades
ii python3-entrypoints 0.3-2ubuntu1 all Discover and load entry points from installed packages (Python 3)
ii python3-fasteners 0.14.1-2 all provides useful locks - Python 3.x
ii python3-future 0.18.2-2 all Clean single-source support for Python 3 and 2 - Python 3.x
ii python3-gdbm:amd64 3.8.5-1~20.04.1 amd64 GNU dbm database support for Python 3.x
ii python3-gi 3.36.0-1 amd64 Python 3 bindings for gobject-introspection libraries
ii python3-gi-cairo 3.36.0-1 amd64 Python 3 Cairo bindings for the GObject library
ii python3-httplib2 0.14.0-1ubuntu1 all comprehensive HTTP client library written for Python3
ii python3-ibus-1.0 1.5.22-2ubuntu2.1 all Intelligent Input Bus - introspection overrides for Python (Python 3)
ii python3-idna 2.8-1 all Python IDNA2008 (RFC 5891) handling (Python 3)
ii python3-jwt 1.7.1-2ubuntu2 all Python 3 implementation of JSON Web Token
ii python3-keyring 18.0.1-2ubuntu1 all store and access your passwords safely - Python 3 version of the package
ii python3-launchpadlib 1.10.13-1 all Launchpad web services client library (Python 3)
ii python3-lazr.restfulclient 0.14.2-2build1 all client for lazr.restful-based web services (Python 3)
ii python3-lazr.uri 1.0.3-4build1 all library for parsing, manipulating, and generating URIs
ii python3-lib2to3 3.8.5-1~20.04.1 all Interactive high-level object-oriented language (lib2to3)
ii python3-lockfile 1:0.12.2-2ubuntu2 all file locking library for Python — Python 3 library
ii python3-louis 3.12.0-3 all Python bindings for liblouis
ii python3-macaroonbakery 1.3.1-1 all Higher-level macaroon operations for Python 3
ii python3-mako 1.1.0+ds1-1ubuntu2 all fast and lightweight templating for the Python 3 platform
ii python3-markupsafe 1.1.0-1build2 amd64 HTML/XHTML/XML string library for Python 3
ii python3-minimal 3.8.2-0ubuntu2 amd64 minimal subset of the Python language (default python3 version)
ii python3-monotonic 1.5-0ubuntu2 all implementation of time.monotonic() - Python 3.x
ii python3-nacl 1.3.0-5 amd64 Python bindings to libsodium (Python 3)
ii python3-netifaces 0.10.4-1ubuntu4 amd64 portable network interface information - Python 3.x
ii python3-oauthlib 3.1.0-1ubuntu2 all generic, spec-compliant implementation of OAuth for Python3
ii python3-olefile 0.46-2 all Python module to read/write MS OLE2 files
ii python3-paramiko 2.6.0-2 all Make ssh v2 connections (Python 3)
ii python3-pexpect 4.6.0-1build1 all Python 3 module for automating interactive applications
ii python3-pil:amd64 7.0.0-4ubuntu0.2 amd64 Python Imaging Library (Python3)
ii python3-pkg-resources 45.2.0-1 all Package Discovery and Resource Access using pkg_resources
ii python3-problem-report 2.20.11-0ubuntu27.16 all Python 3 library to handle problem reports
ii python3-protobuf 3.6.1.3-2ubuntu5 amd64 Python 3 bindings for protocol buffers
ii python3-ptyprocess 0.6.0-1ubuntu1 all Run a subprocess in a pseudo terminal from Python 3
ii python3-pyatspi 2.36.0-1 all Assistive Technology Service Provider Interface - Python3 bindings
ii python3-pymacaroons 0.13.0-3 all Macaroon library for Python 3
ii python3-pyqt5 5.14.1+dfsg-3build1 amd64 Python 3 bindings for Qt5
ii python3-pyxattr 0.6.1-2 amd64 module for manipulating filesystem extended attributes (Python3)
ii python3-renderpm:amd64 3.5.34-1ubuntu1 amd64 python low level render interface
ii python3-reportlab 3.5.34-1ubuntu1 all ReportLab library to create PDF documents using Python3
ii python3-reportlab-accel:amd64 3.5.34-1ubuntu1 amd64 C coded extension accelerator for the ReportLab Toolkit
ii python3-requests 2.22.0-2ubuntu1 all elegant and simple HTTP library for Python3, built for human beings
ii python3-requests-unixsocket 0.2.0-2 all Use requests to talk HTTP via a UNIX domain socket - Python 3.x
ii python3-rfc3339 1.1-2 all parser and generator of RFC 3339-compliant timestamps (Python 3)
ii python3-secretstorage 2.3.1-2ubuntu1 all Python module for storing secrets - Python 3.x version
ii python3-simplejson 3.16.0-2ubuntu2 amd64 simple, fast, extensible JSON encoder/decoder for Python 3.x
ii python3-sip 4.19.21+dfsg-1build1 amd64 Python 3/C++ bindings generator runtime library
ii python3-six 1.14.0-2 all Python 2 and 3 compatibility library (Python 3 interface)
ii python3-software-properties 0.98.9.4 all manage the repositories that you install software from
ii python3-speechd 0.9.1-4 all Python interface to Speech Dispatcher
ii python3-systemd 234-3build2 amd64 Python 3 bindings for systemd
ii python3-talloc:amd64 2.3.0-3ubuntu1 amd64 hierarchical pool based memory allocator - Python3 bindings
ii python3-tz 2019.3-1 all Python3 version of the Olson timezone database
ii python3-uno 1:6.4.6-0ubuntu0.20.04.1 amd64 Python-UNO bridge
ii python3-update-manager 1:20.04.10.5 all python 3.x module for update-manager
ii python3-urllib3 1.25.8-2ubuntu0.1 all HTTP library with thread-safe connection pooling for Python3
ii python3-wadllib 1.3.3-3build1 all Python 3 library for navigating WADL files
ii python3-xdg 0.26-1ubuntu1 all Python 3 library to access freedesktop.org standards
ii python3-xkit 0.5.0ubuntu4 all library for the manipulation of xorg.conf files (Python 3)
ii python3-yaml 5.3.1-1 amd64 YAML parser and emitter for Python3
ii python3.8 3.8.5-1~20.04.2 amd64 Interactive high-level object-oriented language (version 3.8)
ii python3.8-minimal 3.8.5-1~20.04.2 amd64 Minimal subset of the Python language (version 3.8)
apt install --simulate python3.8
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
python3.8 est déjà la version la plus récente (3.8.5-1~20.04.2).
python3.8 passé en « installé manuellement ».
0 mis à jour, 0 nouvellement installés, 0 à enlever et 3 non mis à jour.
Dernière modification par geole (Le 02/03/2021, à 12:42)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#18 Le 02/03/2021, à 13:08
- MicP
Re : [Contourné] Le terminal ne s'ouvre plus
Bonjour
Le retour de commandes que tu as donné dans ton message #5 n'est pas complet,
il y manque au moins le retour de la dernière commande :
echo -e "\nNoyau courant : $(uname -mr)"
=======
… E: Impossible de trouver le paquet python3.7 …
Je suis très étonné que la commande apt ne trouve pas le paquetage python3.7
mais c'est sans doute parce qu'il faudrait spécifier le nom complet du paquetage :
Sur ma machine :
michel@xubu:~$ apt-cache policy python[0-9]
python2:
Installé : (aucun)
Candidat : 2.7.17-2ubuntu4
Table de version :
2.7.17-2ubuntu4 500
500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
python3:
Installé : 3.8.2-0ubuntu2
Candidat : 3.8.2-0ubuntu2
Table de version :
*** 3.8.2-0ubuntu2 500
500 http://fr.archive.ubuntu.com/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
michel@xubu:~$
Donne le retour complet** de la ligne de commandes suivante :
grep -Evn '^#|^$' /etc/apt/sources.list{,.d/*.list}
=======
**
Un retour complet est celui dans lequel sont incluses toutes les lignes :
depuis celle contenant le prompt et la ligne de commande(s)
avec celle(s) du retour complet de la ligne de commande(s)
jusqu'à celle contenant le prompt de retour incluse.
Comme par exemple celui ci-dessous, qui a été lancée sur ma machine :
michel@xubu:~$ grep -Evn '^#|^$' /etc/apt/sources.list{,.d/*.list}
/etc/apt/sources.list:5:deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list:10:deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list:16:deb http://fr.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list:18:deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list:26:deb http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list:28:deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list:36:deb http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list:46:deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list:48:deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list:50:deb http://security.ubuntu.com/ubuntu focal-security multiverse
grep: /etc/apt/sources.list.d/*.list: Aucun fichier ou dossier de ce type
michel@xubu:~$
et celui là :
michel@xubu:~$ dpkg -l | grep python
ii libpython3-stdlib:amd64 3.8.2-0ubuntu2 amd64 interactive high-level object-oriented language (default python3 version)
ii libpython3.8:amd64 3.8.5-1~20.04.2 amd64 Shared Python runtime library (version 3.8)
ii libpython3.8-minimal:amd64 3.8.5-1~20.04.2 amd64 Minimal subset of the Python language (version 3.8)
ii libpython3.8-stdlib:amd64 3.8.5-1~20.04.2 amd64 Interactive high-level object-oriented language (standard library, version 3.8)
ii python-apt-common 2.0.0ubuntu0.20.04.4 all Python interface to libapt-pkg (locales)
ii python3 3.8.2-0ubuntu2 amd64 interactive high-level object-oriented language (default python3 version)
ii python3-apport 2.20.11-0ubuntu27.16 all Python 3 library for Apport crash report handling
ii python3-apt 2.0.0ubuntu0.20.04.4 amd64 Python 3 interface to libapt-pkg
ii python3-aptdaemon 1.1.1+bzr982-0ubuntu32.3 all Python 3 module for the server and client of aptdaemon
ii python3-aptdaemon.gtk3widgets 1.1.1+bzr982-0ubuntu32.3 all Python 3 GTK+ 3 widgets to run an aptdaemon client
ii python3-blinker 1.4+dfsg1-0.3ubuntu1 all fast, simple object-to-object and broadcast signaling library
ii python3-cairo:amd64 1.16.2-2ubuntu2 amd64 Python3 bindings for the Cairo vector graphics library
ii python3-certifi 2019.11.28-1 all root certificates for validating SSL certs and verifying TLS hosts (python3)
ii python3-cffi-backend 1.14.0-1build1 amd64 Foreign Function Interface for Python 3 calling C code - runtime
ii python3-chardet 3.0.4-4build1 all universal character encoding detector for Python3
ii python3-click 7.0-3 all Wrapper around optparse for command line utilities - Python 3.x
ii python3-colorama 0.4.3-1build1 all Cross-platform colored terminal text in Python - Python 3.x
ii python3-commandnotfound 20.04.4 all Python 3 bindings for command-not-found.
ii python3-cryptography 2.8-3ubuntu0.1 amd64 Python library exposing cryptographic recipes and primitives (Python 3)
ii python3-cups 1.9.73-3build1 amd64 Python3 bindings for CUPS
ii python3-cupshelpers 1.5.12-0ubuntu1.1 all Python utility modules around the CUPS printing system
ii python3-dateutil 2.7.3-3ubuntu1 all powerful extensions to the standard Python 3 datetime module
ii python3-dbus 1.2.16-1build1 amd64 simple interprocess messaging system (Python 3 interface)
ii python3-debconf 1.5.73 all interact with debconf from Python 3
ii python3-debian 0.1.36ubuntu1 all Python 3 modules to work with Debian-related data formats
ii python3-defer 1.0.6-2.1 all Small framework for asynchronous programming (Python 3)
ii python3-distro 1.4.0-1 all Linux OS platform information API
ii python3-distro-info 0.23ubuntu1 all information about distributions' releases (Python 3 module)
ii python3-distupgrade 1:20.04.30 all manage release upgrades
ii python3-distutils 3.8.5-1~20.04.1 all distutils package for Python 3.x
ii python3-entrypoints 0.3-2ubuntu1 all Discover and load entry points from installed packages (Python 3)
ii python3-gdbm:amd64 3.8.5-1~20.04.1 amd64 GNU dbm database support for Python 3.x
ii python3-gi 3.36.0-1 amd64 Python 3 bindings for gobject-introspection libraries
ii python3-gi-cairo 3.36.0-1 amd64 Python 3 Cairo bindings for the GObject library
ii python3-httplib2 0.14.0-1ubuntu1 all comprehensive HTTP client library written for Python3
ii python3-idna 2.8-1 all Python IDNA2008 (RFC 5891) handling (Python 3)
ii python3-jwt 1.7.1-2ubuntu2 all Python 3 implementation of JSON Web Token
ii python3-keyring 18.0.1-2ubuntu1 all store and access your passwords safely - Python 3 version of the package
ii python3-launchpadlib 1.10.13-1 all Launchpad web services client library (Python 3)
ii python3-lazr.restfulclient 0.14.2-2build1 all client for lazr.restful-based web services (Python 3)
ii python3-lazr.uri 1.0.3-4build1 all library for parsing, manipulating, and generating URIs
ii python3-lib2to3 3.8.5-1~20.04.1 all Interactive high-level object-oriented language (lib2to3)
ii python3-libvirt 6.1.0-1 amd64 libvirt Python 3 bindings
ii python3-libxml2:amd64 2.9.10+dfsg-5 amd64 Python3 bindings for the GNOME XML library
ii python3-minimal 3.8.2-0ubuntu2 amd64 minimal subset of the Python language (default python3 version)
ii python3-nacl 1.3.0-5 amd64 Python bindings to libsodium (Python 3)
ii python3-netifaces 0.10.4-1ubuntu4 amd64 portable network interface information - Python 3.x
ii python3-oauthlib 3.1.0-1ubuntu2 all generic, spec-compliant implementation of OAuth for Python3
ii python3-olefile 0.46-2 all Python module to read/write MS OLE2 files
ii python3-pexpect 4.6.0-1build1 all Python 3 module for automating interactive applications
ii python3-pil:amd64 7.0.0-4ubuntu0.2 amd64 Python Imaging Library (Python3)
ii python3-pkg-resources 45.2.0-1 all Package Discovery and Resource Access using pkg_resources
ii python3-problem-report 2.20.11-0ubuntu27.16 all Python 3 library to handle problem reports
ii python3-psutil 5.5.1-1ubuntu4 amd64 module providing convenience functions for managing processes (Python3)
ii python3-ptyprocess 0.6.0-1ubuntu1 all Run a subprocess in a pseudo terminal from Python 3
ii python3-pymacaroons 0.13.0-3 all Macaroon library for Python 3
ii python3-renderpm:amd64 3.5.34-1ubuntu1 amd64 python low level render interface
ii python3-reportlab 3.5.34-1ubuntu1 all ReportLab library to create PDF documents using Python3
ii python3-reportlab-accel:amd64 3.5.34-1ubuntu1 amd64 C coded extension accelerator for the ReportLab Toolkit
ii python3-requests 2.22.0-2ubuntu1 all elegant and simple HTTP library for Python3, built for human beings
ii python3-requests-unixsocket 0.2.0-2 all Use requests to talk HTTP via a UNIX domain socket - Python 3.x
ii python3-secretstorage 2.3.1-2ubuntu1 all Python module for storing secrets - Python 3.x version
ii python3-simplejson 3.16.0-2ubuntu2 amd64 simple, fast, extensible JSON encoder/decoder for Python 3.x
ii python3-six 1.14.0-2 all Python 2 and 3 compatibility library (Python 3 interface)
ii python3-software-properties 0.98.9.4 all manage the repositories that you install software from
ii python3-systemd 234-3build2 amd64 Python 3 bindings for systemd
ii python3-talloc:amd64 2.3.0-3ubuntu1 amd64 hierarchical pool based memory allocator - Python3 bindings
ii python3-uno 1:6.4.6-0ubuntu0.20.04.1 amd64 Python-UNO bridge
ii python3-update-manager 1:20.04.10.5 all python 3.x module for update-manager
ii python3-urllib3 1.25.8-2ubuntu0.1 all HTTP library with thread-safe connection pooling for Python3
ii python3-wadllib 1.3.3-3build1 all Python 3 library for navigating WADL files
ii python3-xcffib 0.8.1-0.8 amd64 This package is a Python binding for XCB (Python 3)
ii python3-xkit 0.5.0ubuntu4 all library for the manipulation of xorg.conf files (Python 3)
ii python3-yaml 5.3.1-1 amd64 YAML parser and emitter for Python3
ii python3.8 3.8.5-1~20.04.2 amd64 Interactive high-level object-oriented language (version 3.8)
ii python3.8-minimal 3.8.5-1~20.04.2 amd64 Minimal subset of the Python language (version 3.8)
michel@xubu:~$
Dernière modification par MicP (Le 02/03/2021, à 14:45)
Hors ligne
#19 Le 02/03/2021, à 14:41
- Pestiolade
Re : [Contourné] Le terminal ne s'ouvre plus
guillaume@guillaume-Precision-7550:~$ grep -Evn '^#|^$' /etc/apt/sources.list{,.d/*.list}
/etc/apt/sources.list:5:deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
/etc/apt/sources.list:10:deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
/etc/apt/sources.list:16:deb http://fr.archive.ubuntu.com/ubuntu/ focal universe
/etc/apt/sources.list:18:deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe
/etc/apt/sources.list:26:deb http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
/etc/apt/sources.list:28:deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
/etc/apt/sources.list:36:deb http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
/etc/apt/sources.list:46:deb http://security.ubuntu.com/ubuntu focal-security main restricted
/etc/apt/sources.list:48:deb http://security.ubuntu.com/ubuntu focal-security universe
/etc/apt/sources.list:50:deb http://security.ubuntu.com/ubuntu focal-security multiverse
grep: /etc/apt/sources.list.d/*.list: Aucun fichier ou dossier de ce type
guillaume@guillaume-Precision-7550:~$
Hors ligne
#20 Le 02/03/2021, à 14:55
- Pestiolade
Re : [Contourné] Le terminal ne s'ouvre plus
Désolé, voici le retour complet (cf mon message #5)
guillaume@guillaume-Precision-7550:~$ ~$ echo; dpkg -l | awk '!/^rc/ && / linux-(c|g|h|i|lo|m|si|t)/{print $1,$2,$3,$4 | "sort -k3V | column -t"}' ; echo -e "\nNoyau courant : $(uname -mr)"
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 25, in <module>
from optparse import OptionParser
File "/usr/lib/python3.8/optparse.py", line 422, in <module>
_builtin_cvt = { "int" : (_parse_int, _("integer")),
File "/usr/lib/python3.8/gettext.py", line 751, in gettext
return dgettext(_current_domain, message)
File "/usr/lib/python3.8/gettext.py", line 677, in dgettext
t = translation(domain, _localedirs.get(domain, None))
File "/usr/lib/python3.8/gettext.py", line 613, in translation
t = _translations.setdefault(key, class_(fp))
File "/usr/lib/python3.8/gettext.py", line 261, in __init__
self._parse(fp)
File "/usr/lib/python3.8/gettext.py", line 456, in _parse
catalog[str(msg, charset)] = str(tmsg, charset)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 31: ordinal not in range(128)
ii linux-headers-5.4.0-42 5.4.0-42.46 all
ii linux-headers-5.4.0-42-generic 5.4.0-42.46 amd64
ii linux-image-5.4.0-42-generic 5.4.0-42.46 amd64
ii linux-modules-5.4.0-42-generic 5.4.0-42.46 amd64
ii linux-modules-extra-5.4.0-42-generic 5.4.0-42.46 amd64
ii linux-hwe-5.8-headers-5.8.0-43 5.8.0-43.49~20.04.1 all
ii linux-headers-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-image-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-modules-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-modules-extra-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-hwe-5.8-headers-5.8.0-44 5.8.0-44.50~20.04.1 all
ii linux-headers-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-image-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-modules-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-modules-extra-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-generic-hwe-20.04 5.8.0.44.50~20.04.30 amd64
ii linux-headers-generic-hwe-20.04 5.8.0.44.50~20.04.30 amd64
ii linux-image-generic-hwe-20.04 5.8.0.44.50~20.04.30 amd64
Noyau courant : 5.8.0-44-generic x86_64
guillaume@guillaume-Precision-7550:~$
Hors ligne
#21 Le 02/03/2021, à 15:07
- MicP
Re : [Contourné] Le terminal ne s'ouvre plus
…Désolé, …
Y-a pas de quoi, ne t'en fais pas, beaucoup oublient de le faire, au début,
et tes derniers retours sont impeccablement complets.
Merci
Je n'ai pas, sur ma machine, un noyau aussi récent que celui qui est utilisé sur ta machine,
et pas assez de compétences en ce qui concerne python et la gestion des paquetages sur ubuntu.
Dernière modification par MicP (Le 02/03/2021, à 19:59)
Hors ligne
#22 Le 02/03/2021, à 16:29
- geole
Re : [Contourné] Le terminal ne s'ouvre plus
Voici ce que la commande proposée donne en version 20.04
a@b:~$ echo; dpkg -l | awk '!/^rc/ && / linux-(c|g|h|i|lo|m|si|t)/{print $1,$2,$3,$4 | "sort -k3V | column -t"}' ; echo -e "\nNoyau courant : $(uname -mr)"
ii linux-hwe-5.8-headers-5.8.0-43 5.8.0-43.49~20.04.1 all
ii linux-headers-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-image-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-modules-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-modules-extra-5.8.0-43-generic 5.8.0-43.49~20.04.1 amd64
ii linux-hwe-5.8-headers-5.8.0-44 5.8.0-44.50~20.04.1 all
ii linux-headers-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-image-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-modules-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-modules-extra-5.8.0-44-generic 5.8.0-44.50~20.04.1 amd64
ii linux-generic-hwe-20.04 5.8.0.44.50~20.04.30 amd64
ii linux-headers-generic-hwe-20.04 5.8.0.44.50~20.04.30 amd64
ii linux-image-generic-hwe-20.04 5.8.0.44.50~20.04.30 amd64
Noyau courant : 5.8.0-44-generic x86_64
a@b:~$
Il y a donc aussi 13 lignes qui semblent les même
Le problème semble donc porté sur la trace
La séquence qui finit en ligne 456 est
# Note: we unconditionally convert both msgids and msgstrs to
# Unicode using the character encoding specified in the charset
# parameter of the Content-Type header. The gettext documentation
# strongly encourages msgids to be us-ascii, but some applications
# require alternative encodings (e.g. Zope's ZCML and ZPT). For
# traditional gettext applications, the msgid conversion will
# cause no problems since us-ascii should always be a subset of
# the charset encoding. We may want to fall back to 8-bit msgids
# if the Unicode conversion fails.
charset = self._charset or 'ascii'
if b'\x00' in msg:
# Plural forms
msgid1, msgid2 = msg.split(b'\x00')
tmsg = tmsg.split(b'\x00')
msgid1 = str(msgid1, charset)
for i, x in enumerate(tmsg):
catalog[(msgid1, i)] = str(x, charset)
else:
catalog[str(msg, charset)] = str(tmsg, charset)
Si cela peut donner des idées, voici l'origine
$ head -25 /usr/lib/command-not-found
#!/usr/bin/python3
# (c) Zygmunt Krynicki 2005, 2006, 2007, 2008
# Licensed under GPL, see COPYING for the whole text
from __future__ import absolute_import, print_function
__version__ = "0.3"
BUG_REPORT_URL = "https://bugs.launchpad.net/command-not-found/+filebug"
try:
import sys
if sys.path and sys.path[0] == '/usr/lib':
# Avoid ImportError noise due to odd installation location.
sys.path.pop(0)
if sys.version < '3':
# We might end up being executed with Python 2 due to an old
# /etc/bash.bashrc.
import os
if "COMMAND_NOT_FOUND_FORCE_PYTHON2" not in os.environ:
os.execvp("/usr/bin/python3", [sys.argv[0]] + sys.argv)
import gettext
import locale
from optparse import OptionParser
a@b:~$
Dernière modification par geole (Le 02/03/2021, à 16:38)
Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit, utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248
Hors ligne
#23 Le 02/03/2021, à 16:43
- bruno
Re : [Contourné] Le terminal ne s'ouvre plus
Bonjour,
A priori ce n'est pas un problème avec Python mais avec un fichier de traduction.
Peux-tu essayer :
LANG=C; gnome-terminal
#24 Le 02/03/2021, à 16:47
- Watael
Re : [Contourné] Le terminal ne s'ouvre plus
je n'aurais pas mis de point-virgule, pour ne pas modifier tout l'environnement en cours, mais uniquement l'environnement de gnome-terminal.
Connected \o/
Welcome to sHell. · eval is evil.
Hors ligne
#25 Le 02/03/2021, à 16:51
- bruno
Re : [Contourné] Le terminal ne s'ouvre plus
Exact, donc la même sans le point-virgule