Trying to execute a .sh file. However, I get the error: Configuration Absent: Installation Failed

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm pretty new to Linux, still extra new to Debian.



I'm running a Debian 8.2 vm and trying to execute a file called install.sh.



I've run the following commands:



  • sh ./install.sh

  • sh install.sh

  • apt-get install install.sh

The first two above commands gave me the error "Configuration Absent: Installation Failed". The third command gave me the following output:



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package install.sh
E: Couldn't find any package by regex 'install.sh'


I've run chmod 700 install.sh to make sure the file CAN be executed.



And I absolutely can't find anything about this type of error. Any help would be great! Thanks.







share|improve this question

















  • 1




    As which user are you attempting to do this? For which user did you set the permissions to rwx? For what program does the install.sh belong?
    – Timothy Martin
    Jun 5 at 23:48






  • 4




    "Configuration Absent: Installation Failed" sounds like an error from within the script itself - it's going to be hard to help without knowing what the script is and what it is supposed to do
    – steeldriver
    Jun 5 at 23:49






  • 3




    The 3rd one doesn't do what you think... apt install install.sh will try to install a package named install.sh from Debian's repositories, not a file on your computer. As others have mentioned, it sounds like the first two commands both work.
    – multithr3at3d
    Jun 6 at 0:00











  • a .sh is a shell script, so just execute it, with its own permissions or calling a shell to load it ; apt is not for this use. "Configuration absent" really looks like this shell uses an external configuration file for doing something. so if you are lucky developper of this script as given either a --help parameter or commented its script or given a readme file to read. Else, you can ask us to explain the script itself if you copy/paste it on a topic if it is not to big...
    – francois P
    Jun 6 at 5:32










  • Let us know where this install.sh script comes from (what software), and also have a read of the installation instructions for that software. It sounds like it either expects you to prepare a configuration file before running the script, or like there is a configuration file somewhere but in a location that the script can't find.
    – Kusalananda
    Jun 6 at 5:48














up vote
0
down vote

favorite












I'm pretty new to Linux, still extra new to Debian.



I'm running a Debian 8.2 vm and trying to execute a file called install.sh.



I've run the following commands:



  • sh ./install.sh

  • sh install.sh

  • apt-get install install.sh

The first two above commands gave me the error "Configuration Absent: Installation Failed". The third command gave me the following output:



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package install.sh
E: Couldn't find any package by regex 'install.sh'


I've run chmod 700 install.sh to make sure the file CAN be executed.



And I absolutely can't find anything about this type of error. Any help would be great! Thanks.







share|improve this question

















  • 1




    As which user are you attempting to do this? For which user did you set the permissions to rwx? For what program does the install.sh belong?
    – Timothy Martin
    Jun 5 at 23:48






  • 4




    "Configuration Absent: Installation Failed" sounds like an error from within the script itself - it's going to be hard to help without knowing what the script is and what it is supposed to do
    – steeldriver
    Jun 5 at 23:49






  • 3




    The 3rd one doesn't do what you think... apt install install.sh will try to install a package named install.sh from Debian's repositories, not a file on your computer. As others have mentioned, it sounds like the first two commands both work.
    – multithr3at3d
    Jun 6 at 0:00











  • a .sh is a shell script, so just execute it, with its own permissions or calling a shell to load it ; apt is not for this use. "Configuration absent" really looks like this shell uses an external configuration file for doing something. so if you are lucky developper of this script as given either a --help parameter or commented its script or given a readme file to read. Else, you can ask us to explain the script itself if you copy/paste it on a topic if it is not to big...
    – francois P
    Jun 6 at 5:32










  • Let us know where this install.sh script comes from (what software), and also have a read of the installation instructions for that software. It sounds like it either expects you to prepare a configuration file before running the script, or like there is a configuration file somewhere but in a location that the script can't find.
    – Kusalananda
    Jun 6 at 5:48












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I'm pretty new to Linux, still extra new to Debian.



I'm running a Debian 8.2 vm and trying to execute a file called install.sh.



I've run the following commands:



  • sh ./install.sh

  • sh install.sh

  • apt-get install install.sh

