logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 17-06-2020 14:45:32

calixtus06
Membre
Distrib. : Librazik 4
Noyau : 5.10.0-14-lzk-bl-amd64
(G)UI : mate
Inscription : 25-03-2016

[ABANDONNE]GParted a disparu

Hello, plus précisément  je clique sur GParted  , la petite roue qui tourne m'indique d'habitude que j'ai lancé une opération et qu'il va se passer  quelque chose  et puis plus rien.

Je fais un apt update && apt upgrade
Je tente de lancer GParted depuis le terminal : "la commande GParted n'existe pas"

Dans synaptic j'avais GParted de coché , je l'ai donc ré installé

Je relance l'ordi : rien ne change ( ???)

Si vous avez une idée

Merci

Nico

Dernière modification par calixtus06 (15-09-2020 08:46:38)


Il n'y a pas de mauvaises questions...

Hors ligne

#2 17-06-2020 15:17:59

chalu
Modératrice
Lieu : Anjou
Distrib. : openSUSE Tumbleweed
Noyau : Linux 5.12
(G)UI : KDE 5.21.4
Inscription : 11-03-2016

Re : [ABANDONNE]GParted a disparu

calixtus06 a écrit :

Je tente de lancer GParted depuis le terminal : "la commande GParted n'existe pas"


Bonjour,
Essaie sans majuscule

gparted

Hors ligne

#3 17-06-2020 15:48:38

MicP
Membre
Inscription : 29-02-2016

Re : [ABANDONNE]GParted a disparu

Bonjour

Dans les variables d'environnement d'un compte utilisateur non privilégié,
il manquera le répertoire /usr/sbin , dans la liste des chemins de la variable PATH

Il faudra donc spécifier le chemin de l'exécutable gparted :

/usr/sbin/gparted

Hors ligne

#4 17-06-2020 16:40:58

chalu
Modératrice
Lieu : Anjou
Distrib. : openSUSE Tumbleweed
Noyau : Linux 5.12
(G)UI : KDE 5.21.4
Inscription : 11-03-2016

Re : [ABANDONNE]GParted a disparu

Ah oui effectivement, si c'est ce qu'a fait calixtus06, on ne peut que répéter qu'il faut donner le retour entier des commandes car il est explicite

gparted


ommand 'gparted' is available in '/usr/sbin/gparted'
The command could not be located because '/usr/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
gparted: command not found


voir comme indiqué

/usr/sbin/gparted



L'erreur avec la majuscule donne un retour explicite aussi d'ailleurs

Gparted


Command 'Gparted' not found, did you mean:

  command 'gparted' from deb gparted
  command 'parted' from deb parted

Try: sudo apt install <deb name>
 

Hors ligne

#5 18-06-2020 05:58:30

vv222
Administrateur
Lieu : Bretagne
Distrib. : Debian Sid
(G)UI : sway
Inscription : 18-11-2013
Site Web

Re : [ABANDONNE]GParted a disparu

MicP a écrit :

Dans les variables d'environnement d'un compte utilisateur non privilégié,
il manquera le répertoire /usr/sbin , dans la liste des chemins de la variable PATH

Il faudra donc spécifier le chemin de l'exécutable gparted :

/usr/sbin/gparted



De mémoire GParted n’est pas censé être lancé de cette manière (il est même possible que ça ne fonctionne pas), son lancement passe par PolicyKit via `pkexec` ou une commande dans ce style. À savoir que je ne l’ai pas sous la main pour vérifier ça, mais si quelqu’un l’a installé chez lui la commande peut se trouver dans /usr/share/applications/gparted.desktop à la ligne commençant par Exec=.


Jouer sous Debian ? Facile !

Ceterum censeo Barum esse delendam

En ligne

#6 18-06-2020 07:27:24

MicP
Membre
Inscription : 29-02-2016

Re : [ABANDONNE]GParted a disparu

Bonjour

Avant de la proposer, j'avais testé sur mes machines (debian 10) la ligne de commande.

Mais je n'ai pas de distribution Librazik2 installée pour pouvoir y faire ces tests.
(il faudrait peut être passer à LibraZiK-3 qui est basée sur debian 10 (buster))

La version du paquetage gparted installée :

apt policy gparted

gparted:
  Installé : 0.32.0-2
  Candidat : 0.32.0-2
 Table de version :
 *** 0.32.0-2 500
        500 http://deb.debian.org/debian buster/main amd64 Packages
        100 /var/lib/dpkg/status


L'extrait du fichier desktop de gparted
dans lequel tu trouveras la ligne de commande que j'ai proposée :

grep ^Exec= /usr/share/applications/gparted.desktop

Exec=/usr/sbin/gparted %f


Les attributs du script exécutable /usr/sbin/gparted

ls -l /usr/sbin/gparted

-rwxr-xr-x 1 root root 6821 août  29  2018 /usr/sbin/gparted


Le contenu du script /usr/sbin/gparted

cat /usr/sbin/gparted

