I am trying to install the application, but the executable script has determined that Debian 8.2 does not meet the installation requirements. Is it really so?

Here is a part of the source (definition of the Linux version):

 # Find out what flavor of Linux were running on. Added NX075P30 if $( grep -i "SuSE " /proc/version 1>$NULL 2>&1) ; then # Its SuSE. MIN_REV=10 # Minimum SuSE version. RELEASE_FILE=/etc/SuSE-release # Path to the release info file. # Check the rev level by reading VERSION out of the release file. if SUSE_REV=$(grep -i VERSION $RELEASE_FILE 2>$NULL) ; then # Edit out anything but numbers. #SUSE_REV=$(echo $SUSE_REV | sed 's![AZ,az,=,-,., ]!!g') # Translate out anything BUT digits, we just want the number(s). SUSE_REV=$(echo $SUSE_REV | tr -cd [:digit:] ) # Check for the minimum rev. [ "$SUSE_REV" -lt $MIN_REV ] && { # Must be at least MIN_REV. print "${WARN}Unsupported Linux version: SuSE $SUSE_REV. \r\t The $PRODNAME $NX_VER required minimum is: SuSE ${MIN_REV}." >&2 sleep 3 } else # Couldnt find the file or couldnt get the version num. print "${WARN}Unable to determine SuSE Linux version. \r\t Could not find SuSE release file: $RELEASE_FILE \r\t or, could not get SuSE version number from file. \r\t The minimum required version is: SuSE ${MIN_REV}. \r\t $PRODNAME $NX_VER MAY not run on this machine. " >&2 sleep 3 fi # Now find X11/app-defaults dir. It moved so check two known places. [ -d /usr/share/X11/app-defaults ] && { # Ck New location. X11_DEFS_DIR=/usr/share/X11/app-defaults ;} : ${X11_DEFS_DIR:=/usr/lib/X11/app-defaults} # Default to old location. elif $( grep -i "RED HAT " /proc/version 1>$NULL 2>&1) ; then # Its Red Hat. # Not much to do here, just set X11_DEFS_DIR. X11_DEFS_DIR=/usr/share/X11/app-defaults # X11 app-defaults dir. else # Couldnt detect SuSE or Red Hat so give unsuppored message and quit. print "${ERR} Unrecognized or unsupported Linux." >&2 exit 1 fi PATH=.:/sbin:/usr/sbin:/usr/bin:/bin:/etc ; export PATH # Set the PATH UGS_TMP=/tmp/ugs_tmp # Define a stash area for old files. PS_CMD="ps -ef" # ps command for this system. DF_CMD="df -k" # df command for this system. AWK_CMD=awk # awk command for this system. TMP_DIR=/tmp # Tmp directory. LPATH_VAR_NAME=LD_LIBRARY_PATH # Library path var name. V160P14 alias -x pwd='pwd -L' # Tweak Linux pwd to give logical pwd. alias -x uncompress=gunzip # On SuSE 10 must use gunzip. NX050P24 

As far as I understand, the script performs the compliance check of the distribution kit from the openSUSE family (correct me if I am mistaken). According to the directory structure, I do not seem to find any problems. As for the condition, I am not strong, and I ask for help in determining:

 grep -i "SuSE " /proc/version 1>$NULL 2>&1 

What would be the correct construction regarding the distribution of Debian 8.2?

    4 answers 4

    Search need to grep -i "debian" to do. And RELEASE_FILE, in my debianah in / etc / issue is

    • I tried changing the name to Dtbian , but this is not enough. Could you explain what corresponds to the condition that he is looking for (number or ...)? - vite apprentice
    • Example SUSE: /proc/version Linux version 2.6.27.56-0.1-default (geeko @ buildhost) (gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux)) # 1 SMP 2010-12-01 16 : 57: 58 +0100 - vite apprentice

    The executable script has determined that Debian 8.2 does not meet the installation requirements. Is it really so?

    Yes, that is right. any version of the debian distribution will be diagnosed as “Unrecognized or unsupported”.

    By the way, this script does not check the version of the linux program.

    What would be the correct construction regarding the distribution of Debian 8.2?

    As far as I understand, no: this script is clearly intended to run inside the installed suse or redhat distributions.


    if the final result is not important to you (the operability of the installed program), and it is important only that the script execution goes further, then just comment out all this code with the checks, leaving the line instead:

     X11_DEFS_DIR=/etc/X11/app-defaults 

    This script will most likely require root privileges to execute, so it’s best to run it on a test machine (for example, virtual).

    and even better: use the distribution kit that the developer of this script was oriented on.

    • This is the script of the ug_install script . It checks in the case OS type - vite apprentice
    • @ViteDecorum, alas, I did not understand what this should tell me. - aleksandr barakin
    • This is due to the fact that the script executes not only the distribution distribution, but also the system type. - vite apprentice
    • @ViteDecorum, great. You do not agree with the fact that the script you cited is intended to run only inside the installed suse or redhat distributions? - aleksandr barakin
    • I do not agree, there are examples of installation on Ubuntu, Mint, etc. You just need to adjust the definitions, or add an additional condition ... - vite apprentice

    For Debian, as for an LSB- compatible distribution, its version is in the /etc/lsb-relase in the format key = value. There is also a utility for retrieving data from there lsb_relase .

    Even for Debian and the distributions based on it, different version information is contained in the /etc/os-release and /etc/debian_version .

    See also the question of determining the version of Debian on the unix-section of the site .

    • Can you please tell me the app-default directory in Debian is /usr/share/applications/ , or something else? - vite apprentice
    • @ViteDecorum, I do not know what an app-default , /usr/share/applications/ exists, it contains shortcuts for graphical applications for creating menus. - sercxjo
    • I meant the analog directory /etc/X11/app-defaults in Debian. That is, by appointment, is it the same, or something else? - vite apprentice
    • Other. In /usr/share is constant data for packages, and in /etc their system-wide settings. - sercxjo
    • Wrong, the path is: /usr/share/X11/app-defaults . I can not find the definition of this directory for Debian. The variable X11_DEFS_DIR used in the Updt_resource_files function. Can you clarify, is the X11 system directory for shared files, or applied to the nvidia driver? - vite apprentice
     #!/bin/sh lsb_release -a > rlsnf cat rlsnf if ! grep -i debian rlsnf then echo "Debian NO" else echo "Debian YES" fi rm rlsnf 

    instead of echo do what you need.