Results 1 to 8 of 8

Thread: Apt-get : command not found

  1. #1
    Join Date
    Sep 2011
    Beans
    3

    Apt-get : command not found

    HI,

    My linux machine does not have apt-get support. Could anybody tell me how can I install the apt-get command itself ?

    Thanks,

  2. #2
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Apt-get : command not found

    Hi

    Quote Originally Posted by shankarvalleru View Post
    HI,

    My linux machine does not have apt-get support. Could anybody tell me how can I install the apt-get command itself ?

    Thanks,
    Are you sure? It should be part of a standard Ubuntu install.

    What do these commands return

    Code:
    uname -a
    Code:
    cat /etc/lsb-release
    Code:
    file apt-get
    Code:
    ls -l /usr/bin/apt-get
    and
    Code:
    dpkg -l apt
    Code:
    echo $PATH
    If you do need to install it then..

    Install the apt package from a CD/USB or use wget to retreive it (and any depencencies) and install the deb files.

    Kind regards
    Last edited by matt_symes; February 9th, 2012 at 02:42 AM.
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  3. #3
    Join Date
    Sep 2011
    Beans
    3

    Re: Apt-get : command not found

    FYI:

    Code:
    # uname -a
    Linux testlinkdb01oak.jeeves.ask.info 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux
    
    # cat /etc/lsb-release
    cat: /etc/lsb-release: No such file or directory
    
    # file apt-get
    apt-get: cannot open (apt-get)
    
    # ls -l /usr/bin/apt-get
    ls: /usr/bin/apt-get: No such file or directory
    
    # dpkg -l apt
    bash: dpkg: command not found
    
    # echo $PATH
    /home/jre1.6.0_22/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin

  4. #4
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: Apt-get : command not found

    What version of Ubuntu are you running, and how are you running it?
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  5. #5
    Join Date
    Sep 2011
    Beans
    3

    Re: Apt-get : command not found

    Its not ubuntu, Its Cent OS. .!

  6. #6
    Join Date
    Apr 2010
    Location
    Virginia
    Beans
    54
    Distro
    Xubuntu 11.10 Oneiric Ocelot

    Re: Apt-get : command not found

    CentOS uses yum. So it would be

    Code:
    yum install gcc
    to install gcc for example.

    Ubuntu and CentOS/RHEL use different package managers. Ubuntu uses .deb (Debian Packages) and CentOS uses .rpm (Red Hat Package Manager)

    Also you should have placed this in the other distro section of the forums instead of the Ubuntu section. It gets confusing.
    Last edited by Rafterman414; February 9th, 2012 at 03:25 AM.

  7. #7
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: Apt-get : command not found

    Quote Originally Posted by shankarvalleru View Post
    Its not ubuntu, Its Cent OS. .!
    Thread moved to Other OS/Distro Talk.
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

  8. #8
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: Apt-get : command not found

    I've moved your thread to "Other OS/distro talk" and added the "Centos" tag, so other users of the forums don't get confused.
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

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
  •