LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2015, 07:06 PM   #1
ASTRAPI
Member
 
Registered: Feb 2007
Posts: 210

Rep: Reputation: 16
Question Debian 7 ssh error: -bash: apy-get: command not found


Hi

I just got a vps server and i try to run apt-get update and i got this:

Code:
-bash: apt-get: command not found
Any ideas how to fix it?

Even if i try manual to install it i am getting:

Code:
configure: error: cannot run /bin/sh buildlib/config.sub
dpkg also missing and gcc compiler ....

Thanks

Last edited by ASTRAPI; 03-18-2015 at 08:00 PM.
 
Old 03-18-2015, 08:43 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Are you running the apt-get command as the root user? You generally need to do this.

Compiling from source will not work without the proper development tools installed.
 
Old 03-18-2015, 08:52 PM   #3
ASTRAPI
Member
 
Registered: Feb 2007
Posts: 210

Original Poster
Rep: Reputation: 16
Yes i am as root....

How can i install the proper development tools?
 
Old 03-18-2015, 09:23 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Quote:
Originally Posted by ASTRAPI View Post

I just got a vps server and i try to run apt-get update and i got this:

Code:
-bash: apt-get: command not found
Are you sure this is really a Debian machine. Please post the output of the following commands to help us diagnose the situation.
Code:
/usr/bin/lsb_release --all
/usr/bin/file /usr/bin/dpkg
/usr/bin/file /usr/bin/apt
echo $PATH
Evo2.
 
Old 03-18-2015, 10:31 PM   #5
ASTRAPI
Member
 
Registered: Feb 2007
Posts: 210

Original Poster
Rep: Reputation: 16
I was select Debian 7 and as i know Digital Ocean installs a minimum installation of it...

Code:
[root@server1 ~]# /usr/bin/lsb_release --all
-bash: /usr/bin/lsb_release: No such file or directory
[root@server1 ~]# /usr/bin/file /usr/bin/dpkg
/usr/bin/dpkg: cannot open (No such file or directory)
[root@server1 ~]# /usr/bin/file /usr/bin/apt
/usr/bin/apt: cannot open (No such file or directory)
[root@server1 ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin

Last edited by ASTRAPI; 03-18-2015 at 10:32 PM.
 
Old 03-18-2015, 10:40 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

Debian without /usr/bin/dpkg?

Can you provide any evidence that this is really a Debian installation? Eg.
Code:
cat /etc/*release*
cat /etc/issue
cat /etc/motd
/bin/uname -a
Etc...

Evo2.
 
Old 03-19-2015, 09:30 AM   #7
ASTRAPI
Member
 
Registered: Feb 2007
Posts: 210

Original Poster
Rep: Reputation: 16
Damn it is a bug on the host as it is finally Centos...

Sorry for that guys....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] -bash: ssh.keygen: command not found threezerous Linux - Newbie 2 07-06-2014 01:31 PM
[SOLVED] Centos 5 Error :- -bash: yum: command not found sachinsud Linux - Server 56 06-21-2012 08:41 PM
Strange output when ssh - bash: ... command not found Azazwa Linux - Newbie 3 05-11-2009 10:23 AM
(Debian) bash: java: command not found pjpeter Linux - Newbie 3 09-25-2004 03:59 PM
bash: command not found error ksgill Linux - Newbie 10 07-01-2003 04:47 PM


All times are GMT -5. The time now is 07:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration