Résolu le 15-10-22 bash: /usr/bin/python: Aucun fichier ou dossier de ce type

Postez ici toutes vos demandes d’assistance.
Répondre
Avatar du membre
serged
Messages : 837
Enregistré le : jeu. 16 juil. 2015 07:59
Localisation : Montrouge (France)

bash: /usr/bin/python: Aucun fichier ou dossier de ce type

Message par serged »

Depuis que je suis passé en LM21, quand, dans le terminal, je tape une commande inconnue, j'ai ce message sibyllin :

Code : Tout sélectionner

bash: /usr/bin/python: Aucun fichier ou dossier de ce type
Pas moyen de revenir à l'ancien message "commande inconnue" ou une invitation à installer le programme manquant ?
Modifié en dernier par serged le sam. 15 oct. 2022 09:23, modifié 1 fois.
LinuxMint Virginia Cinnamon et d'autres machines en MATE, XFCE... 20.x , 21.x ou 19.x
Tour : Asus F2A55 / AMD A8-5600K APU 3,6GHz / RAM 16Go / Nvidia GeForce GT610 / LM21.1 Cinnamon
Portable : LDLC Mercure MH : Celeron N3450 /RAM 4Go / Intel HD graphics 500 i915 / biboot Win 10 (sur SSD) - LM21.1 MATE (sur HDD)

Avatar du membre
arghlub
Administrateur du site
Messages : 10421
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: bash: /usr/bin/python: Aucun fichier ou dossier de ce type

Message par arghlub »

Salut,
T'es en “sudo” ?
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre en stand-by de l' April.org────────────────

Avatar du membre
arghlub
Administrateur du site
Messages : 10421
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: bash: /usr/bin/python: Aucun fichier ou dossier de ce type

Message par arghlub »

Code : Tout sélectionner

ls -l /usr/bin
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre en stand-by de l' April.org────────────────

Avatar du membre
tioker
modérateur
Messages : 990
Enregistré le : sam. 6 mai 2017 00:33
Localisation : Anjou...Feu !
Contact :

Re: bash: /usr/bin/python: Aucun fichier ou dossier de ce type

Message par tioker »

Bonjour,
À tout hasard, quelle est la valeur de ton path ?

Code : Tout sélectionner

echo $PATH
HP Victus 16: Mint 21.3 Cinnamon 6,0,4 + Windows 11 - Ryzen 5 5600H - NVIDIA GeForce GTX 1650 - Mem 16Go - SSD 512Go
pCloud Synchronisation en temps réel des 4 dossiers personnels

Avatar du membre
serged
Messages : 837
Enregistré le : jeu. 16 juil. 2015 07:59
Localisation : Montrouge (France)

Re: bash: /usr/bin/python: Aucun fichier ou dossier de ce type

Message par serged »

Que ce soit en "normal" ou en sudo...
Le $PATH est tout à fait banal :

Code : Tout sélectionner

echo $PATH
/home/serge/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
(il y a juste ~/bin en plus, mes scripts persos)

Trouvée la solution ici : https://bugs.python.org/issue40605
Il faut installer python-is-python3 :

Code : Tout sélectionner

sudo apt install python-is-python3
LinuxMint Virginia Cinnamon et d'autres machines en MATE, XFCE... 20.x , 21.x ou 19.x
Tour : Asus F2A55 / AMD A8-5600K APU 3,6GHz / RAM 16Go / Nvidia GeForce GT610 / LM21.1 Cinnamon
Portable : LDLC Mercure MH : Celeron N3450 /RAM 4Go / Intel HD graphics 500 i915 / biboot Win 10 (sur SSD) - LM21.1 MATE (sur HDD)

Répondre