#1 Le 30/08/2012, à 20:15
- PounkyM
[Résolu] Impossible d’installer « convert »
Bonjour à tous
Voici le message que j’obtiens lorsque j’essaye d’installer convert :
% sudo apt-get install imagemagick
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
exiv2 ghostscript gsfonts libcdt4 libcupsimage2 libdjvulibre-text libdjvulibre21 libexiv2-9 libgraph4 libgs8 libgvc5 libilmbase6 libjbig2dec0
liblcms1 liblqr-1-0 libmagickcore3 libmagickcore3-extra libmagickwand3 libnetpbm10 libopenexr6 libpaper-utils libpaper1 libpathplan4 libwmf0.2-7
libxdot4 netpbm ufraw-batch
Suggested packages:
imagemagick-doc autotrace cups-bsd lpr lprng curl enscript ffmpeg gimp gnuplot grads hp2xx html2ps libwmf-bin povray radiance sane-utils
texlive-base-bin transfig liblcms-utils ufraw
The following NEW packages will be installed:
exiv2 ghostscript gsfonts imagemagick libcdt4 libcupsimage2 libdjvulibre-text libdjvulibre21 libexiv2-9 libgraph4 libgs8 libgvc5 libilmbase6
libjbig2dec0 liblcms1 liblqr-1-0 libmagickcore3 libmagickcore3-extra libmagickwand3 libnetpbm10 libopenexr6 libpaper-utils libpaper1 libpathplan4
libwmf0.2-7 libxdot4 netpbm ufraw-batch
0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/17.2 MB of archives.
After this operation, 42.2 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
dpkg: warning: 'ldconfig' not found in PATH or not executable.
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable.
dpkg: warning: 'update-rc.d' not found in PATH or not executable.
dpkg: 3 expected programs not found in PATH or not executable.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
Que faire ? Merci d’avance pour vos réponses !
Dernière modification par PounkyM (Le 30/08/2012, à 21:56)
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#2 Le 30/08/2012, à 20:21
- Pacifick_FR42
Re : [Résolu] Impossible d’installer « convert »
?? tu peux donner le retour de :
sudo apt-get update
sudo apt-get upgrade
Hors ligne
#3 Le 30/08/2012, à 20:27
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
@Pacifick_FR42 : merci de ta réponse et voici le retour de la commande :
% sudo apt-get update
Hit http://ftp.fr.debian.org squeeze Release.gpg
Ign http://ftp.fr.debian.org/debian/ squeeze/main Translation-en
Ign http://ftp.fr.debian.org/debian/ squeeze/main Translation-en_GB
Ign http://ftp.fr.debian.org/debian/ squeeze/non-free Translation-en
Ign http://ftp.fr.debian.org/debian/ squeeze/non-free Translation-en_GB
Hit http://ftp.fr.debian.org squeeze Release
Hit http://ftp.fr.debian.org squeeze/main armel Packages
Hit http://ftp.fr.debian.org squeeze/non-free armel Packages
Ign http://archive.qmh-project.org unstable Release.gpg
Ign http://archive.qmh-project.org/rpi/debian/ unstable/main Translation-en
Ign http://archive.qmh-project.org/rpi/debian/ unstable/main Translation-en_GB
Ign http://archive.qmh-project.org unstable Release
Ign http://archive.qmh-project.org unstable/main armel Packages/DiffIndex
Ign http://archive.qmh-project.org unstable/main armel Packages
Hit http://archive.qmh-project.org unstable/main armel Packages
Reading package lists... Done
% sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#4 Le 30/08/2012, à 20:28
- Pacifick_FR42
Re : [Résolu] Impossible d’installer « convert »
relance l'install de imagemagick
Hors ligne
#5 Le 30/08/2012, à 20:31
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
J’ai toujours la même erreur…
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#6 Le 30/08/2012, à 20:31
- xavier4811
Re : [Résolu] Impossible d’installer « convert »
Bonjour,
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
donne aussi le retour de
sudo cat /etc/sudoers
il me semble avoir vu ça y a pas longtemps.
Hors ligne
#7 Le 30/08/2012, à 20:36
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
@xavier : salut !
% sudo cat /etc/sudoers
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE DISPLAY PATH"
Defaults exempt_group = users
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
suse ALL=(ALL) ALL
pi ALL=(ALL) ALL
# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%users ALL=(ALL) ALL
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#8 Le 30/08/2012, à 20:41
- xavier4811
Re : [Résolu] Impossible d’installer « convert »
manque le path
$ sudo cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset,insults
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"
c'est ta framboise ? je peux poster celui d'une Debian testing aussi.
Hors ligne
#9 Le 30/08/2012, à 20:47
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
oui, c’est ma framboise! comment je fais pour ajouter le path ?
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#10 Le 30/08/2012, à 20:54
- xavier4811
Re : [Résolu] Impossible d’installer « convert »
Faut que tu édite le fichier /etc/sudoers en tant que root avec la commande visudo
ça c'est celui de ma testing :
$ sudo cat /etc/sudoers
[sudo] password for xavier:
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
Hors ligne
#11 Le 30/08/2012, à 20:57
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
Donc je rajoute la ligne
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
?
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#12 Le 30/08/2012, à 21:02
- xavier4811
Re : [Résolu] Impossible d’installer « convert »
Oui c'est celle la qui manque.
Hors ligne
#13 Le 30/08/2012, à 21:04
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
Je n’ai jamais utilisé visudo… Peux-tu m’expliquer comment ça marche ?
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#14 Le 30/08/2012, à 21:07
- xavier4811
Re : [Résolu] Impossible d’installer « convert »
ça ouvre l'éditeur de texte par défaut du système en console
sudo visudo
et si ça passe pas essaye avec
sudo /usr/sbin/visudo
Hors ligne
#15 Le 30/08/2012, à 21:09
- Pacifick_FR42
Re : [Résolu] Impossible d’installer « convert »
Mouais... nano est plus simple quant même...
Hors ligne
#16 Le 30/08/2012, à 21:10
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
Bon, j’ai un peu galéré (C-K X pour sauvegarder) mais c’est bon, j’ai modifié le fichier !
Dernière modification par PounkyM (Le 30/08/2012, à 21:53)
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#17 Le 30/08/2012, à 21:11
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
Mais il semble que j’ai toujours le même problème …
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#18 Le 30/08/2012, à 21:12
- xavier4811
Re : [Résolu] Impossible d’installer « convert »
Mouais... nano est plus simple quant même...
C'est vrai, j'y pense jamais, a part après une install, quand je le vire...:D
Hors ligne
#19 Le 30/08/2012, à 21:14
- xavier4811
Re : [Résolu] Impossible d’installer « convert »
Mais il semble que j’ai toujours le même problème …
su -c 'echo $PATH'
(c'est le mot de passe root qui est demandé)
Hors ligne
#20 Le 30/08/2012, à 21:16
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
% su -c 'echo $PATH'
Password:
!127!
% sudo -s
raspberrypi# echo $PATH
/home/pi/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
EDIT : j’ai l’impression que mon PATH n’est pas bon…
Dernière modification par PounkyM (Le 30/08/2012, à 21:17)
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#21 Le 30/08/2012, à 21:19
- xavier4811
Re : [Résolu] Impossible d’installer « convert »
Manque les plus importants : /usr/local/sbin & /usr/sbin
faute de frappe ? oubli du "s" ?
Hors ligne
#22 Le 30/08/2012, à 21:21
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
Pourtant :
raspberrypi# cat /etc/sudoers
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE DISPLAY PATH"
Defaults exempt_group = users
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
suse ALL=(ALL) ALL
pi ALL=(ALL) ALL
# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
%users ALL=(ALL) ALL
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#23 Le 30/08/2012, à 21:27
- xavier4811
Re : [Résolu] Impossible d’installer « convert »
relance le terminal ou la session, la path de la sortie de commande est celui d'un utilisateur. root n'a pas /usr/games, interdit de jouer le pauvre.
Hors ligne
#24 Le 30/08/2012, à 21:31
- PounkyM
Re : [Résolu] Impossible d’installer « convert »
Je me suis déco / reco mais ça n’a pas suffit… J’aimerais bien essayer de rebooter le serveur mais je sais pas comment faire… (sachant que je ne suis à 5000 km de lui environ )
"La liberté est un bagne aussi longtemps qu'un seul homme est asservi sur la terre"
Hors ligne
#25 Le 30/08/2012, à 21:41
- xavier4811
Re : [Résolu] Impossible d’installer « convert »
J'ai pas les yeux en face des trous ce soir !!!
Defaults env_reset
Defaults env_keep....
le "PATH a la fin de la 2ème, c'est a cause de ça que le $PATH de l'utilisateur est conservé pour les commandes avec sudo, ça revient a faire sudo -E
man sudoers
...
Command Environment
Since environment variables can influence program behavior, sudoers provides a means to restrict which variables from the user's
environment are inherited by the command to be run. There are two distinct ways sudoers can deal with environment variables.
By default, the env_reset option is enabled. This causes commands to be executed with a minimal environment containing TERM, PATH,
HOME, MAIL, SHELL, LOGNAME, USER and USERNAME in addition to variables from the invoking process permitted by the env_check and
env_keep options. This is effectively a whitelist for environment variables.
If, however, the env_reset option is disabled, any variables not explicitly denied by the env_check and env_delete options are
inherited from the invoking process. In this case, env_check and env_delete behave like a blacklist. Since it is not possible to
blacklist all potentially dangerous environment variables, use of the default env_reset behavior is encouraged.
...
Hors ligne