The first two above commands gave me the error "Configuration Absent: Installation Failed". The third command gave me the following output:



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package install.sh
E: Couldn't find any package by regex 'install.sh'


I've run chmod 700 install.sh to make sure the file CAN be executed.



And I absolutely can't find anything about this type of error. Any help would be great! Thanks.







share|improve this question













I'm pretty new to Linux, still extra new to Debian.



I'm running a Debian 8.2 vm and trying to execute a file called install.sh.



I've run the following commands:



  • sh ./install.sh

  • sh install.sh

  • apt-get install install.sh

The first two above commands gave me the error "Configuration Absent: Installation Failed". The third command gave me the following output:



Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package install.sh
E: Couldn't find any package by regex 'install.sh'


I've run chmod 700 install.sh to make sure the file CAN be executed.



And I absolutely can't find anything about this type of error. Any help would be great! Thanks.









share|improve this question












share|improve this question




share|improve this question








edited Jun 6 at 7:48









ctrl-alt-delor

8,75831947




8,75831947









asked Jun 5 at 23:37









Johnny Welker

1




1







  • 1




    As which user are you attempting to do this? For which user did you set the permissions to rwx? For what program does the install.sh belong?
    – Timothy Martin
    Jun 5 at 23:48






  • 4




    "Configuration Absent: Installation Failed" sounds like an error from within the script itself - it's going to be hard to help without knowing what the script is and what it is supposed to do
    – steeldriver
    Jun 5 at 23:49






  • 3




    The 3rd one doesn't do what you think... apt install install.sh will try to install a package named install.sh from Debian's repositories, not a file on your computer. As others have mentioned, it sounds like the first two commands both work.
    – multithr3at3d
    Jun 6 at 0:00











  • a .sh is a shell script, so just execute it, with its own permissions or calling a shell to load it ; apt is not for this use. "Configuration absent" really looks like this shell uses an external configuration file for doing something. so if you are lucky developper of this script as given either a --help parameter or commented its script or given a readme file to read. Else, you can ask us to explain the script itself if you copy/paste it on a topic if it is not to big...
    – francois P
    Jun 6 at 5:32










  • Let us know where this install.sh script comes from (what software), and also have a read of the installation instructions for that software. It sounds like it either expects you to prepare a configuration file before running the script, or like there is a configuration file somewhere but in a location that the script can't find.
    – Kusalananda
    Jun 6 at 5:48












  • 1




    As which user are you attempting to do this? For which user did you set the permissions to rwx? For what program does the install.sh belong?
    – Timothy Martin
    Jun 5 at 23:48






  • 4




    "Configuration Absent: Installation Failed" sounds like an error from within the script itself - it's going to be hard to help without knowing what the script is and what it is supposed to do
    – steeldriver
    Jun 5 at 23:49






  • 3




    The 3rd one doesn't do what you think... apt install install.sh will try to install a package named install.sh from Debian's repositories, not a file on your computer. As others have mentioned, it sounds like the first two commands both work.
    – multithr3at3d
    Jun 6 at 0:00











  • a .sh is a shell script, so just execute it, with its own permissions or calling a shell to load it ; apt is not for this use. "Configuration absent" really looks like this shell uses an external configuration file for doing something. so if you are lucky developper of this script as given either a --help parameter or commented its script or given a readme file to read. Else, you can ask us to explain the script itself if you copy/paste it on a topic if it is not to big...
    – francois P
    Jun 6 at 5:32










  • Let us know where this install.sh script comes from (what software), and also have a read of the installation instructions for that software. It sounds like it either expects you to prepare a configuration file before running the script, or like there is a configuration file somewhere but in a location that the script can't find.
    – Kusalananda
    Jun 6 at 5:48







1




1




As which user are you attempting to do this? For which user did you set the permissions to rwx? For what program does the install.sh belong?
– Timothy Martin
Jun 5 at 23:48




As which user are you attempting to do this? For which user did you set the permissions to rwx? For what program does the install.sh belong?
– Timothy Martin
Jun 5 at 23:48




4




4




"Configuration Absent: Installation Failed" sounds like an error from within the script itself - it's going to be hard to help without knowing what the script is and what it is supposed to do
– steeldriver
Jun 5 at 23:49




