Hello,
j'ai entré les commandes citées mais n'obtiens aucun résultat, donc à priori, aucun paquet n'est installé?
jean-paul@HP-UB:~$ sudo dpkg-query -W | grep onedrive
[sudo] Mot de passe de jean-paul :
jean-paul@HP-UB:~$ sudo apt-get purge onedrived onedrivesdk
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 onedrived
E: Impossible de trouver le paquet onedrivesdk
jean-paul@HP-UB:~$
voici le terminal complet d'hier, quand je n'avais posté que des extraits. S'il n'y a pas de paquets inutiles tant mieux mais du coup, les téléchargements listés vont dans un fichier temporaire?
jean-paul@HP-UB:~$ sudo apt-get install git
[sudo] Mot de passe de jean-paul :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
git est déjà la version la plus récente (1:2.17.1-1ubuntu0.4).
Le paquet suivant a été installé automatiquement et n'est plus nécessaire :
libnih-dbus1
Veuillez utiliser « sudo apt autoremove » pour le supprimer.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
jean-paul@HP-UB:~$ sudo apt autoremove
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets suivants seront ENLEVÉS :
libnih-dbus1
0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
Après cette opération, 55,3 ko d'espace disque seront libérés.
Souhaitez-vous continuer ? [O/n] o
(Lecture de la base de données... 194475 fichiers et répertoires déjà installés.)
Suppression de libnih-dbus1:amd64 (1.0.3-6ubuntu2) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.27-3ubuntu1) ...
jean-paul@HP-UB:~$ sudo apt-get install python-setuptools
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
python-pkg-resources
Paquets suggérés :
python-setuptools-doc
Les NOUVEAUX paquets suivants seront installés :
python-pkg-resources python-setuptools
0 mis à jour, 2 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 457 ko dans les archives.
Après cette opération, 1973 ko d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Réception de:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 python-pkg-resources all 39.0.1-2 [128 kB]
Réception de:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 python-setuptools all 39.0.1-2 [329 *][/*]kB]
457 ko réceptionnés en 1s (887 ko/s)
Sélection du paquet python-pkg-resources précédemment désélectionné.
(Lecture de la base de données... 194473 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../python-pkg-resources_39.0.1-2_all.deb ...
Dépaquetage de python-pkg-resources (39.0.1-2) ...
Sélection du paquet python-setuptools précédemment désélectionné.
Préparation du dépaquetage de .../python-setuptools_39.0.1-2_all.deb ...
Dépaquetage de python-setuptools (39.0.1-2) ...
Paramétrage de python-pkg-resources (39.0.1-2) ...
Paramétrage de python-setuptools (39.0.1-2) ...
jean-paul@HP-UB:~$ ^M wget -O- https://bootstrap.pypa.io/get-pip.py | sudo python3
: commande introuvable
jean-paul@HP-UB:~$
jean-paul@HP-UB:~$ wget -O- https://bootstrap.pypa.io/get-pip.py | sudo python3
--2018-12-27 13:39:12-- https://bootstrap.pypa.io/get-pip.py
Résolution de bootstrap.pypa.io (bootstrap.pypa.io)… 151.101.120.175, 2a04:4e42:1d::175
Connexion à bootstrap.pypa.io (bootstrap.pypa.io)|151.101.120.175|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 1661676 (1,6M) [text/x-python]
Enregistre : «STDOUT»
- 100%[===================>] 1,58M 1,76MB/s ds 0,9s
2018-12-27 13:39:14 (1,76 MB/s) — envoi vers sortie standard [1661676/1661676]
The directory '/home/jean-paul/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/jean-paul/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
Downloading https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 2.8MB/s
Collecting setuptools
Downloading https://files.pythonhosted.org/packages/37/06/754589caf971b0d2d48f151c2586f62902d93dc908e2fd9b9b9f6aa3c9dd/setuptools-40.6.3-py2.py3-none-any.whl (573kB)
100% |████████████████████████████████| 573kB 2.0MB/s
Collecting wheel
Downloading https://files.pythonhosted.org/packages/ff/47/1dfa4795e24fd6f93d5d58602dd716c3f101cfd5a77cd9acbe519b44a0a9/wheel-0.32.3-py2.py3-none-any.whl
launchpadlib 1.10.6 requires testresources, which is not installed.
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-18.1 setuptools-40.6.3 wheel-0.32.3
jean-paul@HP-UB:~$
jean-paul@HP-UB:~$ sudo pip3 install -U pip setuptools
The directory '/home/jean-paul/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/jean-paul/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already up-to-date: pip in /usr/local/lib/python3.6/dist-packages (18.1)
Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/dist-packages (40.6.3)
jean-paul@HP-UB:~$
jean-paul@HP-UB:~$ sudo apt-get install build-essential python3-dev libssl-dev inotify-tools python3-dbus
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
build-essential est déjà la version la plus récente (12.4ubuntu1).
build-essential passé en « installé manuellement ».
python3-dbus est déjà la version la plus récente (1.2.6-1).
python3-dbus passé en « installé manuellement ».
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation :
Les paquets suivants contiennent des dépendances non satisfaites :
libssl-dev : Dépend: libssl1.1 (= 1.1.0g-2ubuntu4) mais 1.1.0g-2ubuntu4.3 devra être installé
Recommande: libssl-doc mais ne sera pas installé
python3-dev : Dépend: python3 (= 3.6.5-3) mais 3.6.7-1~18.04 devra être installé
Dépend: libpython3-dev (= 3.6.5-3) mais ne sera pas installé
Dépend: python3.6-dev (>= 3.6.5-2~) mais ne sera pas installé
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».
jean-paul@HP-UB:~$ pip3 install --user git+https://github.com/xybu/onedrived-dev.git
Collecting git+https://github.com/xybu/onedrived-dev.git
Cloning https://github.com/xybu/onedrived-dev.git to /tmp/pip-req-build-1dkj4crt
Requirement already satisfied: setuptools>=30.0.0 in /usr/local/lib/python3.6/dist-packages (from onedrived==2.0.0) (40.6.3)
Collecting colorama>=0.3.7 (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl
Collecting click>=6.6 (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
100% |████████████████████████████████| 81kB 1.4MB/s
Collecting onedrivesdk (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/d9/73/32677f3ffc420522c9ebf92aa5741bd19e6844a907a15b491fcbe2221d9f/onedrivesdk-1.1.8.zip (203kB)
100% |████████████████████████████████| 204kB 1.3MB/s
Requirement already satisfied: keyring>=10.1 in /usr/lib/python3/dist-packages (from onedrived==2.0.0) (10.6.0)
Collecting send2trash (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/49/46/c3dc27481d1cc57b9385aff41c474ceb7714f7935b1247194adae45db714/Send2Trash-1.5.0-py3-none-any.whl
Collecting zgitignore (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/fc/15/85a0520545b0788e76768ae371dd5f9b6c7a71d5165cf31e2ac89b184080/zgitignore-0.8.2.tar.gz
Requirement already satisfied: requests>2.9.1 in /usr/lib/python3/dist-packages (from onedrived==2.0.0) (2.18.4)
Collecting tabulate>=0.7.7 (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/12/c2/11d6845db5edf1295bc08b2f488cf5937806586afe42936c3f34c097ebdc/tabulate-0.8.2.tar.gz (45kB)
100% |████████████████████████████████| 51kB 2.1MB/s
Collecting daemonocle>=1.0.1 (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/9a/0d/e7b411174ccff6b342a80283b3dc9728807372b6a27febc279dd0f9057f2/daemonocle-1.0.1.tar.gz
Collecting inotify_simple (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/55/80/4bbd33f6d6b305c509a90b37c1cf7255000344f513b36827ec2c17af5ad5/inotify_simple-1.1.8.tar.gz
Collecting bidict (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/b0/d8/f324b2a7a9fa098b800dcb4b34aa3f2df955caf9235f20d351ceed9e7c22/bidict-0.17.5-py3-none-any.whl (40kB)
100% |████████████████████████████████| 40kB 2.0MB/s
Collecting arrow (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/e0/86/4eb5228a43042e9a80fe8c84093a8a36f5db34a3767ebd5e1e7729864e7b/arrow-0.12.1.tar.gz (65kB)
100% |████████████████████████████████| 71kB 2.2MB/s
Collecting psutil (from onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/e3/58/0eae6e4466e5abf779d7e2b71fac7fba5f59e00ea36ddb3ed690419ccb0f/psutil-5.4.8.tar.gz (422kB)
100% |████████████████████████████████| 430kB 2.4MB/s
Requirement already satisfied: secretstorage in /usr/lib/python3/dist-packages (from keyring>=10.1->onedrived==2.0.0) (2.3.1)
Collecting python-dateutil (from arrow->onedrived==2.0.0)
Downloading https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl (225kB)
100% |████████████████████████████████| 235kB 2.5MB/s
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil->arrow->onedrived==2.0.0) (1.11.0)
Building wheels for collected packages: onedrived, onedrivesdk, zgitignore, tabulate, daemonocle, inotify-simple, arrow, psutil
Running setup.py bdist_wheel for onedrived ... done
Stored in directory: /tmp/pip-ephem-wheel-cache-881jpgf1/wheels/54/b1/ce/ef383e67531ea4175ac11b0a11a3a199f185235444e90e5de3
Running setup.py bdist_wheel for onedrivesdk ... done
Stored in directory: /home/jean-paul/.cache/pip/wheels/8f/0c/f0/fe6e0677e05a8bfbd6c2b8d2034db9bcdc03f365545a990fff
Running setup.py bdist_wheel for zgitignore ... done
Stored in directory: /home/jean-paul/.cache/pip/wheels/a5/1a/fd/e26bfab075aa381f38fbc319c454a7dce45500e64334d351f5
Running setup.py bdist_wheel for tabulate ... done
Stored in directory: /home/jean-paul/.cache/pip/wheels/2a/85/33/2f6da85d5f10614cbe5a625eab3b3aebfdf43e7b857f25f829
Running setup.py bdist_wheel for daemonocle ... done
Stored in directory: /home/jean-paul/.cache/pip/wheels/90/55/3f/57ec329c9912a90a262f15eeb9afb9f9349b8b8416285c1294
Running setup.py bdist_wheel for inotify-simple ... done
Stored in directory: /home/jean-paul/.cache/pip/wheels/11/5d/7e/f325d21ffec71263368df56a2af6ab3c802e0e869abd4b3c03
Running setup.py bdist_wheel for arrow ... done
St*][/*]ored in directory: /home/jean-paul/.cache/pip/wheels/a3/dd/b2/d3b8d22e8136164c2e2c36ed42392531957cdf9c717065b28b
Running setup.py bdist_wheel for psutil ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-e2yvvbrr/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-975aerx3 --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/psutil
copying psutil/_psposix.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_psaix.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_exceptions.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_psbsd.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_pssunos.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_pslinux.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_common.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_compat.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_pswindows.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_psosx.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/__init__.py -> build/lib.linux-x86_64-3.6/psutil
creating build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/__main__.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/__init__.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-3.6/psutil/tests
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/psutil
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=548 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o
psutil/_psutil_common.c:9:10: fatal error: Python.h: Aucun fichier ou dossier de ce type
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for psutil
Running setup.py clean for psutil
Successfully built onedrived onedrivesdk zgitignore tabulate daemonocle inotify-simple arrow
Failed to build psutil
Installing collected packages: colorama, click, onedrivesdk, send2trash, zgitignore, tabulate, psutil, daemonocle, inotify-simple, bidict, python-dateutil, arrow, onedrived
The script tabulate is installed in '/home/jean-paul/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py install for psutil ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-e2yvvbrr/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0uf5km9p/install-record.txt --single-version-externally-managed --compile --user --prefix=:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/psutil
copying psutil/_psposix.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_psaix.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_exceptions.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_psbsd.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_pssunos.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_pslinux.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_common.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_compat.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_pswindows.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/_psosx.py -> build/lib.linux-x86_64-3.6/psutil
copying psutil/__init__.py -> build/lib.linux-x86_64-3.6/psutil
creating build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/__main__.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/__init__.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.6/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-3.6/psutil/tests
running build_ext
building 'psutil._psutil_linux' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/psutil
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=548 -DPSUTIL_LINUX=1 -I/usr/include/python3.6m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.6/psutil/_psutil_common.o
psutil/_psutil_common.c:9:10: fatal error: Python.h: Aucun fichier ou dossier de ce type
#include <Python.h>
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-e2yvvbrr/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-0uf5km9p/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-e2yvvbrr/psutil/
jean-paul@HP-UB:~$ cd Téléchargements
jean-paul@HP-UB:~/Téléchargements$ unzip ngrok-stable-linux-amd64.zip
Archive: ngrok-stable-linux-amd64.zip
inflating: ngrok
jean-paul@HP-UB:~/Téléchargements$ sudo cp ngrok /usr/bin
jean-paul@HP-UB:~/Téléchargements$ onedrived-pref account add
onedrived-pref : commande introuvable
j'attends votre retour, et j'essaierai quand même la suggestion
https://packages.ubuntu.com/bionic/onedrive, on verra ce que ça donne chez moi?