sudo: apt-get: command not found












0















When I run apt-get update as root user it's working well, but not working for apt-get install build-essential manpages-dev (showing apt-get command not found).










share|improve this question




















  • 1





    What does which apt-get say ran as root?

    – Karl Richter
    Aug 3 '16 at 12:47











  • What do you mean by running as root? using sudo or not?

    – Anwar
    Aug 3 '16 at 13:41






  • 1





    result of which apt-get /usr/bin/apt-get

    – sourav
    Aug 3 '16 at 14:33


















0















When I run apt-get update as root user it's working well, but not working for apt-get install build-essential manpages-dev (showing apt-get command not found).










share|improve this question




















  • 1





    What does which apt-get say ran as root?

    – Karl Richter
    Aug 3 '16 at 12:47











  • What do you mean by running as root? using sudo or not?

    – Anwar
    Aug 3 '16 at 13:41






  • 1





    result of which apt-get /usr/bin/apt-get

    – sourav
    Aug 3 '16 at 14:33
















0












0








0








When I run apt-get update as root user it's working well, but not working for apt-get install build-essential manpages-dev (showing apt-get command not found).










share|improve this question
















When I run apt-get update as root user it's working well, but not working for apt-get install build-essential manpages-dev (showing apt-get command not found).







14.04 command-line apt gnome-terminal






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 3 '16 at 12:46









Karl Richter

2,49483569




2,49483569










asked Aug 3 '16 at 10:29









souravsourav

791313




791313








  • 1





    What does which apt-get say ran as root?

    – Karl Richter
    Aug 3 '16 at 12:47











  • What do you mean by running as root? using sudo or not?

    – Anwar
    Aug 3 '16 at 13:41






  • 1





    result of which apt-get /usr/bin/apt-get

    – sourav
    Aug 3 '16 at 14:33
















  • 1





    What does which apt-get say ran as root?

    – Karl Richter
    Aug 3 '16 at 12:47











  • What do you mean by running as root? using sudo or not?

    – Anwar
    Aug 3 '16 at 13:41






  • 1





    result of which apt-get /usr/bin/apt-get

    – sourav
    Aug 3 '16 at 14:33










1




1





What does which apt-get say ran as root?

– Karl Richter
Aug 3 '16 at 12:47





What does which apt-get say ran as root?

– Karl Richter
Aug 3 '16 at 12:47













What do you mean by running as root? using sudo or not?

– Anwar
Aug 3 '16 at 13:41





What do you mean by running as root? using sudo or not?

– Anwar
Aug 3 '16 at 13:41




1




1





result of which apt-get /usr/bin/apt-get

– sourav
Aug 3 '16 at 14:33







result of which apt-get /usr/bin/apt-get

– sourav
Aug 3 '16 at 14:33












3 Answers
3






active

oldest

votes


















-1














You first login as root user, then try this one,



apt-get update;

apt-cache search package name;


It will show the proper package name,
Then you can install it through the apt-get install package name.
https://ubuntuforums.org/showthread.php?t=291651






share|improve this answer


























  • Its working after install all the packages. Thanks Man.

    – sourav
    Aug 3 '16 at 15:22



















0














Check the PATH variable (echo $PATH) to see if there's something wrong there (please post the output here).



Also, try to copy a clean .bashrc file from /etc/skel (backup your current ~/.bashrc file before)



Hope this helps ;D