#!/bin/sh
#     Name:  gparted
#  Purpose:  Perform appropriate startup of GParted executable gpartedbin.
#
#            The purpose of these startup methods is to prevent
#            devices from being automounted, and to ensure only one
#            instance of GParted is running.  File system problems can
#            occur if devices are mounted prior to the completion of
#            GParted's operations, or if multiple partition editing
#            tools are in use concurrently.
#
# Copyright (C) 2008, 2009, 2010, 2013, 2015 Curtis Gedak
#
#  This file is part of GParted.
#
#  GParted is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  GParted is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with GParted.  If not, see <http://www.gnu.org/licenses/>.
#

#
#  Only permit one instance of GParted to execute at a time
#
if test "z`ps -e | grep gpartedbin`" != "z"; then
  echo "The process gpartedbin is already running."
  echo "Only one gpartedbin process is permitted."
  exit 1
fi

#
#  Define base command for executing GParted
#
BASE_CMD="/usr/sbin/gpartedbin $*"

#
#  For non-root users try to get authorisation to run GParted as root.
#
if test "x`id -u`" != "x0"; then
  #
  #  If there is no configured SU program run gpartedbin as
  #  non-root to display the graphical error about needing root
  #  privileges.
  #
  if test "xpkexec --disable-internal-agent" = "x"; then
    echo "Root privileges are required for running gparted."
    $BASE_CMD
    exit 1
  fi

  #
  # Interim workaround to allow GParted run by root access to the
  # X11 display server under Wayland.  If configured with
  # './configure --enable-xhost-root', the xhost command is
  # available and root has not been granted access to the X11
  # display via xhost, then grant access.
  #
  ENABLE_XHOST_ROOT=yes
  GRANTED_XHOST_ROOT=no
  if test "x$ENABLE_XHOST_ROOT" = 'xyes' && xhost 1> /dev/null 2>&1; then
    if ! xhost | grep -qi 'SI:localuser:root$'; then
      xhost +SI:localuser:root
      GRANTED_XHOST_ROOT=yes
    fi
  fi

  #
  # Run gparted as root.
  #
  pkexec --disable-internal-agent '/usr/sbin/gparted' "$@"
  status=$?

  #
  # Revoke root access to the X11 display, only if we granted it.
  #
  if test "x$GRANTED_XHOST_ROOT" = 'xyes'; then
    xhost -SI:localuser:root
  fi
  exit $status
fi

#
#  Search PATH to determine if systemctl program can be found
#  and if appropriate daemon is running.
#
HAVE_SYSTEMCTL=no
for k in '' `echo "$PATH" | sed 's,:, ,g'`; do
  if test -x "$k/systemctl"; then
    if test "z`ps -e | grep systemd`" != "z"; then
      HAVE_SYSTEMCTL=yes
      break
    fi
  fi
done

#
#  Check if udisks2-inhibit exists in known location
#  and if appropriate daemon is running.
#
HAVE_UDISKS2_INHIBIT=no
if test -x "/usr/lib/udisks2/udisks2-inhibit"; then
  if test "z`ps -e | grep 'udisksd'`" != "z"; then
    HAVE_UDISKS2_INHIBIT=yes
  fi
fi

#
#  Search PATH to determine if udisks program can be found
#  and if appropriate daemon is running.
#
HAVE_UDISKS=no
for k in '' `echo "$PATH" | sed 's,:, ,g'`; do
  if test -x "$k/udisks"; then
    if test "z`ps -e | grep udisks-daemon`" != "z"; then
      HAVE_UDISKS=yes
      break
    fi
  fi
done

#
#  Search PATH to determine if hal-lock program can be found
#  and if appropriate daemon is running.
#
HAVE_HAL_LOCK=no
for k in '' `echo "$PATH" | sed 's,:, ,g'`; do
  if test -x "$k/hal-lock"; then
    if test "z`ps -e | grep hald`" != "z"; then
      HAVE_HAL_LOCK=yes
      break
    fi
  fi
done

#
#  Use systemctl to prevent automount by masking currently unmasked mount points
#
if test "x$HAVE_SYSTEMCTL" = "xyes"; then
  MOUNTLIST=`systemctl list-units --full --all -t mount --no-legend \
    | grep -v masked | cut -f1 -d' ' \
    | egrep -v '^(dev-hugepages|dev-mqueue|proc-sys-fs-binfmt_misc|run-user-.*-gvfs|sys-fs-fuse-connections|sys-kernel-config|sys-kernel-debug)'`
  systemctl --runtime mask --quiet -- $MOUNTLIST
fi

