Go Back   TechArena Community > Software > Windows Software
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



Can not find the command apt-get

Windows Software


Reply
 
Thread Tools Search this Thread
  #1  
Old 16-12-2009
Member
 
Join Date: Nov 2009
Posts: 520
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.
Reply With Quote
  #2  
Old 16-12-2009
Eric B's Avatar
Member
 
Join Date: Apr 2008
Posts: 4,645
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.
Reply With Quote
  #3  
Old 16-12-2009
Macarenas's Avatar
Member
 
Join Date: May 2008
Posts: 4,810
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?
Reply With Quote
  #4  
Old 16-12-2009
chroma's Avatar
Member
 
Join Date: Apr 2008
Posts: 2,144
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.
Reply With Quote
  #5  
Old 16-12-2009
Eric B's Avatar
Member
 
Join Date: Apr 2008
Posts: 4,645
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.
Reply With Quote
  #6  
Old 16-12-2009
chroma's Avatar
Member
 
Join Date: Apr 2008
Posts: 2,144
Re: Can not find the command apt-get

Hi
Quote:
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.
Reply With Quote
Reply

  TechArena Community > Software > Windows Software


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Can not find the command apt-get"
Thread Thread Starter Forum Replies Last Post
How to delete files that appear in find command's output in Linux jAYASENA Operating Systems 6 27-05-2011 11:20 AM
I am not able to find the f3 search command in Windows 7 Quintessa Operating Systems 5 31-01-2011 12:06 AM
setup cannot find c:\windows\command.com Kuprin Operating Systems 3 22-06-2009 09:23 PM
Command to find size of a directory ThunDer_22 Software Development 2 17-06-2009 03:14 PM
Windows can't find Wordpad from Run command line? BudV Windows XP Support 3 24-05-2009 08:37 AM


All times are GMT +5.5. The time now is 11:04 PM.