"Configuration Absent: Installation Failed" sounds like an error from within the script itself - it's going to be hard to help without knowing what the script is and what it is supposed to do
– steeldriver
Jun 5 at 23:49




3




3




The 3rd one doesn't do what you think... apt install install.sh will try to install a package named install.sh from Debian's repositories, not a file on your computer. As others have mentioned, it sounds like the first two commands both work.
– multithr3at3d
Jun 6 at 0:00





The 3rd one doesn't do what you think... apt install install.sh will try to install a package named install.sh from Debian's repositories, not a file on your computer. As others have mentioned, it sounds like the first two commands both work.
– multithr3at3d
Jun 6 at 0:00













a .sh is a shell script, so just execute it, with its own permissions or calling a shell to load it ; apt is not for this use. "Configuration absent" really looks like this shell uses an external configuration file for doing something. so if you are lucky developper of this script as given either a --help parameter or commented its script or given a readme file to read. Else, you can ask us to explain the script itself if you copy/paste it on a topic if it is not to big...
– francois P
Jun 6 at 5:32




a .sh is a shell script, so just execute it, with its own permissions or calling a shell to load it ; apt is not for this use. "Configuration absent" really looks like this shell uses an external configuration file for doing something. so if you are lucky developper of this script as given either a --help parameter or commented its script or given a readme file to read. Else, you can ask us to explain the script itself if you copy/paste it on a topic if it is not to big...
– francois P
Jun 6 at 5:32












Let us know where this install.sh script comes from (what software), and also have a read of the installation instructions for that software. It sounds like it either expects you to prepare a configuration file before running the script, or like there is a configuration file somewhere but in a location that the script can't find.
– Kusalananda
Jun 6 at 5:48




Let us know where this install.sh script comes from (what software), and also have a read of the installation instructions for that software. It sounds like it either expects you to prepare a configuration file before running the script, or like there is a configuration file somewhere but in a location that the script can't find.
– Kusalananda
Jun 6 at 5:48










2 Answers
2






active

oldest

votes

















up vote
0
down vote













The first two commands will run the script IF it is a shell script. But it might be Python. Or awk. Or a different shell entirely. So to be safe you shouldn't need to mention.sh explicitly, as most well written scripts specify the correct interpreter on the first line.



  1. Make the script executable: chmod a+rx install.sh

  2. Now run it: ./install.sh