#
# Create temporary blank overrides for all udev rules which automatically
# start Linux Software RAID array members.
#
# Udev stores volatile / temporary runtime rules in directory /run/udev/rules.d.
# Older versions use /dev/.udev/rules.d instead, and even older versions don't
# have such a directory at all.  Volatile / temporary rules are use to override
# default rules from /lib/udev/rules.d.  (Permanent local administrative rules
# in directory /etc/udev/rules.d override all others).  See udev(7) manual page
# from various versions of udev for details.
#
# Default udev rules containing mdadm to incrementally start array members are
# found in 64-md-raid.rules and/or 65-md-incremental.rules, depending on the
# distribution and age.  The rules may be commented out or not exist at all.
#
UDEV_TEMP_MDADM_RULES=''  # List of temporary override rules files.
for udev_temp_d in /run/udev /dev/.udev; do
  if test -d "$udev_temp_d"; then
    test ! -d "$udev_temp_d/rules.d" && mkdir "$udev_temp_d/rules.d"
    udev_mdadm_rules=`egrep -l '^[^#].*mdadm (-I|--incremental)' /lib/udev/rules.d/*.rules 2> /dev/null`
    UDEV_TEMP_MDADM_RULES=`echo "$udev_mdadm_rules" | sed 's,^/lib/udev,'"$udev_temp_d"','`
    break
  fi
done
for rule in $UDEV_TEMP_MDADM_RULES; do
  touch "$rule"
done

#
#  Use udisks2-inhibit if udisks2-inhibit exists and deamon running.
#  Else use both udisks and hal-lock for invocation if both binaries exist and both
#  daemons are running.
#  Else use udisks if binary exists and daemon is running.
#  Otherwise use hal-lock for invocation if binary exists and daemon is running.
#  If the above checks fail then simply run gpartedbin.
#
if test "x$HAVE_UDISKS2_INHIBIT" = "xyes"; then
  /usr/lib/udisks2/udisks2-inhibit $BASE_CMD
elif test "x$HAVE_UDISKS" = "xyes" && test "x$HAVE_HAL_LOCK" = "xyes"; then
  udisks --inhibit -- \
    hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive \
      --run "$BASE_CMD"
elif test "x$HAVE_UDISKS" = "xyes"; then
  udisks --inhibit -- $BASE_CMD
elif test "x$HAVE_HAL_LOCK" = "xyes"; then
  hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive \
    --run "$BASE_CMD"
else
  $BASE_CMD
fi

#
# Clear any temporary override udev rules used to stop udev automatically
# starting Linux Software RAID array members.
#
for rule in $UDEV_TEMP_MDADM_RULES; do
  rm -f "$rule"
done

#
#  Use systemctl to restore that status of any mount points changed above
#
if test "x$HAVE_SYSTEMCTL" = "xyes"; then
  systemctl --runtime unmask --quiet -- $MOUNTLIST
fi

Dernière modification par MicP (18-06-2020 08:42:32)

Hors ligne

#7 18-06-2020 11:09:10

vv222
Administrateur
Lieu : Bretagne
Distrib. : Debian Sid
(G)UI : sway
Inscription : 18-11-2013
Site Web

Re : [ABANDONNE]GParted a disparu

Bien vu MicP : la méthode dont je me souvenais est en fait celle de Debian Stretch, elle n’est plus valide pour Debian Buster.

Jouer sous Debian ? Facile !

Ceterum censeo Barum esse delendam

En ligne

#8 18-06-2020 11:32:57

MicP
Membre
Inscription : 29-02-2016

Re : [ABANDONNE]GParted a disparu

Mais tu avais quand même raison
étant donné que, si je me fie à ce qui est écrit sous son avatar,
calixtus06 utilise la distribution libraziK2 qui est basée sur debian 9 (stretch)

Je viens de créer une machine virtuelle dans laquelle j'ai installé librazik2
en utilisant le fichier image ISO librazik2-64bits-20190702.iso

Et une fois l'installation terminée,
j'ai entré les quelques lignes de commandes suivantes :

lsb_release -a

No LSB modules are available.
Distributor ID: Debian
Description:  Debian GNU/Linux 9.9 (stretch)
Release:  9.9
Codename: stretch


apt policy gparted

gparted:
  Installé : 0.25.0-1+b1
  Candidat : 0.25.0-1+b1
 Table de version :
 *** 0.25.0-1+b1 500
        500 http://deb.debian.org/debian stretch/main amd64 Packages
        100 /var/lib/dpkg/status


dpkg -L gparted | grep desktop

/usr/share/applications/gparted.desktop


grep ^Exec= /usr/share/applications/gparted.desktop

Exec=gparted-pkexec


which gparted-pkexec

/usr/bin/gparted-pkexec


file /usr/bin/gparted-pkexec

/usr/bin/gparted-pkexec: POSIX shell script, ASCII text executable


cat /usr/bin/gparted-pkexec

#!/bin/sh
pkexec "/usr/sbin/gparted" "$@"



Et après une longue mise à jour,
même chose que ci-dessus,
à part :

lsb_release -a

No LSB modules are available.
Distributor ID: Debian
Description:  Debian GNU/Linux 9.12 (stretch)
Release:  9.12
Codename: stretch

Et GParted fonctionne toujours aussi bien…

Je ne sais pas ce qu'il s'est passé dans le système librazik-2 de calixtus06
pour que GParted ne fonctionne plus.

Dernière modification par MicP (18-06-2020 12:18:55)

Hors ligne

Pied de page des forums