Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, Please excuse my n00bie question. I have some experience using Linux, but mostly Ubuntu -- this is my first time using Debian. I am trying to install software by ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    3

    bash: apt-get not found?


    Hello,

    Please excuse my n00bie question. I have some experience using Linux, but mostly Ubuntu -- this is my first time using Debian. I am trying to install software by way of apt-get or dpkg, but in both instances (when I invoke their binaries) I get:

    bash: x command not found, where x is the binary name.

    As I understand from reading other posts, these binaries should be located at /usr/bin ? I do not see them there. I have tried the commands using both user and root access. Same result (which makes sense if the binaries don't exist)

    Why would Debian come without these [core?] components installed? Moreover, how can I install them manually? Debian -- Details of package apt in etch looks like a place where I can download apt-get, however it is provided in a .deb format (instead of .tar.gz) and iirc you need dpkg to install .deb files?

    Please help me out of this "circular dependency" nightmare.

    Goal: Be able to use apt-get and dpkg from command line

    Thanks,

    Mike

    PS. Why aren't these utilities installed by default?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    apt-get and dpkg are pre-installed in Debian. Both are default package managers and available in even Debian Minimal install.

    Does your machine has internet access?
    Execute this
    Code:
    su -
    apt-get update
    Post exact error message here, if any.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Apr 2008
    Posts
    3
    Quote Originally Posted by devils casper View Post
    Hi and Welcome !

    apt-get and dpkg are pre-installed in Debian. Both are default package managers and available in even Debian Minimal install.

    Does your machine has internet access?
    Execute this
    Code:
    su -
    apt-get update
    Post exact error message here, if any.
    Thank you for the fast response!

    Yes, my machine does have internet access (I've used wget a few times today already)

    When I execute the command you requested I get:


    [root@server mike]# apt-get update
    bash: apt-get: command not found
    [root@server mike]#

    Thank you!

  4. #4
    Just Joined!
    Join Date
    Apr 2008
    Posts
    3
    I'm still perplexed by this situation. After reading other threads I've come to the conclusion that there should also be a command called "deb" -- this also cannot be found.

    I guess what I'm looking for is a place where I can download (in a standard tar.gz format) either the deb program, the apt-get tool, or dpkg tool. Once I have one of these, it should be trivial to obtain whatever else I need.

    I'm still curious why these tools [which in my opinion are critical for extended operation] were not installed.

    Thanks,
    Mike / First time Debian user

  5. #5
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    it sounds like your install is messed up in some way. debian without dpkg is like redhat without rpm. without dpkg I don't know how much of anything could get installed.

    also apt-get is installed by default. if you install a minimum install and deselect all extras apt-get is still installed. if this is a new install and you haven't done much I would think about reinstalling. dpkg and apt tools are both in /usr/bin

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Type apt- and hit TAB key twice. Does it list any command(s)?
    Execute this too :
    Code:
    ls /usr/bin/apt*
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •