#1 Le 22/05/2015, à 12:57
- tomsawyer1311
désinstaller Python3 après une "mauvaise" installation par compilation
Bonjour tout le monde
Ça fait un bail que je n'ai pas posté ici. Je vais essayer de détailler au mieux mon problème.
Je me suis décidé à apprendre à programmer en Python avec Openclassrooms.
Sans être un expert, je connais un peu Linux depuis près de 4 ans. J'utilise aptitude pour la gestion des paquets (je peux réutiliser apt-get si vous le souhaitez).
À la page de l'installation de Python sous Linux, l'auteur conseille d'installer Python 3. J'ai Python 2 par défaut sur Ubuntu 14.10. En soit, pas de problème, je vais installer Python 3. Bête et discipliné, je suis les instructions de l'auteur ici (sans me demander pourquoi il ne passe pas par un gestionnaire de paquets). L'installation se fait laborieusement (dépendances manquantes, méthode brutale, bref, c'est pas propre du tout). Ça fonctionne (enfin, je n'ai pas utilisé un millième des "capacités" de Python).
Je décide de désinstaller Python 3 pour le réinstaller via aptitude.
Je commence par le classique :
sudo aptitude remove python3
Je vois, donc, une liste de logiciels à supprimer longue comme le bras (j'y reviendrai plus bas, plus précisément).
Ayant installé par compilation (./configure, make, make install), je tente un
sudo make uninstall
dans le dossier de Python3 téléchargé (pas le dossier compressé évidemment ). Désinstallation impossible. Je lis en diagonale (merci ctrl + F) la doc pour désinstaller : que dalle !
Je reviens à ma tentative de désinstallation via aptitude. J'ai enregistré le "script" dans un fichier que voici :
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
The following packages will be REMOVED:
python3
0 packages upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
Need to get 0 B of archives. After unpacking 102 kB will be freed.
The following packages have unmet dependencies:
python3-pyatspi : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-pyparsing : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
friends-twitter : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-problem-report : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
unity-scope-audacious : Depends: python3 but it is not going to be installed.
python3-oauthlib : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
language-selector-common : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
rhythmbox-plugins : Depends: python3 (>= 3.4~) but it is not going to be installed.
Depends: python3 (< 3.5) but it is not going to be installed.
python3-plainbox : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
python3-markupsafe : Depends: python3 (>= 3.4~) but it is not going to be installed.
Depends: python3 (< 3.5) but it is not going to be installed.
update-manager-core : Depends: python3 but it is not going to be installed.
Depends: python3:any (>= 3.2~) which is a virtual package.
apturl : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
gnome-orca : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
friends-facebook : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
unity-scope-virtualbox : Depends: python3 but it is not going to be installed.
checkbox-ng : Depends: python3:any (>= 3.2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
python3-chardet : Depends: python3 but it is not going to be installed.
Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
foomatic-db-compressed-ppds : Depends: python3 but it is not going to be installed.
unity-scope-openclipart : Depends: python3 but it is not going to be installed.
unity-scope-yelp : Depends: python3 but it is not going to be installed.
printer-driver-foo2zjs-common : Depends: python3 but it is not going to be installed.
python3-gi-cairo : Depends: python3 (< 3.5) but it is not going to be installed.
Depends: python3 (>= 3.4~) but it is not going to be installed.
python3-pycurl : Depends: python3 (< 3.5) but it is not going to be installed.
Depends: python3 (>= 3.4~) but it is not going to be installed.
python3-brlapi : Depends: python3 (>= 3.4~) but it is not going to be installed.
Depends: python3 (< 3.5) but it is not going to be installed.
python3-update-manager : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
ubuntu-minimal : Depends: python3 but it is not going to be installed.
printer-driver-pxljr : Depends: python3 but it is not going to be installed.
ubuntu-drivers-common : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
python3-software-properties : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
openprinting-ppds : Depends: python3 but it is not going to be installed.
unity-scope-devhelp : Depends: python3 but it is not going to be installed.
unity-scope-gmusicbrowser : Depends: python3 but it is not going to be installed.
dh-python : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-oneconf : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-pkg-resources : Depends: python3:any (>= 3.4) which is a virtual package.
Depends: python3:any (< 3.5) which is a virtual package.
python3-commandnotfound : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
unity-scope-gdrive : Depends: python3 but it is not going to be installed.
unity-scope-guayadeque : Depends: python3 but it is not going to be installed.
unity-scope-chromiumbookmarks : Depends: python3 but it is not going to be installed.
friends-dispatcher : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
python3-requests : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
unity-scope-texdoc : Depends: python3 but it is not going to be installed.
printer-driver-postscript-hp : Depends: python3 but it is not going to be installed.
update-notifier-common : Depends: python3:any which is a virtual package.
apturl-common : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-cairo : Depends: python3 (>= 3.4~) but it is not going to be installed.
Depends: python3 (< 3.5) but it is not going to be installed.
python3-lxml : Depends: python3 (>= 3.4~) but it is not going to be installed.
Depends: python3 (< 3.5) but it is not going to be installed.
gnome-sudoku : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
language-selector-gnome : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
python3-defer : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-aptdaemon.gtk3widgets : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
usb-creator-common : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
lsb-release : Depends: python3 but it is not going to be installed.
Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-xkit : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
rhythmbox : Depends: python3 (< 3.5) but it is not going to be installed.
Depends: python3 (>= 3.4~) but it is not going to be installed.
python3-checkbox-ng : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-piston-mini-client : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
plainbox-provider-resource-generic : Depends: python3 (>= 3.2) but it is not going to be installed.
python3-uno : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-apt : Depends: python3 (>= 3.4~) but it is not going to be installed.
Depends: python3 (< 3.5) but it is not going to be installed.
python3-speechd : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
python3-aptdaemon.pkcompat : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
unity-scope-gourmet : Depends: python3 but it is not going to be installed.
python3-httplib2 : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
unity-scope-clementine : Depends: python3 but it is not going to be installed.
python3-urllib3 : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
unity-scope-calculator : Depends: python3 but it is not going to be installed.
aptdaemon : Depends: python3 but it is not going to be installed.
Depends: python3:any (>= 3.2~) which is a virtual package.
python3-distupgrade : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-gi : Depends: python3 (< 3.5) but it is not going to be installed.
Depends: python3 (>= 3.4~) but it is not going to be installed.
apport-gtk : Depends: python3 but it is not going to be installed.
apport : Depends: python3 but it is not going to be installed.
python3-crypto : Depends: python3 (< 3.5) but it is not going to be installed.
Depends: python3 (>= 3.4~) but it is not going to be installed.
gnome-menus : Depends: python3:any (>= 3.1~) which is a virtual package.
Depends: python3 but it is not going to be installed.
unity-scope-firefoxbookmarks : Depends: python3 but it is not going to be installed.
python3-aptdaemon : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-louis : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-gdbm : Depends: python3 (>= 3.4) but it is not going to be installed.
Depends: python3 (< 3.5) but it is not going to be installed.
python3-xdg : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
unity-scope-tomboy : Depends: python3 but it is not going to be installed.
usb-creator-gtk : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
python3-apport : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
apparmor : Depends: python3 but it is not going to be installed.
software-properties-common : Depends: python3 but it is not going to be installed.
Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-checkbox-support : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
plainbox-provider-checkbox : Depends: python3 but it is not going to be installed.
ufw : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
python3-mako : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
ubuntu-release-upgrader-core : Depends: python3:any (>= 3.2~) which is a virtual package.
Depends: python3 but it is not going to be installed.
unity-scope-zotero : Depends: python3 but it is not going to be installed.
update-manager : Depends: python3 but it is not going to be installed.
Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
unity-scope-colourlovers : Depends: python3 but it is not going to be installed.
python3-six : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
software-properties-gtk : Depends: python3 but it is not going to be installed.
Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
unity-scope-manpages : Depends: python3 but it is not going to be installed.
unattended-upgrades : Depends: python3 but it is not going to be installed.
unity-scope-musique : Depends: python3 but it is not going to be installed.
python3-dbus : Depends: python3 (>= 3.4~) but it is not going to be installed.
Depends: python3 (< 3.5) but it is not going to be installed.
onboard : Depends: python3 (>= 3.4~) but it is not going to be installed.
Depends: python3 (< 3.5) but it is not going to be installed.
printer-driver-ptouch : Depends: python3 but it is not going to be installed.
xdiagnose : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
python3-feedparser : Depends: python3:any (>= 3.3.2-2~) which is a virtual package.
Internal error: found 2 (choice -> promotion) mappings for a single choice.
Internal error: found 2 (choice -> promotion) mappings for a single choice.
Internal error: found 2 (choice -> promotion) mappings for a single choice.
Internal error: found 2 (choice -> promotion) mappings for a single choice.
The following actions will resolve these dependencies:
Remove the following packages:
1) apparmor
2) apport
3) apport-gtk
4) aptdaemon
5) apturl
6) apturl-common
7) bluez
8) bluez-alsa
9) checkbox-gui
10) checkbox-ng
11) checkbox-ng-service
12) command-not-found
13) dh-python
14) firefox
15) flashplugin-installer
16) foomatic-db-compressed-ppds
17) friends
18) friends-dispatcher
19) friends-facebook
20) friends-twitter
21) gedit
22) gnome-bluetooth
23) gnome-menus
24) gnome-orca
25) gnome-sudoku
26) gnome-user-share
27) indicator-bluetooth
28) language-selector-common
29) language-selector-gnome
30) libfriends0
31) lsb-release
32) nautilus-share
33) onboard
34) onboard-data
35) oneconf
36) openprinting-ppds
37) plainbox-provider-checkbox
38) plainbox-provider-resource-generic
39) printer-driver-foo2zjs
40) printer-driver-foo2zjs-common
41) printer-driver-postscript-hp
42) printer-driver-ptouch
43) printer-driver-pxljr
44) python-commandnotfound
45) python3-apport
46) python3-apt
47) python3-aptdaemon
48) python3-aptdaemon.gtk3widgets
49) python3-aptdaemon.pkcompat
50) python3-brlapi
51) python3-cairo
52) python3-chardet
53) python3-checkbox-ng
54) python3-checkbox-support
55) python3-commandnotfound
56) python3-crypto
57) python3-dbus
58) python3-debian
59) python3-defer
60) python3-distupgrade
61) python3-feedparser
62) python3-gdbm
63) python3-gi
64) python3-gi-cairo
65) python3-httplib2
66) python3-louis
67) python3-lxml
68) python3-mako
69) python3-markupsafe
70) python3-oauthlib
71) python3-oneconf
72) python3-piston-mini-client
73) python3-pkg-resources
74) python3-plainbox
75) python3-problem-report
76) python3-pyatspi
77) python3-pycurl
78) python3-pyparsing
79) python3-requests
80) python3-six
81) python3-software-properties
82) python3-speechd
83) python3-uno
84) python3-update-manager
85) python3-urllib3
86) python3-xdg
87) python3-xkit
88) rhythmbox
89) rhythmbox-mozilla
90) rhythmbox-plugin-cdrecorder
91) rhythmbox-plugin-magnatune
92) rhythmbox-plugin-zeitgeist
93) rhythmbox-plugins
94) sessioninstaller
95) software-center
96) software-center-aptdaemon-plugins
97) software-properties-common
98) software-properties-gtk
99) system-config-printer-gnome
100 ubuntu-desktop
101 ubuntu-drivers-common
102 ubuntu-minimal
103 ubuntu-release-upgrader-core
104 ubuntu-release-upgrader-gtk
105 ubuntu-standard
106 ufw
107 unattended-upgrades
108 unity
109 unity-control-center
110 unity-control-center-signon
111 unity-lens-friends
112 unity-lens-photos
113 unity-scope-audacious
114 unity-scope-calculator
115 unity-scope-chromiumbookmarks
116 unity-scope-clementine
117 unity-scope-colourlovers
118 unity-scope-devhelp
119 unity-scope-firefoxbookmarks
120 unity-scope-gdrive
121 unity-scope-gmusicbrowser
122 unity-scope-gourmet
123 unity-scope-guayadeque
124 unity-scope-home
125 unity-scope-manpages
126 unity-scope-musique
127 unity-scope-openclipart
128 unity-scope-texdoc
129 unity-scope-tomboy
130 unity-scope-virtualbox
131 unity-scope-yelp
132 unity-scope-zotero
133 update-manager
134 update-manager-core
135 update-notifier
136 update-notifier-common
137 usb-creator-common
138 usb-creator-gtk
139 webaccounts-extension-common
140 xdiagnose
141 xul-ext-ubufox
142 xul-ext-unity
143 xul-ext-webaccounts
Leave the following dependencies unresolved:
144 apport-symptoms recommends apport
145 brltty recommends python3
146 friendly-recovery recommends update-manager-core (>= 0.90.0)
147 gedit-common recommends gedit
148 indicator-appmenu recommends indicator-applet | indicator-renderer
149 indicator-datetime recommends indicator-applet | indicator-renderer
150 indicator-datetime recommends unity-control-center (>= 14.04.3) | ubuntu
151 indicator-messages recommends indicator-applet | indicator-renderer
152 indicator-power recommends unity-control-center | gnome-control-center (
153 indicator-power recommends indicator-applet (>= 0.2) | indicator-rendere
154 indicator-sound recommends unity-control-center | gnome-control-center |
155 kerneloops-daemon recommends apport
156 libaccount-plugin-1.0-0 recommends unity-control-center-signon
157 libpackagekit-glib2-16 recommends python3-aptdaemon.pkcompat | packageki
158 plainbox-provider-resource-generic recommends lsb-release
159 printer-driver-min12xxw recommends foomatic-db-compressed-ppds | foomati
160 ubuntu-desktop recommends gnome-orca
161 ubuntu-desktop recommends nautilus-share
162 ubuntu-desktop recommends onboard
163 ubuntu-desktop recommends printer-driver-foo2zjs
164 ubuntu-desktop recommends printer-driver-ptouch
165 ubuntu-desktop recommends printer-driver-pxljr
166 ubuntu-standard recommends apparmor
167 ubuntu-standard recommends command-not-found
168 ubuntu-standard recommends ufw
169 unity-lens-files recommends unity-scope-gdrive
170 ubuntu-restricted-addons recommends flashplugin-installer
171 file-roller recommends sessioninstaller
172 gdb recommends python3
173 gnome-bluetooth recommends unity-control-center | gnome-control-center
174 hplip recommends printer-driver-postscript-hp
175 indicator-printers recommends indicator-applet (>= 0.2) | indicator-rend
176 indicator-printers recommends system-config-printer-gnome
177 indicator-session recommends indicator-applet (>= 0.2) | indicator-rende
178 indicator-session recommends unity-control-center | gnome-control-center
179 indicator-session recommends unity-control-center-signon | gnome-control
180 libreoffice-common recommends python3-uno (>= 4.0~)
181 python-apt recommends lsb-release
182 python-aptdaemon recommends aptdaemon
183 python3-apport recommends apport
184 python3-apt recommends lsb-release
185 python3-aptdaemon recommends aptdaemon
186 rhythmbox-data recommends rhythmbox
187 rhythmbox-mozilla recommends firefox | epiphany-browser | www-browser
188 software-center recommends lsb-release
189 software-center recommends sessioninstaller
190 unity recommends unity-control-center
191 unity recommends unity-scope-tomboy
192 unity recommends unity-scope-texdoc
193 unity recommends unity-scope-guayadeque
194 unity recommends unity-scope-audacious
195 unity recommends unity-scope-firefoxbookmarks
196 unity recommends unity-scope-manpages
197 unity recommends unity-scope-gdrive
198 unity recommends unity-lens-photos
199 unity recommends unity-lens-friends
200 unity recommends unity-scope-devhelp
201 unity recommends unity-scope-zotero
202 unity recommends unity-scope-colourlovers
203 unity recommends unity-scope-chromiumbookmarks
204 unity recommends unity-scope-clementine
205 unity recommends unity-scope-calculator
206 unity recommends unity-scope-openclipart
207 unity recommends unity-scope-musique
208 unity recommends unity-scope-gmusicbrowser
209 unity recommends unity-scope-yelp
210 unity recommends unity-scope-virtualbox
211 unity recommends unity-scope-gourmet
212 unity recommends indicator-bluetooth
213 update-manager recommends software-properties-gtk (>= 0.71.2)
214 update-notifier recommends apport-gtk (>= 2.8-0ubuntu3)
215 update-notifier recommends software-properties-gtk
216 xul-ext-ubufox recommends firefox (>= 9.0)
Accept this solution? [Y/n/q/?]
aptitude me propose de supprimer Firefox. Même si Firefox dépend de Python, je trouve pas normal qu'aptitude soit aussi radical. J'ai commencé un
sudo apt-get remove python3
également juste pour voir. Même résultat. Bon, Firefox n'est qu'un exemple, je pense pareil pour rythmbox.
Enfin, je tente dans le programme "Ubuntu Software Center" de désinstaller python3 : impossible car le daemon n'est pas supprimable.
Je vous en prie, proposez-moi des solutions. Critiquez mes méthodes.
Merci d'avance de vos réponses
Tom
Dernière modification par tomsawyer1311 (Le 22/05/2015, à 13:05)
Hors ligne
#2 Le 22/05/2015, à 14:00
- gl38
Re : désinstaller Python3 après une "mauvaise" installation par compilation
Il me semble que le python compilé s'installe par défaut sous /usr/local. Tu peux le vérifier en tapant
make -n install
qui ne fait rien mais dit seulement ce qu'il ferait si on lancer l'installer pour de vrai (avec un sudo en plus).
Alors les pythons des paquets et de la compilation ne se mélangent pas, il n'y a donc pas de problème.
[EDIT] la compilation m'a l'air très propre : je n'ai rien ajouté et le site est quand même le site officiel de python.
Cordialement,
Guy
Dernière modification par gl38 (Le 22/05/2015, à 19:08)
Hors ligne
#3 Le 22/05/2015, à 21:37
- tomsawyer1311
Re : désinstaller Python3 après une "mauvaise" installation par compilation
Bonjour Guy
En fait, je n'ai pas de souci majeur avec Python. Il fonctionne bien. C'est juste que j'ai pris la bonne habitude de la gestion des paquets au lieu des compilations make, etc.
Je voulais juste me débarrasser de toutes les versions de Python (2.7 et 3.4) pour installer par le gestionnaire des paquets (aptitude) python 3.4.
Là, c'est un problème avec Python, mais le jour où je veux désinstaller un logiciel et qu'aptitude me dit : "ok, par contre tu désinstalles aussi VLC, Libreoffice, Firefox, etc." je vais moyennement apprécier, tu comprends ?
Avant de poster j'avais cherché sur askubuntu et ubuntu.com le forum je crois, mais même en anglais (et donc avec plus de chances de trouver solution à mon problème) je n'ai rien trouvé de satisfaisant.
Python est bien sous /usr/local.
J'attends quelques jours si quelqu'un a la solution, sinon, je reverrai mes tutos Linux et ferai plus attention. Je n'ai rien contre la compilation, mais je ne la maîtrise pas du tout (bon, je ne maîtrise pas parfaitement aptitude non plus cela dit).
Merci en tout cas de m'avoir répondu.
Hors ligne