Metasploit crashed after upgrade [closed] - metasploit

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I have recently upgraded metasploit framework and after doing it, when I try to launch it I get the next error:
msfconsole
Unable to find a spec satisfying metasploit-framework (>= 0) in the set. Perhaps the lockfile is corrupted?
Run bundle install to install missing gems.
I have unistalled it and reinstall but the problem continues. Any suggestion?

I had the same problem, the following fixed it:
sudo gem install bundler -v 2.2.4
sudo msfdb reinit
sudo msfconsole
Just be aware that the bundler version may have updated since this was posted and therefore may need to be changed. Check what version you're currently running before making these changes.
https://github.com/rapid7/metasploit-framework/issues/11597

What finally worked for me was updating my bundler then running bundle install :
/usr/share/metasploit-framework$ sudo gem install bundler:2.2.5
/usr/share/metasploit-framework$ sudo bundle install

happend to me too. but my solution was easier. i didnt touch kali for a while, so i did all the upgrades and therfore i started entering "sudo su". so when i then start msfconsole i get exactly the same error message. enter "exit" to leave root and try again... worked for me.

I got the same issue after doing sudo apt upgrade.
To fix that, I had to do sudo apt update && sudo apt full-upgrade -y.
I got this solution from here https://www.reddit.com/r/Kalilinux/comments/l4zi6i/hey_everyone/

Related

puppet-common (= 3.8.7-1puppetlabs1) Installling Error

Tried to update puppet master version and after removing previous version when I'm trying to install
puppet-common (= 3.8.7-1puppetlabs1)
below error occuring.
root#puppetmaster:/home/ubuntu/puppet# apt install puppet-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
puppet-common : Depends: libaugeas-ruby but it is not installable or
libaugeas-ruby1.9.1 but it is not installable or
libaugeas-ruby1.8 but it is not installable
E: Unable to correct problems, you have held broken packages.
apt-get install ruby
apt-get -f install
and
sudo apt-get install libaugeas-ruby
didn't work as gave in other solutions.
please do let me know if any other details needed.
Looking at the command prompt, you are using Ubuntu. Puppet isn't compatible with all versions of Ubuntu. I was getting the same error messages on Ubuntu 16.06 for the same version of Puppet (3.8.7-1). I tried a million things till I realized it was OS version to Puppet version match.
https://docs.puppet.com/puppet/3.8/install_debian_ubuntu.html
If you install a version of puppet supported by the OS you are using. It should install. Without knowing what version of Ubuntu you are on, it is possible this isn't the problem, but if so, you should be in good shape. Links below if you are on 16.04:
http://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-puppet-on-ubuntu-16-04.html
Your mileage may vary but the only way I could get around this problem was deleting all the puppet related .list files in /etc/apt/sources.list.d.
Files were
puppetlabs.list
puppetlabs-pc1.list
puppet.list
Once that was done, I could run apt-get install puppet and the command worked just fine.

How do I install homebrew on mac? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I tried the command
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/include
/usr/local/lib
/usr/local/lib/pkgconfig
==> The following directories will have their group set to admin:
/usr/local/include
/usr/local/lib
/usr/local/lib/pkgconfig
but I have no idea what that means...
Do you have XCode and Command Line Tools installed? If so, the above script should have done it.
Go to the terminal and type
brew doctor
This will tell you the status of your install.

How to reinstall ffmpeg clean on Ubuntu 14.04? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
sorry - might be a bit of a Newbie question, but after researching via Google I am even more confused.
I have Jon Severinsson's ffmpeg PPA installed on Ubuntu 14.04 and want to replace it with mc4man's PPA.
How do I purge the old PPA correctly and clean, so I can get the new one?
Is it
sudo ppa-purge ppa:jon-severinsson/ffmpeg
and then
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
?
To be on safe side I removed ffmpeg completely before:
sudo apt-get --purge remove ffmpeg
sudo apt-get --purge autoremove
sudo apt-get install ppa-purge
sudo ppa-purge ppa:jon-severinsson/ffmpeg
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg
I am not expert so maybe there is safer/better way but this worked for me. Interestingly last ffmpeg version from jon-severinsson was ffmpeg version 1.2.6-7:1.2.6-1~trusty1 Copyright (c) 2000-2014 the FFmpeg developers and in mc3man repo
ffmpeg version 2.6.1 Copyright (c) 2000-2015 the FFmpeg developers.
Today I found another PPA providing Jon Severinsson's ffmpeg package: https://launchpad.net/~fnu/+archive/ubuntu/main-fnu. Unlike the mc3man/trusty-media PPA it provides ffmpeg version 1.2.6-7:1.2.6-1~trusty1. It seems to be the same package contained in the old jon-severinsson/ffmpeg PPA.

Error Installing Jekyll - Native Extension Build

