Results 1 to 6 of 6

Thread: Can not find the command apt-get

  1. #1
    Join Date
    Nov 2009
    Posts
    518

    Can not find the command apt-get

    Hi
    I am in a problem, when I type
    Code:
    sudo apt-get install postfix
    It said
    Code:
    sudo apt-get: command not found
    It only for me to install an SMTP server as postfix for sending mail alert. Thank you in advance.

  2. #2
    Join Date
    Apr 2008
    Posts
    4,642

    Re: Can not find the command apt-get

    Hi
    Try this command with the terminal (recommended by Debian because it better handles dependencies):
    Code:
    aptitude update
    To update the repositories (as root).
    Code:
    aptitude install progname
    Then install a program (as root). Otherwise, also tries to su -- before launching apt-get (or ability if you have the same problem with). Hope this may help you.

  3. #3
    Join Date
    May 2008
    Posts
    4,831

    Re: Can not find the command apt-get

    Hello
    Try this first, then you may install the apt program
    Code:
    apt-cache policy apt
    To see if the apt package is installed on your machine, and the result is negative because
    Code:
    sudo apt-get install apt
    Do you use a distribution based on debian?

  4. #4
    Join Date
    Apr 2008
    Posts
    2,139

    Re: Can not find the command apt-get

    Hi
    Code:
    sudo apt-get install apt
    How can he issue apt-get if the system can not find apt-get ? In my case, I suggest to download the apt package from Debian site, and type:
    Code:
    dpkg-i. / packagename
    Thus, it is again possible to use apt-get. Hope this information will help you. Any more problems do post back.

  5. #5
    Join Date
    Apr 2008
    Posts
    4,642

    Re: Can not find the command apt-get

    Hi
    Code:
    How can he issue apt-get if the system can not find apt-get ?
    Indeed, his post surprised me , otherwise the Debian site recommends the use of ability (this is not the same package apt-get ?). He can already see where this command is present and possibly use it to install apt (which is not really useful for the benefit of fitness). Otherwise, with dkpg as stated above. With all that the problem should be solved.

  6. #6
    Join Date
    Apr 2008
    Posts
    2,139

    Re: Can not find the command apt-get

    Hi
    Otherwise, with dkpg as stated above. With all that the problem should be solved.
    Yes, of course. But it is still rare that ability is installed by default. And as he is expressed as a beginner, I doubt a bit that has installed ability. That is why I proposed the solution dpkg. For the rest, totally agrees with you.

Similar Threads

  1. setup cannot find c:\windows\command.com
    By Kuprin in forum Operating Systems
    Replies: 3
    Last Post: 22-06-2009, 08:23 PM
  2. Command to find size of a directory
    By ThunDer_22 in forum Software Development
    Replies: 2
    Last Post: 17-06-2009, 02:14 PM
  3. Windows can't find Wordpad from Run command line?
    By Peach in forum Windows XP Support
    Replies: 2
    Last Post: 24-05-2009, 07:37 AM
  4. What is the command to find time server
    By dave@at in forum Active Directory
    Replies: 2
    Last Post: 23-12-2008, 02:36 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,030,456.14848 seconds with 16 queries