LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-21-2018, 10:59 AM   #1
abczar
LQ Newbie
 
Registered: Feb 2018
Location: Alberta, Canada
Distribution: Linux Mint
Posts: 18

Rep: Reputation: Disabled
Can't properly install VirtualBox on Mint 18.1. I tried many solutions found online


The first thing I did was
Code:
apt-cache search virtualbox
I found one that looked good and ran
Code:
sudo apt-get install virtualbox
It seemed to install fine. I didn't get any errors. However, when I searched for it in the Menu, I couldn't find it.

I then went directly to the virtualbox website via the browser and downloaded the .deb package for ubuntu. But when I opened it up in the package manager, it said there were dependency issues. I didn't yet know how to fix that so I didn't even try to install it that way.

So then I ran
Code:
sudo apt-get purge virtualbox
It said it couldn't find anything called "virtualbox"

I opened the software manager
I found "virtualbox" but there were multiple entries and I couldn't tell which one I should do.

I looked online and found some more terminal entries that worked for others. First I updated everything
Code:
sudo apt-get update && sudo apt-get dist-upgrade -y
It worked fine. The next entry was the following:
Code:
wget http://download.virtualbox.org/virtualbox/5.1.12/virtualbox-5.1_5.1.12-112440~Ubuntu~xenial_amd64.deb -O /tmp/virtual-box.deb
It worked fine too. The next entry was the following:
Code:
sudo dpkg -i /tmp/virtual-box.deb
That worked. Virtual box was now in the menu. I opened it and it seemed to work fine. I setup a new machine and the setup was good. But when I went to boot the machine, I got the following error:
Code:
virtualbox kernal modules do not match the version of virtualbox
I searched online again. I found out that there was likely multiple different installations of virtualbox on my machine. I ran the following:
Code:
sudo apt-get autoremove 'virtualbox*'
I figured that now my machine should be clear of all virtualbox installations. So I tried depackaging the virtualbox download from earlier again:
Code:
sudo dpkg -i /tmp/virtual-box.deb
That seemed to work fine again. And I could see that virtualbox was in the Mint Menu. However, when I try to open it, nothing happens. Even if I try to open it via the GUI or the terminal

So this is where I am. Don't know what to do from now. Does anyone have any ideas?
 
Old 02-21-2018, 06:41 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 5,371
Blog Entries: 2

Rep: Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713Reputation: 1713
The best bet is first to clear your system of all Virtualbox remnants.

For the packages, let's see what you've got. Please paste the output from the following command (expand the terminal window first so there is no internal truncation in the results, and delete some of the equals signs from the output to avoid expanding the page width of this thread):

Code:
dpkg -l "*virtualbox*"
 
Old 02-21-2018, 07:48 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 18,380

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
It may be that /sbin/vboxconf (or something like that) may fix what you have. Otherwise as above, you may just start over.

"sudo apt-get purge virtualbox" might recheck that command.
 
Old 02-25-2018, 10:26 PM   #4
abczar
LQ Newbie
 
Registered: Feb 2018
Location: Alberta, Canada
Distribution: Linux Mint
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thnx for the advice.

I've messed it up long enough that I'm hoping not to make any more mistakes

So I ran
Code:
dpkg -l "*virtualbox*"
and I get this:

and I ran
Code:
sudo apt-get purge virtualbox

Should I run the following?

Code:
wget http://download.virtualbox.org/virtualbox/5.1.12/virtualbox-5.1_5.1.12-112440~Ubuntu~xenial_amd64.deb -O /tmp/virtual-box.deb
then

Code:
sudo dpkg -i /tmp/virtual-box.deb
?

edit: I just went ahead and did it

I got some errors but it didn't really say what they were. Here was the result:

Code:
Selecting previously unselected package virtualbox-5.1.
(Reading database ... 256196 files and directories currently installed.)
Preparing to unpack /tmp/virtual-box.deb ...
Unpacking virtualbox-5.1 (5.1.12-112440~Ubuntu~xenial) ...
dpkg: dependency problems prevent configuration of virtualbox-5.1:
 virtualbox-5.1 depends on libcurl3 (>= 7.16.2); however:
  Package libcurl3 is not installed.

dpkg: error processing package virtualbox-5.1 (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for desktop-file-utils (0.22+linuxmint1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Errors were encountered while processing:
 virtualbox-5.1
And it shows up in the menu but when I click it, nothing happens. Nothing pops up.

In case it matters, what shows up in the menu is: "Oracle VM VirtualBox"

Last edited by abczar; 02-25-2018 at 10:34 PM.
 
Old 02-25-2018, 10:47 PM   #5
abczar
LQ Newbie
 
Registered: Feb 2018
Location: Alberta, Canada
Distribution: Linux Mint
Posts: 18

Original Poster
Rep: Reputation: Disabled
Finally figured it out. It really shouldn't have been this hard.

I ran these 3 commands again:

Code:
dpkg -l "*virtualbox*"
Code:
sudo apt-get purge "*virtualbox*"
Code:
sudo apt-get autoremove "*virtualbox*"
Then I just tried installing the virtualbox from the software manager and all worked fine
 
Old 02-27-2018, 07:09 AM   #6
bribid05
LQ Newbie
 
Registered: Feb 2018
Posts: 3

Rep: Reputation: Disabled
thanx
 
  


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] AMD driver fails to install properly on Mint 17.3 orsty9001 Linux - Hardware 5 04-08-2017 02:07 PM
AMD driver fails to install properly on Mint 17.3 orsty9001 Linux - Hardware 2 02-13-2016 07:45 PM
Xorg, no screens found; no devices found (after Virtualbox install) Archytas Linux - General 6 03-06-2013 03:41 PM
I have linux mint 13 need help with get oracle virtualbox - VM Windows xp online kaylajean18 Linux Mint 14 11-21-2012 04:16 PM
Virtualbox Running In Mint 9 Install Novatian Linux - Software 6 05-20-2010 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:11 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