I'm having some trouble installing jekyll. Can't quite figure out how to patch the missing link. I think it's an update to Ruby, but RVM is having trouble installing alternate versions of ruby as well.
Heres the full post:
$ sudo gem install jekyll
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/fast-stemmer-1.0.1/ext/gem_make.out
Does this mean I need to update the version of ruby I'm using via rvm?
Ubuntu
sudo apt-get install ruby-dev
gem install jekyll
Your problem is that either you system doesn't know where make is located at or you don't have it installed. The easiest way to fix this (and probably other issues you'll run into trying to get a ruby system up and running) is to install xcode.
You can get it at http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 for lion. Or it came on a CD with your computer for earlier versions.
If you're using Lion, please see comments below for a link to how to install developer tools on Lion.
I had the same error on Ubuntu and this helped me sort it out.
You must have ruby-dev installed
apt-get install ruby-dev
If you installed XCode and command line tools are still missing go to Terminal and
xcode-select --install
it will prompt you to install these tools. After that just follow SrBlanco´s answer. That solved the problem for me.
Good luck.
Need to install "make".
I am using Ubuntu 12.10.
sudo apt-get install make
Should work on any Debian based distro.
Note: this problem also occurs on newer MacBook Pro models that come with Mavericks pre-installed. I updated another post with my own solution that didn't involve Xcode at all. My system had the Xcode developer tools installed when I got the machine.
ERROR: Error installing jekyll: ERROR: Failed to build gem native extension
Install Xcode as mentioned if you don't have it installed already (https://developer.apple.com/xcode/). Plus you need the command line tools.
Open Xcode. Go to Preferences > Downloads > Install Command Line Tools
Installing command line tools for Xcode solved the problem for me on my Mac
xcode-select --install.
sudo apt-get install ruby-dev
sudo gem install jekyll
hope this will help, it works with me.
I had this same exact error when trying to install Jekyll, and the following steps from this link helped me. Just in case anyone else comes across this!
http://davidensinger.com/2013/03/installing-jekyll/
I was facing the same issue in my Fedora 22 setup. I had ruby installed but didn't have ruby-devel. Installing ruby-devel fixed the issue for me.
dnf install -y ruby-devel
For older systems:
yum install -y ruby-devel
I followed this on Ubuntu/Linux Mint
sudo apt install build-essential
sudo apt install ruby-dev
sudo gem install jekyll
An addendum: You can install XCode now from the App Store on Mountain Lion. The process is transparent and pretty fast.
I had the same problems with you.
I use Mac OS X 10.9 develop preview version, and I had installed gcc and Xcode.
But my Xcode version is 4.6.
Then I install the Xcode 5.0
After that I type sudo gem install jekyll in the terminal again. Then it works.
Wish it could help someone.
Installing Xcode and going to perferencs > downloads > install commandline tools WORKS!
Same problem on Debian, I had forgot to run this command:
~/.rvm/scripts/rvm
All these answers did NOT work for me.
If you're looking for a solution on ubuntu 14.04, do this:
sudo apt-get install ruby1.9.1-dev zlib1g-dev nodejs
sudo gem install jekyll -v 2.5.3
Unfortunately, nodejs is required because of a bug in Jekyll that enforces existence of runtime JS engine even though it doesn't need one.
For Ubuntu, this helped in my case:
apt-get install libffi-dev
A general advice is to just follow what is displayed as the reason for the error and hopefully you'll be provided with a log file in which the first line suggests which package should be installed, in my case:
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ffi-1.9.21/mkmf.log
MacOS
my solution to this problem
install xcode
type xcode-select --install in the command line
type sudo gem install jekyll in the command line
PS: It is the combination of the two answers in this question.
You are missing the ruby-dev file , just go ahead and run this command - sudo apt-get install ruby-dev
Hope this helps!!
I had the same issue on my macOS(10.14.2), the reason may be:
Apparently with OSX el Capitan, there is a new security function that prevents you from modifying system files called Rootless.
My solution is using rvm:
install ruby on Mac OS X with RVM
gem install jekyll
On windows I have this issue
I actually installed the version rubyinstaller-devkit-2.6.3-1-x64 of ruby
I have removed the ruby completely and Installed the rubyinstaller-devkit-2.5.5-1-x64
and issued the following commands on powershell
gem install bundler
gem install jekyll
and this time no errors where found
I had this issue and of all things, the error was occurring because I hadn't agreed to some updated terms of service in xcode. Running the following did the trick for me. Go figure.
sudo xcodebuild -license accept
For me, I had to upgrade homebrew and install rbenv to the latest ruby version. After that, I followed the instruction at jekyll website. My OS is Catalina 2019, I couldn't install Xcode, which is not compatible yet!
You have to set the path in your .bash_profile to make sure that it initializes the rbenv when you restart your terminal.
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
then
$ rbenv version
2.2.3 (set by /Users/mislav/.rbenv/version)
$ rbenv shell
rbenv: no shell-specific version configured
hope that help!
Here is the (only?) reliable and simple way to install Jekyll on macOS
Install UTM
Install Ubuntu Server
Install Jekyll using Ubuntu instructions at https://jekyllrb.com/docs/installation/ubuntu/
Forward port 22 in the VM settings (22->localhost->22)
Use VS Code on the macOS host
Install Remote SSH
Connect to USER#localhost
Drag and drop the folder on Mac into VS Code (this transfers files to remote)
Enable port forwarding for 4000 (bottom bar on VS Code)
Work on your website
Right click on your website on the file explorer and click download
If you have not done these steps, you might be delighted by:
Ubuntu imports your public SSH key from GitHub
VS Code magically handles file transfer in and out
VS Code magically installs your VS Code extensions onto the remote server and allows file search on the remote host

zsh: command not found: apt-get [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
Improve this question
To solve the following error Cucumber Rails 3.1 uninitialized constant ActionController::Dispatcher (NameError), I am following this post -> http://www.ruby-on-rails-outsourcing.com/articles/2011/01/07/getting-started-with-rvm-and-rails/ .
On running this command on my terminal,
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev
I get this error: zsh: command not found: apt-get. Few posts suggested using Macports but I am not sure how to use that.
apt-get is a Linux package manager. On OS X you need to use something Mac specific like Macports or Homebrew. I recommend trying out Homebrew.
Install android-sdk using brew:
brew install --cask android-sdk

Resources