share|improve this answer




























    up vote
    0
    down vote













    The first command is the correct one (so long as the script is in the current directory).
    The 3rd command is way off. The 2nd will do the same as the first.



    The script is running: This is not an error about not being able to run the script. Some command in the script is failing. But that is all I can tell you, because I don't know what is in the script.



    You don't need to make it executable to run it as sh script_name. If it has a first line starting #!… then it is designed to be made executable and run as ./script_name.



    If the script relies on bash (or other advanced shell) extensions. Then it may not run in sh



    To debug a script (if it is a bash script), you can run it as bash -x script_name




    It is recommended not to have extensions on executable: If you were to re-write in python, or C, then you would have to rename it. This is not a good think. (if a file is executable then it is executable. It is responsible for selecting its own interpreter (see #!)).






    share|improve this answer























      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448096%2ftrying-to-execute-a-sh-file-however-i-get-the-error-configuration-absent-in%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      The first two commands will run the script IF it is a shell script. But it might be Python. Or awk. Or a different shell entirely. So to be safe you shouldn't need to mention.sh explicitly, as most well written scripts specify the correct interpreter on the first line.



      1. Make the script executable: chmod a+rx install.sh

      2. Now run it: ./install.sh





      share|improve this answer

























        up vote
        0
        down vote













        The first two commands will run the script IF it is a shell script. But it might be Python. Or awk. Or a different shell entirely. So to be safe you shouldn't need to mention.sh explicitly, as most well written scripts specify the correct interpreter on the first line.



        1. Make the script executable: chmod a+rx install.sh

        2. Now run it: ./install.sh





        share|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          The first two commands will run the script IF it is a shell script. But it might be Python. Or awk. Or a different shell entirely. So to be safe you shouldn't need to mention.sh explicitly, as most well written scripts specify the correct interpreter on the first line.



          1. Make the script executable: chmod a+rx install.sh

          2. Now run it: ./install.sh





          share|improve this answer













          The first two commands will run the script IF it is a shell script. But it might be Python. Or awk. Or a different shell entirely. So to be safe you shouldn't need to mention.sh explicitly, as most well written scripts specify the correct interpreter on the first line.



          1. Make the script executable: chmod a+rx install.sh

          2. Now run it: ./install.sh






          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered Jun 6 at 9:24









          roaima

          39.2k544105




          39.2k544105






















              up vote
              0
              down vote













              The first command is the correct one (so long as the script is in the current directory).
              The 3rd command is way off. The 2nd will do the same as the first.



              The script is running: This is not an error about not being able to run the script. Some command in the script is failing. But that is all I can tell you, because I don't know what is in the script.



              You don't need to make it executable to run it as sh script_name. If it has a first line starting #!… then it is designed to be made executable and run as ./script_name.



              If the script relies on bash (or other advanced shell) extensions. Then it may not run in sh



              To debug a script (if it is a bash script), you can run it as bash -x script_name




              It is recommended not to have extensions on executable: If you were to re-write in python, or C, then you would have to rename it. This is not a good think. (if a file is executable then it is executable. It is responsible for selecting its own interpreter (see #!)).






              share|improve this answer



























                up vote
                0
                down vote













                The first command is the correct one (so long as the script is in the current directory).
                The 3rd command is way off. The 2nd will do the same as the first.



                The script is running: This is not an error about not being able to run the script. Some command in the script is failing. But that is all I can tell you, because I don't know what is in the script.



                You don't need to make it executable to run it as sh script_name. If it has a first line starting #!… then it is designed to be made executable and run as ./script_name.



                If the script relies on bash (or other advanced shell) extensions. Then it may not run in sh



                To debug a script (if it is a bash script), you can run it as bash -x script_name




                It is recommended not to have extensions on executable: If you were to re-write in python, or C, then you would have to rename it. This is not a good think. (if a file is executable then it is executable. It is responsible for selecting its own interpreter (see #!)).






                share|improve this answer

























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  The first command is the correct one (so long as the script is in the current directory).
                  The 3rd command is way off. The 2nd will do the same as the first.



                  The script is running: This is not an error about not being able to run the script. Some command in the script is failing. But that is all I can tell you, because I don't know what is in the script.



                  You don't need to make it executable to run it as sh script_name. If it has a first line starting #!… then it is designed to be made executable and run as ./script_name.



                  If the script relies on bash (or other advanced shell) extensions. Then it may not run in sh



                  To debug a script (if it is a bash script), you can run it as bash -x script_name




                  It is recommended not to have extensions on executable: If you were to re-write in python, or C, then you would have to rename it. This is not a good think. (if a file is executable then it is executable. It is responsible for selecting its own interpreter (see #!)).






                  share|improve this answer















                  The first command is the correct one (so long as the script is in the current directory).
                  The 3rd command is way off. The 2nd will do the same as the first.



                  The script is running: This is not an error about not being able to run the script. Some command in the script is failing. But that is all I can tell you, because I don't know what is in the script.



                  You don't need to make it executable to run it as sh script_name. If it has a first line starting #!… then it is designed to be made executable and run as ./script_name.



                  If the script relies on bash (or other advanced shell) extensions. Then it may not run in sh



                  To debug a script (if it is a bash script), you can run it as bash -x script_name




                  It is recommended not to have extensions on executable: If you were to re-write in python, or C, then you would have to rename it. This is not a good think. (if a file is executable then it is executable. It is responsible for selecting its own interpreter (see #!)).







                  share|improve this answer















                  share|improve this answer



                  share|improve this answer








                  edited Jun 6 at 9:39


























                  answered Jun 6 at 7:58









                  ctrl-alt-delor

                  8,75831947




                  8,75831947






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f448096%2ftrying-to-execute-a-sh-file-however-i-get-the-error-configuration-absent-in%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Displaying single band from multi-band raster using QGIS

                      How many registers does an x86_64 CPU actually have?