un bug suite à l'install de linuxmint 22.3

mike duponte <[email protected]> Sat, 28 Feb 2026 11:48:26 +0100
Newsgroups gmane.comp.boot-loaders.grub.bugs
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------BS0TTFVD0Yepz5jKJoL1IoTD
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit


_L'ERREUR AFFICHEE:_

sudo update-grub
Sourcing file `/etc/default/grub'
/usr/sbin/grub-mkconfig: 101: /etc/default/grub: If: not found

_TEXTE AVANT & APRES LIGNE 101_

  if test $# -eq 0; then
       gettext_printf "%s: option requires an argument -- \`%s'\n" 
"$self" "$opt" 1>&2
       exit 1
   fi
   echo $1
}

# Check the arguments.
while test $# -gt 0
do
     option=$1
     shift

     case "$option" in
     -h | --help)
     usage
     exit 0 ;;
     -V | --version)
     echo "$self (${PACKAGE_NAME}) ${PACKAGE_VERSION}"
     exit 0 ;;
     -o | --output)
     grub_cfg=`argument $option "$@"`; shift;;
     --output=*)
     grub_cfg=`echo "$option" | sed 's/--output=//'`
     ;;
     -*)
     gettext_printf "Unrecognized option \`%s'\n" "$option" 1>&2
     usage
     exit 1
     ;;
     esac                    <===== LIGNE 101
done

     # Explicitly ignore non-option arguments, for compatibility.

if [ "x$EUID" = "x" ] ; then
   EUID=`id -u`
fi


=================>  Thank you for the correction of the text

--------------BS0TTFVD0Yepz5jKJoL1IoTD
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <p><u>L'ERREUR AFFICHEE:</u></p>
    <p>sudo update-grub<br>
      Sourcing file `/etc/default/grub'<br>
      /usr/sbin/grub-mkconfig: 101: /etc/default/grub: If: not found</p>
    <p><u>TEXTE AVANT &amp; APRES LIGNE 101</u></p>
    <p> if test $# -eq 0; then<br>
            gettext_printf "%s: option requires an argument -- \`%s'\n"
      "$self" "$opt" 1&gt;&amp;2<br>
            exit 1<br>
        fi<br>
        echo $1<br>
      }<br>
      <br>
      # Check the arguments.<br>
      while test $# -gt 0<br>
      do<br>
          option=$1<br>
          shift<br>
      <br>
          case "$option" in<br>
          -h | --help)<br>
          usage<br>
          exit 0 ;;<br>
          -V | --version)<br>
          echo "$self (${PACKAGE_NAME}) ${PACKAGE_VERSION}"<br>
          exit 0 ;;<br>
          -o | --output)<br>
          grub_cfg=`argument $option "$@"`; shift;;<br>
          --output=*)<br>
          grub_cfg=`echo "$option" | sed 's/--output=//'`<br>
          ;;<br>
          -*)<br>
          gettext_printf "Unrecognized option \`%s'\n" "$option"
      1&gt;&amp;2<br>
          usage<br>
          exit 1<br>
          ;;<br>
          esac                    &lt;===== LIGNE 101<br>
      done<br>
      <br>
          # Explicitly ignore non-option arguments, for compatibility.<br>
      <br>
      if [ "x$EUID" = "x" ] ; then<br>
        EUID=`id -u`<br>
      fi</p>
    <p><br>
    </p>
    <p>=================&gt;  Thank you for the correction of the text</p>
  </body>
</html>

--------------BS0TTFVD0Yepz5jKJoL1IoTD--