Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 35 guests and 1 member online
 
Advertisement

You are here:
EH-Net
May 25, 2013, 02:50:00 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: I cant install MSF on my ubuntu 12.10  (Read 6022 times)
0 Members and 1 Guest are viewing this topic.
fred
Sr. Member
****
Offline Offline

Posts: 351


The World is sick, Save your mind...


View Profile
« on: December 07, 2012, 05:41:02 AM »

Hi there,
For some reasons i can't use backtrack for a month and i decided to use ubuntu 12.10. i downloaded the "metasploit-latest-linux-installer.run" file and i did these commands:

sudo su
chmod +X metasploit-latest-linux-installer.run
sudo ./metasploit-latest-linux-installer.run

but it gives me command not found error can you help me?? i dont wannna install it online using apt-get command.
Logged

ICS Academy Network Security Certified
m0wgli
Full Member
***
Offline Offline

Posts: 248


View Profile
« Reply #1 on: December 07, 2012, 06:24:31 AM »

Have you tried it without the sudo su step?
Logged

Security + | OSWP | eCPPT | CSTA
fred
Sr. Member
****
Offline Offline

Posts: 351


The World is sick, Save your mind...


View Profile
« Reply #2 on: December 07, 2012, 06:48:55 AM »

Have you tried it without the sudo su step?

Yes i did that but i got the same error
Logged

ICS Academy Network Security Certified
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #3 on: December 07, 2012, 06:54:51 AM »

What command is it barking about?

Also, if you're already sudo su, why are you sudo'ing the final command?
« Last Edit: December 07, 2012, 06:56:49 AM by hayabusa » Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
Andrew Waite
Hero Member
*****
Offline Offline

Posts: 928



View Profile WWW
« Reply #4 on: December 07, 2012, 06:56:25 AM »

Could be many things, have you checked all the usual candidates? download checksums? File/user permissions? etc?

Possible stupid (and/or insulting - not intended) question, you are in same directory as the *.run installer when issuing the ./*.run command?

I'm running on 12.10 and MSF running perfectly my end.....
Logged

fred
Sr. Member
****
Offline Offline

Posts: 351


The World is sick, Save your mind...


View Profile
« Reply #5 on: December 07, 2012, 06:59:49 AM »

Could be many things, have you checked all the usual candidates? download checksums? File/user permissions? etc?

Possible stupid (and/or insulting - not intended) question, you are in same directory as the *.run installer when issuing the ./*.run command?

I'm running on 12.10 and MSF running perfectly my end.....

If i can rename it del it and make it executable through terminal it means i have enough perms and my path is correct im not new on linux
Logged

ICS Academy Network Security Certified
fred
Sr. Member
****
Offline Offline

Posts: 351


The World is sick, Save your mind...


View Profile
« Reply #6 on: December 07, 2012, 07:06:49 AM »

What command is it barking about?

Also, if you're already sudo su, why are you sudo'ing the final command?

Yeah ur right i'm wondering too however i used sudo su but if i dont use sudo for my command it gives me perm denied error
Logged

ICS Academy Network Security Certified
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #7 on: December 07, 2012, 07:07:10 AM »

Try this (if you haven't already):

http://www.johanpaul.com/blog/2012/02/sudo-script-sh-command-not-found-on-ubuntu/

Edit -

The actual 'fix' from that post:

"Update: Seem Björn's blog is down, so I'll post the solution here. Put the following line to your $HOME/.bashrc file:

alias sudo='sudo env PATH=$PATH $@'
And the run source $HOME/.bashrc (this will not be necessary on subsequent boots or starts of the terminal). You should again be able to run your scripts with sudo.

This will enable the fix only for me, as I put the alias in my .bashrc file, so it's not even a terrible security risk. And that's fine."
« Last Edit: December 07, 2012, 07:12:14 AM by hayabusa » Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
Andrew Waite
Hero Member
*****
Offline Offline

Posts: 928



View Profile WWW
« Reply #8 on: December 07, 2012, 07:08:02 AM »

Quote from: Cyber.spirit link=topic=9735.msg54320#msg54320
im not new on linux

Hence my attempted caveat. But you are having problems, and you did ask for help; which I was trying to provide. Won't bother next time.
Logged

fred
Sr. Member
****
Offline Offline

Posts: 351


The World is sick, Save your mind...


View Profile
« Reply #9 on: December 07, 2012, 07:29:09 AM »

hayabusa the problem was so stupid!
When i used chmod +x it won't make executable. I just used chmod 777 and msf is installing now!!!
Logged

ICS Academy Network Security Certified
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #10 on: December 07, 2012, 07:33:36 AM »

OK, well, with regard to my other reply (the thread about the paths), it might be something to keep in mind.

To THAT end, here's a bit more about that issue:

http://askubuntu.com/questions/146869/why-does-sudo-not-add-roots-path-with-ubuntu-12-04

Glad you got it working.   Smiley

<Edit> (again) -

I'd be curious if the "sudo ./metasploit-latest-linux-installer.run" would've worked properly, if you HADN'T already been sudo su, without the aformentioned PATH workarounds. Maybe I'll test it out, if time permits (not likely, the way this morning's shaking out.)  Anyway, again, glad it works.

</edit>
« Last Edit: December 07, 2012, 07:37:20 AM by hayabusa » Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
m0wgli
Full Member
***
Offline Offline

Posts: 248


View Profile
« Reply #11 on: December 07, 2012, 07:37:02 AM »

I just noticed in your first post that you had a capital X which won't change it, but your last post has a lowercase x. Just interested to know, do you still get that problem if use a lowercase x?
Logged

Security + | OSWP | eCPPT | CSTA
hayabusa
Hero Member
*****
Offline Offline

Posts: 1633



View Profile
« Reply #12 on: December 07, 2012, 07:38:43 AM »

I just noticed in your first post that you had a capital X which won't change it, but your last post has a lowercase x. Just interested to know, do you still get that problem if use a lowercase x?

...and then there's that...
Logged

~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
fred
Sr. Member
****
Offline Offline

Posts: 351


The World is sick, Save your mind...


View Profile
« Reply #13 on: December 07, 2012, 07:39:25 AM »

Quote from: Cyber.spirit link=topic=9735.msg54320#msg54320
im not new on linux

Hence my attempted caveat. But you are having problems, and you did ask for help; which I was trying to provide. Won't bother next time.

Andrew man your not bothering me i just wanted to mention my situation. please don't be sad of my reply.
Logged

ICS Academy Network Security Certified
fred
Sr. Member
****
Offline Offline

Posts: 351


The World is sick, Save your mind...


View Profile
« Reply #14 on: December 07, 2012, 07:41:38 AM »

I just noticed in your first post that you had a capital X which won't change it, but your last post has a lowercase x. Just interested to know, do you still get that problem if use a lowercase x?

No No it was just wrong type here i know x must be lower case and i typed lower case in ternminal but it didn't work!!!!!!!!!!!!!!!!!!!!!!!!!!1
Logged

ICS Academy Network Security Certified
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.06 seconds with 22 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
SANSFIRE 2013
June 15 - 22

5% Off w/ Code: EHN_5

SANS Deals 4 EH-Netters
5% OFF Any SANS Course in Any Format!
Coupon Code: EHN_5 Including SANS Rocky Mountain 2013 & SANS Boston 2013
Polls
Compared to this year, 2013 will be:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Free Business and Tech Magazines and eBooks

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.