永发信息网

kali无法开启msf服务could not find rake-11.2.2 in any of the sources怎么办

答案:2  悬赏:60  手机版
解决时间 2021-04-03 12:11
  • 提问者网友:杀生予夺
  • 2021-04-03 06:49
kali无法开启msf服务could not find rake-11.2.2 in any of the sources怎么办
最佳答案
  • 五星知识达人网友:北方的南先生
  • 2021-04-03 07:00
kali无法开启msf服务could not find rake-11.2.2 in any of the sources的解决办法:

Kali Liunx系统的could not find rake增强功能突然失效,导致复制、全屏等功能无法使用 。在需要用Kali Linux系统的时候很不方便,尝试重装Virtualbox增强功能(出错了)。具体原因请看错误信息中提示的日志文件: /var/log/vboxadd-
install.log
root@c2unix:~# sudo ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.1.12 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.1.12 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Warning: unknown version of the X Window System installed. Not installing
X Window System drivers.
Installing modules ...done.
Installing graphics libraries and desktop services components ...done.

解决方法:先更新源、已安装软件包,然后再安装virtualbox-guest-x11软件包 。
root@c2unix:~# apt-get update
root@c2unix:~# apt-get upgrade
root@c2unix:~# sudo apt-get install virtualbox-guest-x11

在安装过程中会出现Y/N选项,默认选项为N,这里我们选择Y使用新版本进行安装。可以使用apt-cache policy命令查询软件包的安装状态和版本信息。以下信息是问题解决后补的,可能会有些差别 。
相关软件包有:virtualbox-guest-dkms、virtualbox-guest-utils、virtualbox-guest-x11 。
virtualbox-guest-x11:
已安装:(无)
候选软件包:4.3.10-dfsg-1~bpo70+1
版本列表:
*** 4.3.10-dfsg-1~bpo70+1 0
500 http://mirrors.ustc.edu.cn/kali/ kali/contrib i386 Packages
100 /var/lib/dpkg/status
4.1.18-dfsg-2.1 0
500 http://mirrors.ustc.edu.cn/kali/ kali/main i386 Packages
4.1.18-dfsg-2+deb7u3 0
500 http://mirrors.ustc.edu.cn/kali-security/ kali/updates/main i386 Packages

问题解决。
全部回答
  • 1楼网友:三千妖杀
  • 2021-04-03 08:14
apt-get install ruby
cd /usr/share/metasploit-framework
bundle install
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