Linux Mint Türkiye
Yazılım => Wine / PlayonLinux / Virtualbox => Konuyu başlatan: melih - 27 Şubat 2016, 22:33:37
-
Merhaba arkadaşlar,
Dün oracle veritabanını kurdum ancak daha sonra farkettim ki genymotion açılmıyor, açılırken hata veriyor. Yani virtualboxdan dolayı hata alıyorum. Arkadaşımda da aynı sorun oldu. Ne veritabanından ne de genymotiondan vazgeçemiyorum. Hatayla ilgili internette hiçbirşey bulamadım. Hatanın çözümü ile ilgili bilgisi olan var mı?
-
Genymotion uygulamasını uçbirimden başlattığınızda aldığınız çıktıyı paylaşınız.
-
Genymotion açılıyor simge geliyor ancak tam o esnada "unable to load VirtualBox engine." yazıyor ve ok diyince de kapanıyor.
-
Aşağıdaki komutu uçbirimde çalıştırıp ardından yeniden dener misiniz?
sudo /etc/init.d/vboxdrv setup
-
Malesef aşağıdaki gibi hata alıyorum.
/etc/init.d/vboxdrv: 85: .: Can't open /etc/init.d/functions
-
Aşağıdaki komutun çıktısına bakalım.
dpkg -l | grep virtualbox
-
Şu şekilde:
ri virtualbox-5.0 5.0.2-102096~Ubuntu~trusty amd64 Oracle VM VirtualBox
-
Virtualbox paketi silinmiş görünüyor. Yeniden kurmayı dener misiniz?
-
Deniyorum ancak virtualbox'ı kaldırırken hata veriyor. Kodlar da aşağıdaki gibi dünden beri denemediğim şey kalmadı ancak sonuç hep aynı.
sudo apt-get remove virtualbox-\*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'virtualbox-modules' for regex 'virtualbox-*'
Note, selecting 'virtualbox-3.0' for regex 'virtualbox-*'
Note, selecting 'virtualbox-3.1' for regex 'virtualbox-*'
Note, selecting 'virtualbox-3.2' for regex 'virtualbox-*'
Note, selecting 'virtualbox' for regex 'virtualbox-*'
Note, selecting 'virtualbox-guest-modules' for regex 'virtualbox-*'
Note, selecting 'unity-scope-virtualbox' for regex 'virtualbox-*'
Note, selecting 'virtualbox-2.0' for regex 'virtualbox-*'
Note, selecting 'virtualbox-2.1' for regex 'virtualbox-*'
Note, selecting 'virtualbox-2.2' for regex 'virtualbox-*'
Note, selecting 'virtualbox-guest-source' for regex 'virtualbox-*'
Note, selecting 'virtualbox-guest-dkms' for regex 'virtualbox-*'
Note, selecting 'virtualbox-dbg' for regex 'virtualbox-*'
Note, selecting 'virtualbox-nonfree' for regex 'virtualbox-*'
Note, selecting 'virtualbox-dkms' for regex 'virtualbox-*'
Note, selecting 'virtualbox-guest-x11' for regex 'virtualbox-*'
Note, selecting 'virtualbox-ose' for regex 'virtualbox-*'
Note, selecting 'virtualbox-guest-additions-iso' for regex 'virtualbox-*'
Note, selecting 'virtualbox-qt' for regex 'virtualbox-*'
Note, selecting 'virtualbox-guest-additions' for regex 'virtualbox-*'
Note, selecting 'virtualbox-5.0' for regex 'virtualbox-*'
Note, selecting 'virtualbox-4.0' for regex 'virtualbox-*'
Note, selecting 'virtualbox-4.1' for regex 'virtualbox-*'
Note, selecting 'virtualbox-4.2' for regex 'virtualbox-*'
Note, selecting 'virtualbox-4.3' for regex 'virtualbox-*'
Note, selecting 'virtualbox-source' for regex 'virtualbox-*'
Note, selecting 'virtualbox-guest-utils' for regex 'virtualbox-*'
Package 'virtualbox-2.0' is not installed, so not removed
Package 'virtualbox-2.1' is not installed, so not removed
Package 'virtualbox-2.2' is not installed, so not removed
Package 'virtualbox-3.0' is not installed, so not removed
Package 'virtualbox-3.1' is not installed, so not removed
Package 'virtualbox-3.2' is not installed, so not removed
Package 'virtualbox-4.0' is not installed, so not removed
Package 'virtualbox-4.1' is not installed, so not removed
Package 'virtualbox-4.2' is not installed, so not removed
Package 'virtualbox-4.3' is not installed, so not removed
Package 'virtualbox-ose' is not installed, so not removed
Package 'virtualbox-guest-additions' is not installed, so not removed
Package 'virtualbox-modules' is not installed, so not removed
Package 'virtualbox-nonfree' is not installed, so not removed
Package 'virtualbox' is not installed, so not removed
Package 'virtualbox-dbg' is not installed, so not removed
Package 'virtualbox-dkms' is not installed, so not removed
Package 'virtualbox-guest-dkms' is not installed, so not removed
Package 'virtualbox-guest-source' is not installed, so not removed
Package 'virtualbox-guest-utils' is not installed, so not removed
Package 'virtualbox-guest-x11' is not installed, so not removed
Package 'virtualbox-qt' is not installed, so not removed
Package 'virtualbox-source' is not installed, so not removed
Package 'unity-scope-virtualbox' is not installed, so not removed
Package 'virtualbox-guest-additions-iso' is not installed, so not removed
The following package was automatically installed and is no longer required:
libsdl-ttf2.0-0
Use 'apt-get autoremove' to remove it.
The following packages will be REMOVED:
virtualbox-5.0
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 154 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 194020 files and directories currently installed.)
Removing virtualbox-5.0 (5.0.2-102096~Ubuntu~trusty) ...
/etc/init.d/vboxdrv: 85: .: Can't open /etc/init.d/functions
invoke-rc.d: initscript vboxdrv, action "stop" failed.
dpkg: error processing package virtualbox-5.0 (--remove):
subprocess installed pre-removal script returned error exit status 2
Errors were encountered while processing:
virtualbox-5.0
E: Sub-process /usr/bin/dpkg returned an error code (1)
-
sudo apt-get purge "^virtualbox-.*"sudo apt-get updatesudo apt-get autoremovesudo apt-get autocleansudo apt-get cleangedit /etc/apt/sources.list.d/oracle-vbox.list
yukarıdaki belgeyi açın ve aşağıdaki şekilde değiştirip kaydedin.
deb http://download.virtualbox.org/virtualbox/debian vivid contrib
# deb-src http://download.virtualbox.org/virtualbox/debwget -q -O - https://www.virtualbox.org/download/oracle_vbox.asc | sudo apt-key add - sudo apt-get updatesudo apt-get install dkms virtualbox-5.0
-
Malesef yine aynı hatayı aldım. Kaldırmıyor virtualbox'ı.
-
Aşağıdaki komutun çıktısına bir bakalım.
cat /etc/init.d/vboxdrv
Burasını (http://unix.stackexchange.com/questions/170625/linux-mint-unable-to-uninstall-remove-virtualbox) da referans olarak ekleyelim.
-
Çıktı şu şekilde:
#! /bin/sh
# Oracle VM VirtualBox
# Linux kernel module init script
#
# Copyright (C) 2006-2015 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
# chkconfig: 345 20 80
# description: VirtualBox Linux kernel module
#
### BEGIN INIT INFO
# Provides: vboxdrv
# Required-Start: $syslog
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: VirtualBox Linux kernel module
### END INIT INFO
PATH=/sbin:/bin:/usr/sbin:/usr/bin:$PATH
DEVICE=/dev/vboxdrv
LOG="/var/log/vbox-install.log"
VERSION=5.0.2
MODPROBE=/sbin/modprobe
if $MODPROBE -c | grep -q '^allow_unsupported_modules *0'; then
MODPROBE="$MODPROBE --allow-unsupported-modules"
fi
[ -f /etc/debian_release -a -f /lib/lsb/init-functions ] || NOLSB=yes
[ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg
export BUILD_TYPE
export USERNAME
export USER=$USERNAME
if [ -n "$INSTALL_DIR" ]; then
VBOXMANAGE="$INSTALL_DIR/VBoxManage"
MODULE_SRC="$INSTALL_DIR/src/vboxhost"
else
VBOXMANAGE="/usr/lib/virtualbox/VBoxManage"
MODULE_SRC="/usr/share/virtualbox/src/vboxhost"
fi
BUILDINTMP="$MODULE_SRC/build_in_tmp"
DODKMS="$MODULE_SRC/do_dkms"
# silently exit if the package was uninstalled but not purged,
# applies to Debian packages only (but shouldn't hurt elsewhere)
[ ! -f /etc/debian_release -o -x $VBOXMANAGE -a -x $BUILDINTMP ] || exit 0
if [ -n "$NOLSB" ]; then
if [ -f /etc/redhat-release ]; then
system=redhat
elif [ -f /etc/SuSE-release ]; then
system=suse
elif [ -f /etc/gentoo-release ]; then
system=gentoo
fi
fi
[ -r /etc/default/virtualbox ] && . /etc/default/virtualbox
if [ -z "$NOLSB" ]; then
. /lib/lsb/init-functions
fail_msg() {
echo ""
log_failure_msg "$1"
}
succ_msg() {
log_end_msg 0
}
begin_msg() {
log_daemon_msg "$@"
}
else
if [ "$system" = "redhat" ]; then
. /etc/init.d/functions
fail_msg() {
echo -n " "
echo_failure
echo
echo " ($1)"
}
succ_msg() {
echo -n " "
echo_success
echo
}
elif [ "$system" = "suse" ]; then
. /etc/rc.status
fail_msg() {
rc_failed 1
rc_status -v
echo " ($1)"
}
succ_msg() {
rc_reset
rc_status -v
}
elif [ "$system" = "gentoo" ]; then
if [ -f /sbin/functions.sh ]; then
. /sbin/functions.sh
elif [ -f /etc/init.d/functions.sh ]; then
. /etc/init.d/functions.sh
fi
fail_msg() {
eerror "$1"
}
succ_msg() {
eend "$?"
}
begin_msg() {
ebegin "$1"
}
if [ "`which $0`" = "/sbin/rc" ]; then
shift
fi
else
fail_msg() {
echo " ...failed!"
echo " ($1)"
}
succ_msg() {
echo " ...done."
}
fi
if [ "$system" != "gentoo" ]; then
begin_msg() {
[ -z "${1:-}" ] && return 1
if [ -z "${2:-}" ]; then
echo -n "$1"
else
echo -n "$1: $2"
fi
}
fi
fi
failure()
{
fail_msg "$1"
exit 0
}
running()
{
lsmod | grep -q "$1[^_-]"
}
start()
{
begin_msg "Starting VirtualBox kernel modules"
if [ -d /proc/xen ]; then
failure "Running VirtualBox in a Xen environment is not supported"
fi
if ! running vboxdrv; then
if ! rm -f $DEVICE; then
failure "Cannot remove $DEVICE"
fi
if ! $MODPROBE vboxdrv > /dev/null 2>&1; then
failure "modprobe vboxdrv failed. Please use 'dmesg' to find out why"
fi
sleep .2
fi
# ensure the character special exists
if [ ! -c $DEVICE ]; then
MAJOR=`sed -n 's;\([0-9]\+\) vboxdrv;\1;p' /proc/devices`
if [ ! -z "$MAJOR" ]; then
MINOR=0
else
MINOR=`sed -n 's;\([0-9]\+\) vboxdrv;\1;p' /proc/misc`
if [ ! -z "$MINOR" ]; then
MAJOR=10
fi
fi
if [ -z "$MAJOR" ]; then
rmmod vboxdrv 2>/dev/null
failure "Cannot locate the VirtualBox device"
fi
if ! mknod -m 0660 $DEVICE c $MAJOR $MINOR 2>/dev/null; then
rmmod vboxdrv 2>/dev/null
failure "Cannot create device $DEVICE with major $MAJOR and minor $MINOR"
fi
fi
# ensure permissions
if ! chown :root $DEVICE 2>/dev/null; then
rmmod vboxpci 2>/dev/null
rmmod vboxnetadp 2>/dev/null
rmmod vboxnetflt 2>/dev/null
rmmod vboxdrv 2>/dev/null
failure "Cannot change group root for device $DEVICE"
fi
if ! $MODPROBE vboxnetflt > /dev/null 2>&1; then
failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why"
fi
if ! $MODPROBE vboxnetadp > /dev/null 2>&1; then
failure "modprobe vboxnetadp failed. Please use 'dmesg' to find out why"
fi
if ! $MODPROBE vboxpci > /dev/null 2>&1; then
failure "modprobe vboxpci failed. Please use 'dmesg' to find out why"
fi
# Create the /dev/vboxusb directory if the host supports that method
# of USB access. The USB code checks for the existance of that path.
if grep -q usb_device /proc/devices; then
mkdir -p -m 0750 /dev/vboxusb 2>/dev/null
chown root:vboxusers /dev/vboxusb 2>/dev/null
fi
succ_msg
}
stop()
{
begin_msg "Stopping VirtualBox kernel modules"
if running vboxpci; then
if ! rmmod vboxpci 2>/dev/null; then
failure "Cannot unload module vboxpci"
fi
fi
if running vboxnetadp; then
if ! rmmod vboxnetadp 2>/dev/null; then
failure "Cannot unload module vboxnetadp"
fi
fi
if running vboxdrv; then
if running vboxnetflt; then
if ! rmmod vboxnetflt 2>/dev/null; then
failure "Cannot unload module vboxnetflt"
fi
fi
if ! rmmod vboxdrv 2>/dev/null; then
failure "Cannot unload module vboxdrv"
fi
if ! rm -f $DEVICE; then
failure "Cannot unlink $DEVICE"
fi
fi
succ_msg
}
# enter the following variables in /etc/default/virtualbox:
# SHUTDOWN_USERS="foo bar"
# check for running VMs of user foo and user bar
# SHUTDOWN=poweroff
# SHUTDOWN=acpibutton
# SHUTDOWN=savestate
# select one of these shutdown methods for running VMs
stop_vms()
{
wait=0
for i in $SHUTDOWN_USERS; do
# don't create the ipcd directory with wrong permissions!
if [ -d /tmp/.vbox-$i-ipc ]; then
export VBOX_IPC_SOCKETID="$i"
VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*".*{\(.*\)}/\1/' 2>/dev/null`
if [ -n "$VMS" ]; then
if [ "$SHUTDOWN" = "poweroff" ]; then
begin_msg "Powering off remaining VMs"
for v in $VMS; do
$VBOXMANAGE --nologo controlvm $v poweroff
done
succ_msg
elif [ "$SHUTDOWN" = "acpibutton" ]; then
begin_msg "Sending ACPI power button event to remaining VMs"
for v in $VMS; do
$VBOXMANAGE --nologo controlvm $v acpipowerbutton
wait=30
done
succ_msg
elif [ "$SHUTDOWN" = "savestate" ]; then
begin_msg "Saving state of remaining VMs"
for v in $VMS; do
$VBOXMANAGE --nologo controlvm $v savestate
done
succ_msg
fi
fi
fi
done
# wait for some seconds when doing ACPI shutdown
if [ "$wait" -ne 0 ]; then
begin_msg "Waiting for $wait seconds for VM shutdown"
sleep $wait
succ_msg
fi
}
# setup_script
setup()
{
stop
DKMS=`which dkms 2>/dev/null`
if [ -n "$DKMS" ]; then
begin_msg "Uninstalling old VirtualBox DKMS kernel modules"
$DODKMS uninstall vboxhost vboxdrv vboxnetflt vboxnetadp > $LOG
succ_msg
fi
if find /lib/modules/`uname -r` -name "vboxpci\.*" 2>/dev/null|grep -q vboxpci; then
begin_msg "Removing old VirtualBox pci kernel module"
find /lib/modules/`uname -r` -name "vboxpci\.*" 2>/dev/null|xargs rm -f 2>/dev/null
succ_msg
fi
if find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|grep -q vboxnetadp; then
begin_msg "Removing old VirtualBox netadp kernel module"
find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|xargs rm -f 2>/dev/null
succ_msg
fi
if find /lib/modules/`uname -r` -name "vboxnetflt\.*" 2>/dev/null|grep -q vboxnetflt; then
begin_msg "Removing old VirtualBox netflt kernel module"
find /lib/modules/`uname -r` -name "vboxnetflt\.*" 2>/dev/null|xargs rm -f 2>/dev/null
succ_msg
fi
if find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|grep -q vboxdrv; then
begin_msg "Removing old VirtualBox kernel module"
find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|xargs rm -f 2>/dev/null
succ_msg
fi
if [ -n "$DKMS" ]; then
begin_msg "Trying to register the VirtualBox kernel modules using DKMS"
if ! $DODKMS install vboxhost $VERSION >> $LOG; then
fail_msg "Failed, trying without DKMS"
DKMS=""
fi
fi
if [ -z "$DKMS" ]; then
begin_msg "Recompiling VirtualBox kernel modules"
if ! $BUILDINTMP \
--save-module-symvers /tmp/vboxdrv-Module.symvers \
--module-source "$MODULE_SRC/vboxdrv" \
--no-print-directory install >> $LOG 2>&1; then
failure "Look at $LOG to find out what went wrong"
fi
if ! $BUILDINTMP \
--use-module-symvers /tmp/vboxdrv-Module.symvers \
--module-source "$MODULE_SRC/vboxnetflt" \
--no-print-directory install >> $LOG 2>&1; then
failure "Look at $LOG to find out what went wrong"
fi
if ! $BUILDINTMP \
--use-module-symvers /tmp/vboxdrv-Module.symvers \
--module-source "$MODULE_SRC/vboxnetadp" \
--no-print-directory install >> $LOG 2>&1; then
failure "Look at $LOG to find out what went wrong"
fi
if ! $BUILDINTMP \
--use-module-symvers /tmp/vboxdrv-Module.symvers \
--module-source "$MODULE_SRC/vboxpci" \
--no-print-directory install >> $LOG 2>&1; then
failure "Look at $LOG to find out what went wrong"
fi
fi
rm -f /etc/vbox/module_not_compiled
succ_msg
start
}
dmnstatus()
{
if running vboxdrv; then
str="vboxdrv"
if running vboxnetflt; then
str="$str, vboxnetflt"
if running vboxnetadp; then
str="$str, vboxnetadp"
fi
fi
if running vboxpci; then
str="$str, vboxpci"
fi
echo "VirtualBox kernel modules ($str) are loaded."
for i in $SHUTDOWN_USERS; do
# don't create the ipcd directory with wrong permissions!
if [ -d /tmp/.vbox-$i-ipc ]; then
export VBOX_IPC_SOCKETID="$i"
VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*".*{\(.*\)}/\1/' 2>/dev/null`
if [ -n "$VMS" ]; then
echo "The following VMs are currently running:"
for v in $VMS; do
echo " $v"
done
fi
fi
done
else
echo "VirtualBox kernel module is not loaded."
fi
}
case "$1" in
start)
start
;;
stop)
stop_vms
stop
;;
stop_vms)
stop_vms
;;
restart)
stop && start
;;
force-reload)
stop
start
;;
setup)
setup
;;
status)
dmnstatus
;;
*)
echo "Usage: $0 {start|stop|stop_vms|restart|force-reload|status|setup}"
exit 1
esac
exit 0Referans göstermiş olduğunuz linki daha önce denemiştim ancak bi sonuç alamadım.
-
Aşağıdaki komutla /etc/init.d/vboxdrv dosyasını açıp,
sudo gedit /etc/init.d/vboxdrv
dosyanın en başına aşağıdaki satırları eklediniz mi?
#!/bin/sh
rmmod vboxpci vboxnetadp vboxnetflt vboxdrv
rm /dev/vboxdrv
exit 0
Yukarıdaki satırları dosyanın en başına ekleyip kaydedin, sonra aşağıdaki komutla paketi kaldırmayı deneyin.
sudo apt-get purge virtualbox-5.0