Ubuntu 14.04.2 LTS: 'find' not found in PATH or not executable

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











up vote
1
down vote

favorite












I am trying to install some graphics libraries with the following command:



sudo apt install jpegoptim optipng


It however fails to run with stating the following:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
jpegoptim optipng
0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
Need to get 0 B/208 kB of archives.
After this operation, 625 kB of additional disk space will be used.
dpkg: warning: 'find' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)


I then try to install find with the following command:



sudo apt-get install findutils


But it fails to install as it says it is already installed:



Reading package lists... Done
Building dependency tree
Reading state information... Done
findutils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 273 not upgraded.


I noticed that my /etc/environment file was empty and I added the following to that:



PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin


Unfortunately that has not worked either. It stil results in:



Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
jpegoptim optipng
0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
Need to get 0 B/208 kB of archives.
After this operation, 625 kB of additional disk space will be used.
dpkg: warning: 'find' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)


I have also tried putting the following in the .bashrc file:



export PATH=$PATH:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin


but it still complains about the PATH being incorrect.



The servers I am working with were setup around 2 years ago. I have been working with them for around a week and this is the first time I am attempting to install something.



Could anyone help out here with any other solutions that I am missing?



Thanks









share







New contributor




Paul Acc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    1
    down vote

    favorite












    I am trying to install some graphics libraries with the following command:



    sudo apt install jpegoptim optipng


    It however fails to run with stating the following:



    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    jpegoptim optipng
    0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
    Need to get 0 B/208 kB of archives.
    After this operation, 625 kB of additional disk space will be used.
    dpkg: warning: 'find' not found in PATH or not executable
    dpkg: error: 1 expected program not found in PATH or not executable
    Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
    E: Sub-process /usr/bin/dpkg returned an error code (2)


    I then try to install find with the following command:



    sudo apt-get install findutils


    But it fails to install as it says it is already installed:



    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    findutils is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 273 not upgraded.


    I noticed that my /etc/environment file was empty and I added the following to that:



    PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin


    Unfortunately that has not worked either. It stil results in:



    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    jpegoptim optipng
    0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
    Need to get 0 B/208 kB of archives.
    After this operation, 625 kB of additional disk space will be used.
    dpkg: warning: 'find' not found in PATH or not executable
    dpkg: error: 1 expected program not found in PATH or not executable
    Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
    E: Sub-process /usr/bin/dpkg returned an error code (2)


    I have also tried putting the following in the .bashrc file:



    export PATH=$PATH:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin


    but it still complains about the PATH being incorrect.



    The servers I am working with were setup around 2 years ago. I have been working with them for around a week and this is the first time I am attempting to install something.



    Could anyone help out here with any other solutions that I am missing?



    Thanks









    share







    New contributor




    Paul Acc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am trying to install some graphics libraries with the following command:



      sudo apt install jpegoptim optipng


      It however fails to run with stating the following:



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following NEW packages will be installed:
      jpegoptim optipng
      0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
      Need to get 0 B/208 kB of archives.
      After this operation, 625 kB of additional disk space will be used.
      dpkg: warning: 'find' not found in PATH or not executable
      dpkg: error: 1 expected program not found in PATH or not executable
      Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
      E: Sub-process /usr/bin/dpkg returned an error code (2)


      I then try to install find with the following command:



      sudo apt-get install findutils


      But it fails to install as it says it is already installed:



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      findutils is already the newest version.
      0 upgraded, 0 newly installed, 0 to remove and 273 not upgraded.


      I noticed that my /etc/environment file was empty and I added the following to that:



      PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin


      Unfortunately that has not worked either. It stil results in:



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following NEW packages will be installed:
      jpegoptim optipng
      0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
      Need to get 0 B/208 kB of archives.
      After this operation, 625 kB of additional disk space will be used.
      dpkg: warning: 'find' not found in PATH or not executable
      dpkg: error: 1 expected program not found in PATH or not executable
      Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
      E: Sub-process /usr/bin/dpkg returned an error code (2)


      I have also tried putting the following in the .bashrc file:



      export PATH=$PATH:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin


      but it still complains about the PATH being incorrect.



      The servers I am working with were setup around 2 years ago. I have been working with them for around a week and this is the first time I am attempting to install something.



      Could anyone help out here with any other solutions that I am missing?



      Thanks









      share







      New contributor




      Paul Acc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I am trying to install some graphics libraries with the following command:



      sudo apt install jpegoptim optipng


      It however fails to run with stating the following:



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following NEW packages will be installed:
      jpegoptim optipng
      0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
      Need to get 0 B/208 kB of archives.
      After this operation, 625 kB of additional disk space will be used.
      dpkg: warning: 'find' not found in PATH or not executable
      dpkg: error: 1 expected program not found in PATH or not executable
      Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
      E: Sub-process /usr/bin/dpkg returned an error code (2)


      I then try to install find with the following command:



      sudo apt-get install findutils


      But it fails to install as it says it is already installed:



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      findutils is already the newest version.
      0 upgraded, 0 newly installed, 0 to remove and 273 not upgraded.


      I noticed that my /etc/environment file was empty and I added the following to that:



      PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin


      Unfortunately that has not worked either. It stil results in:



      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following NEW packages will be installed:
      jpegoptim optipng
      0 upgraded, 2 newly installed, 0 to remove and 273 not upgraded.
      Need to get 0 B/208 kB of archives.
      After this operation, 625 kB of additional disk space will be used.
      dpkg: warning: 'find' not found in PATH or not executable
      dpkg: error: 1 expected program not found in PATH or not executable
      Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
      E: Sub-process /usr/bin/dpkg returned an error code (2)


      I have also tried putting the following in the .bashrc file:



      export PATH=$PATH:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin


      but it still complains about the PATH being incorrect.



      The servers I am working with were setup around 2 years ago. I have been working with them for around a week and this is the first time I am attempting to install something.



      Could anyone help out here with any other solutions that I am missing?



      Thanks







      bash ubuntu apt path





      share







      New contributor




      Paul Acc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Paul Acc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Paul Acc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 mins ago









      Paul Acc

      6




      6




      New contributor




      Paul Acc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Paul Acc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Paul Acc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          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
          );



          );






          Paul Acc is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475868%2fubuntu-14-04-2-lts-find-not-found-in-path-or-not-executable%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Paul Acc is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          Paul Acc is a new contributor. Be nice, and check out our Code of Conduct.












          Paul Acc is a new contributor. Be nice, and check out our Code of Conduct.











          Paul Acc is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475868%2fubuntu-14-04-2-lts-find-not-found-in-path-or-not-executable%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)