1 votes

Installation de Java depuis la console

J'ai essayé d'installer Java en suivant les instructions suivantes :

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer

Mais après sudo add-apt-repository ppa:webupd8team/java, j'obtiens une ERREUR :

Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 11, in 
from softwareproperties.SoftwareProperties import SoftwareProperties, shortcut_handler
ModuleNotFoundError: Aucun module nommé 'softwareproperties'

J'ai vérifié "ls -l /usr/bin/python*":

lrwxrwxrwx 1 root root        9  21 12:16 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root        9  21 12:16 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root  3546104  19 11:35 /usr/bin/python2.7
lrwxrwxrwx 1 root root       33  19 11:35 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config
lrwxrwxrwx 1 root root       16  10  2015 /usr/bin/python2-config -> python2.7-config
lrwxrwxrwx 1 root root        9   8 20:31 /usr/bin/python3 -> python3.6
-rwxr-xr-x 2 root root  4460336  17 21:23 /usr/bin/python3.5
lrwxrwxrwx 1 root root       33  17 21:23 /usr/bin/python3.5-config -> x86_64-linux-gnu-python3.5-config
-rwxr-xr-x 2 root root  4460336  17 21:23 /usr/bin/python3.5m
lrwxrwxrwx 1 root root       34  17 21:23 /usr/bin/python3.5m-config -> x86_64-linux-gnu-python3.5m-config
-rwxr-xr-x 2 root root 12504344   8 20:31 /usr/bin/python3.6
lrwxrwxrwx 1 root root       17   8 20:31 /usr/bin/python3.6-config -> python3.6m-config
-rwxr-xr-x 2 root root 12504344   8 20:31 /usr/bin/python3.6m
-rwxr-xr-x 1 root root     3091   8 20:31 /usr/bin/python3.6m-config
lrwxrwxrwx 1 root root       16   8 20:31 /usr/bin/python3-config -> python3.6-config
lrwxrwxrwx 1 root root       10  21 12:16 /usr/bin/python3m -> python3.5m
lrwxrwxrwx 1 root root       17  23  2016 /usr/bin/python3m-config -> python3.5m-config
lrwxrwxrwx 1 root root       16  10  2015 /usr/bin/python-config -> python2.7-config

Est-ce que quelqu'un a déjà rencontré ce problème ?

0voto

Ozgur Points 1

Avez-vous installé software-properties ?

Essayez :

apt-get install -y python-software-properties software-properties-common software-properties-gtk python3-software-properties software-properties-kde

SistemesEz.com

SystemesEZ est une communauté de sysadmins où vous pouvez résoudre vos problèmes et vos doutes. Vous pouvez consulter les questions des autres sysadmins, poser vos propres questions ou résoudre celles des autres.

Powered by:

X