sudo: apt-get: command not found

25,330

As normal user run sudo dpkg --configure -a, apt-get is working for root user.enter image description here

Share:
25,330

Related videos on Youtube

sourav
Author by

sourav

Unix only

Updated on September 18, 2022

Comments

  • sourav
    sourav over 1 year

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

    • Kalle Richter
      Kalle Richter almost 8 years
      What does which apt-get say ran as root?
    • Anwar
      Anwar almost 8 years
      What do you mean by running as root? using sudo or not?
    • sourav
      sourav almost 8 years
      result of which apt-get /usr/bin/apt-get
  • Anwar
    Anwar almost 8 years
    OP said apt-get install build-essential manpages-dev doesn't work. why do you think it will work with --simulate switch?
  • karel
    karel almost 8 years
    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.
  • sourav
    sourav almost 8 years
    Its working after install all the packages. Thanks Man.
  • karel
    karel almost 8 years
    Either way, the cat's out of the bag now.