share|improve this answer































    0














    Try simulating the command without doing anything else, in order to get only the command's error messages:



    sudo apt update  
    apt install --simulate build-essential manpages-dev


    If there are no error messages, try running the commands as root without the --simulate option.



    sudo apt update  
    sudo apt install build-essential manpages-dev





    share|improve this answer


























    • OP said apt-get install build-essential manpages-dev doesn't work. why do you think it will work with --simulate switch?

      – Anwar
      Aug 3 '16 at 14:05











    • In case he ranapt–get install (with an en dash between apt and get) or apt~get install, either of which would result in something like an apt~get command not found error message, I'm trying to trick him with the sneaky placebo --simulate option into copy/pasting the correct command instead.

      – karel
      Aug 3 '16 at 14:35













    • In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.

      – Anwar
      Aug 3 '16 at 15:38






    • 1





      Either way, the cat's out of the bag now.

      – karel
      Aug 3 '16 at 15:56











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f806496%2fsudo-apt-get-command-not-found%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    -1














    You first login as root user, then try this one,



    apt-get update;

    apt-cache search package name;


    It will show the proper package name,
    Then you can install it through the apt-get install package name.
    https://ubuntuforums.org/showthread.php?t=291651






    share|improve this answer


























    • Its working after install all the packages. Thanks Man.

      – sourav
      Aug 3 '16 at 15:22
















    -1














    You first login as root user, then try this one,



    apt-get update;

    apt-cache search package name;


    It will show the proper package name,
    Then you can install it through the apt-get install package name.
    https://ubuntuforums.org/showthread.php?t=291651






    share|improve this answer


























    • Its working after install all the packages. Thanks Man.

      – sourav
      Aug 3 '16 at 15:22














    -1












    -1








    -1







    You first login as root user, then try this one,



    apt-get update;

    apt-cache search package name;


    It will show the proper package name,
    Then you can install it through the apt-get install package name.
    https://ubuntuforums.org/showthread.php?t=291651






    share|improve this answer















    You first login as root user, then try this one,



    apt-get update;

    apt-cache search package name;


    It will show the proper package name,
    Then you can install it through the apt-get install package name.
    https://ubuntuforums.org/showthread.php?t=291651







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Aug 3 '16 at 11:09

























    answered Aug 3 '16 at 11:04









    GanapathyGanapathy

    1469




    1469













    • Its working after install all the packages. Thanks Man.

      – sourav
      Aug 3 '16 at 15:22



















    • Its working after install all the packages. Thanks Man.

      – sourav
      Aug 3 '16 at 15:22

















    Its working after install all the packages. Thanks Man.

    – sourav
    Aug 3 '16 at 15:22





    Its working after install all the packages. Thanks Man.

    – sourav
    Aug 3 '16 at 15:22













    0














    Check the PATH variable (echo $PATH) to see if there's something wrong there (please post the output here).



    Also, try to copy a clean .bashrc file from /etc/skel (backup your current ~/.bashrc file before)



    Hope this helps ;D






    share|improve this answer




























      0














      Check the PATH variable (echo $PATH) to see if there's something wrong there (please post the output here).



      Also, try to copy a clean .bashrc file from /etc/skel (backup your current ~/.bashrc file before)



      Hope this helps ;D






      share|improve this answer


























        0












        0








        0







        Check the PATH variable (echo $PATH) to see if there's something wrong there (please post the output here).



        Also, try to copy a clean .bashrc file from /etc/skel (backup your current ~/.bashrc file before)



        Hope this helps ;D






        share|improve this answer













        Check the PATH variable (echo $PATH) to see if there's something wrong there (please post the output here).



        Also, try to copy a clean .bashrc file from /etc/skel (backup your current ~/.bashrc file before)



        Hope this helps ;D







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 3 '16 at 11:30









        ManuManu

        1007




        1007























            0














            Try simulating the command without doing anything else, in order to get only the command's error messages:



            sudo apt update  
            apt install --simulate build-essential manpages-dev


            If there are no error messages, try running the commands as root without the --simulate option.



            sudo apt update  
            sudo apt install build-essential manpages-dev





            share|improve this answer


























            • OP said apt-get install build-essential manpages-dev doesn't work. why do you think it will work with --simulate switch?

              – Anwar
              Aug 3 '16 at 14:05











            • In case he ranapt–get install (with an en dash between apt and get) or apt~get install, either of which would result in something like an apt~get command not found error message, I'm trying to trick him with the sneaky placebo --simulate option into copy/pasting the correct command instead.

              – karel
              Aug 3 '16 at 14:35













            • In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.

              – Anwar
              Aug 3 '16 at 15:38






            • 1





              Either way, the cat's out of the bag now.

              – karel
              Aug 3 '16 at 15:56
















            0














            Try simulating the command without doing anything else, in order to get only the command's error messages:



            sudo apt update  
            apt install --simulate build-essential manpages-dev


            If there are no error messages, try running the commands as root without the --simulate option.



            sudo apt update  
            sudo apt install build-essential manpages-dev





            share|improve this answer


























            • OP said apt-get install build-essential manpages-dev doesn't work. why do you think it will work with --simulate switch?

              – Anwar
              Aug 3 '16 at 14:05











            • In case he ranapt–get install (with an en dash between apt and get) or apt~get install, either of which would result in something like an apt~get command not found error message, I'm trying to trick him with the sneaky placebo --simulate option into copy/pasting the correct command instead.

              – karel
              Aug 3 '16 at 14:35













            • In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.

              – Anwar
              Aug 3 '16 at 15:38






            • 1





              Either way, the cat's out of the bag now.

              – karel
              Aug 3 '16 at 15:56














            0












            0








            0







            Try simulating the command without doing anything else, in order to get only the command's error messages:



            sudo apt update  
            apt install --simulate build-essential manpages-dev


            If there are no error messages, try running the commands as root without the --simulate option.



            sudo apt update  
            sudo apt install build-essential manpages-dev





            share|improve this answer















            Try simulating the command without doing anything else, in order to get only the command's error messages:



            sudo apt update  
            apt install --simulate build-essential manpages-dev


            If there are no error messages, try running the commands as root without the --simulate option.



            sudo apt update  
            sudo apt install build-essential manpages-dev






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 2 at 9:44

























            answered Aug 3 '16 at 11:03









            karelkarel

            60.6k13131155




            60.6k13131155













            • OP said apt-get install build-essential manpages-dev doesn't work. why do you think it will work with --simulate switch?

              – Anwar
              Aug 3 '16 at 14:05











            • In case he ranapt–get install (with an en dash between apt and get) or apt~get install, either of which would result in something like an apt~get command not found error message, I'm trying to trick him with the sneaky placebo --simulate option into copy/pasting the correct command instead.

              – karel
              Aug 3 '16 at 14:35













            • In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.

              – Anwar
              Aug 3 '16 at 15:38






            • 1





              Either way, the cat's out of the bag now.

              – karel
              Aug 3 '16 at 15:56



















            • OP said apt-get install build-essential manpages-dev doesn't work. why do you think it will work with --simulate switch?

              – Anwar
              Aug 3 '16 at 14:05











            • In case he ranapt–get install (with an en dash between apt and get) or apt~get install, either of which would result in something like an apt~get command not found error message, I'm trying to trick him with the sneaky placebo --simulate option into copy/pasting the correct command instead.

              – karel
              Aug 3 '16 at 14:35













            • In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.

              – Anwar
              Aug 3 '16 at 15:38






            • 1





              Either way, the cat's out of the bag now.

              – karel
              Aug 3 '16 at 15:56

















            OP said apt-get install build-essential manpages-dev doesn't work. why do you think it will work with --simulate switch?

            – Anwar
            Aug 3 '16 at 14:05





            OP said apt-get install build-essential manpages-dev doesn't work. why do you think it will work with --simulate switch?

            – Anwar
            Aug 3 '16 at 14:05













            In case he ranapt–get install (with an en dash between apt and get) or apt~get install, either of which would result in something like an apt~get command not found error message, I'm trying to trick him with the sneaky placebo --simulate option into copy/pasting the correct command instead.

            – karel
            Aug 3 '16 at 14:35







            In case he ranapt–get install (with an en dash between apt and get) or apt~get install, either of which would result in something like an apt~get command not found error message, I'm trying to trick him with the sneaky placebo --simulate option into copy/pasting the correct command instead.

            – karel
            Aug 3 '16 at 14:35















            In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.

            – Anwar
            Aug 3 '16 at 15:38





            In this case, I would ask him if he typed the command correctly. You didn't mentioned in your answer explicitly saying to copy/paste this.

            – Anwar
            Aug 3 '16 at 15:38




            1




            1





            Either way, the cat's out of the bag now.

            – karel
            Aug 3 '16 at 15:56





            Either way, the cat's out of the bag now.

            – karel
            Aug 3 '16 at 15:56


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f806496%2fsudo-apt-get-command-not-found%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?