[SOLVED] How can I install Virtual Box?

New to Debian (Or Linux in general)? Ask your questions here!

[SOLVED] How can I install Virtual Box?

Postby acer-manjaro » 2017-05-10 16:35

*Edited



I want to Install Virtual Box (I recently switched to Debian Jessie [debian-live-8.7.1-amd64-gnome-desktop+nonfree.iso
GNOME Environment]

Virtual Box

I download a virtualbox-5.1_5.1.22-115126~Debian~jessie_amd64.deb &

Code: Select all
dpkg -i virtualbox-5.1_5.1.22-115126~Debian~jessie_amd64.deb


It said Error

I'm New Please help
Last edited by acer-manjaro on 2017-05-12 12:20, edited 5 times in total.
acer-manjaro
 
Posts: 28
Joined: 2017-05-07 15:55

Re: How To Install | Virtual Box & Wine |

Postby GarryRicketson » 2017-05-10 16:56

Thank you "mods" for moving this to a more appropriate board,...
Last edited by GarryRicketson on 2017-05-10 17:22, edited 2 times in total.
User avatar
GarryRicketson
 
Posts: 3963
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How To Install | Virtual Box & Wine |

Postby kopper » 2017-05-10 16:57

Get this: There are entire wiki pages on the issues!

https://wiki.debian.org/VirtualBox
https://wiki.debian.org/Wine

Who would have thought.. If someone just invented a program or service to search all this knowledge.
kopper
 
Posts: 14
Joined: 2016-09-30 14:30

Ignore |

Postby acer-manjaro » 2017-05-10 17:17

GarryRicketson wrote:To start with , this board is for:
Docs, Howtos, Tips & Tricks
Share your own howto's etc. Not for support questions!

Sorry I thought it the other way. well this is embarrassing :?


Post by acer-manjaro » I want to Install Virtual Box & Wine to run .exe programs. (I recently switched to Debian Jessie [debian-live-8.7.1-amd64-gnome-desktop+nonfree.iso

It amazes me, these people just barely have figured out how to install Debian,
and the first thing they want to do is make it so they can keep running their windows programs, ....but that would be another topic.

I'm a student & most of my classmates use Windows. So for better transfer of file with any issues.


kopper wrote:Get this: There are entire wiki pages on the issues!

https://wiki.debian.org/VirtualBox
https://wiki.debian.org/Wine

Who would have thought.. If someone just invented a program or service to search all this knowledge.


The deb commands is not working.

Code: Select all
root@debian:/home/acer-manjaro# deb http://httpredir.debian.org/debian/ jessie main contrib
bash: deb: command not found
root@debian:/home/acer-manjaro#
acer-manjaro
 
Posts: 28
Joined: 2017-05-07 15:55

Re: How To Install | Virtual Box & Wine |

Postby GarryRicketson » 2017-05-10 17:30

Post by acer-manjaro » 2017-05-10 10:35
I apologize for the inconvenience caused.

No big deal, a moderator moved it.

Ok, sorry,... I edited my first post, but it was to late,...
any way ,
Thanks for explaining,
by acer-manjaro » I'm a student & most of my classmates use Windows. So for better transfer of file with any issues.

That is a interesting , and valid reason,...I am sorry, I really had not thought of
that, but it makes more sense now, that we know your reasons.
User avatar
GarryRicketson
 
Posts: 3963
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How To Install | Virtual Box & Wine |

Postby GarryRicketson » 2017-05-10 17:38

The deb commands is not working.

Code: Select all
root@debian:/home/acer-manjaro# deb http://httpredir.debian.org/debian/ jessie main contrib
bash: deb: command not found
root@debian:/home/acer-manjaro#

acer-manjaro

Posts: 14
Joined: 2017-05-07 09:55


It is not a command, it is the source url, to get the packages.
You are misunderstanding the instructions on the wiki.
You need to edit your /etc/apt/sources.list and add that line to it.
from :https://wiki.debian.org/VirtualBox
1. Add the "contrib" component to /etc/apt/sources.list, for example:
Code: Select all
# Debian 8 "Jessie"
deb http://httpredir.debian.org/debian/ jessie main contrib

For more details on the "sources.list" file:
https://wiki.debian.org/SourcesList
User avatar
GarryRicketson
 
Posts: 3963
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How To Install | Virtual Box & Wine |

Postby stevepusser » 2017-05-10 17:47

The stock version of Virtual Box in Jessie is getting rather old, but there's a much newer one in jessie-backports (see backports.org). It's also possible I could set up an even newer VBox backport repo in the OpenSUSE build Service to duplicate the backport we already have in the MX 16 test repo.

The usual forum etiquette is to have the questions in separate posts, so you should edit the title and content of your first post to ask just one question, and start another thread for the other program.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: AzPainter 2.0.6, Pale Moon 27.3.0, Liquorix kernel 4.11-9, mpv 0.25.0, Kodi 17.3, Ksnip 1.3.1, Mesa 13.0.6
User avatar
stevepusser
 
Posts: 8338
Joined: 2009-10-06 05:53

Re: How To Install | Virtual Box & Wine |

Postby acer-manjaro » 2017-05-10 19:05

[quote="GarryRicketson"] Is OK, No worries.

Now back to the Virtual Box.
How do I get to /etc/apt/sources.list
I tried the cd method to reach there but couldn't. [In my head I'm thing that it's easy a dkpg -i command]
acer-manjaro
 
Posts: 28
Joined: 2017-05-07 15:55

Re: How To Install | Virtual Box & Wine |

Postby acer-manjaro » 2017-05-10 19:07

[quote="stevepusser"] Done.

Back to the topic, Backports seems to be the better option

I went to https://backports.debian.org/Packages/ but there are so many packages do I need all or just the 1st one ?
There are also so many depends, The way to Install them is one-by-one or is there some other way.
acer-manjaro
 
Posts: 28
Joined: 2017-05-07 15:55

Re: How To Install Virtual Box

Postby acer-manjaro » 2017-05-10 19:12

Source.list If it helps
deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:06]/ jessie contrib main non-free

deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20170117-02:06]/ jessie contrib main non-free

deb http://ftp.us.debian.org/debian/ jessie main
deb-src http://ftp.us.debian.org/debian/ jessie main

deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free

# jessie-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free
deb http://downloads.sourceforge.net/projec ... dfire/repo deb/


I downloaded the package the backport one
virtualbox_5.1.8-dfsg-6~bpo8+2_amd64.deb
Last edited by acer-manjaro on 2017-05-10 19:18, edited 1 time in total.
acer-manjaro
 
Posts: 28
Joined: 2017-05-07 15:55

Re: How To Install Virtual Box

Postby phenest » 2017-05-10 19:17

Code: Select all
apt-get install virtualbox

This will automatically pull in any dependencies.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: How To Install Virtual Box

Postby acer-manjaro » 2017-05-10 19:20

phenest wrote:
Code: Select all
apt-get install virtualbox

This will automatically pull in any dependencies.


Result
Code: Select all
apt-get install virtualbox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 virtualbox : Depends: libgsoap5 but it is not going to be installed
              Depends: libvncserver0 (>= 0.9.9) but it is not going to be installed
              Depends: virtualbox-dkms (>= 4.3.36-dfsg-1+deb8u1) but it is not going to be installed or
                       virtualbox-source (>= 4.3.36-dfsg-1+deb8u1) but it is not going to be installed or
                       virtualbox-modules but it is not installable
              Recommends: virtualbox-qt (= 4.3.36-dfsg-1+deb8u1) but it is not going to be installed
              Recommends: libqt4-opengl (>= 4:4.5.3) but it is not going to be installed
 virtualbox-5.1 : Depends: libqt5core5a (>= 5.3.0) but it is not going to be installed
                  Depends: libqt5gui5 (>= 5.3.0) but it is not going to be installed
                  Depends: libqt5opengl5 (>= 5.0.2) but it is not going to be installed
                  Depends: libqt5printsupport5 (>= 5.0.2) but it is not going to be installed
                  Depends: libqt5widgets5 (>= 5.2.0) but it is not going to be installed
                  Depends: libqt5x11extras5 (>= 5.1.0) but it is not going to be installed
                  Recommends: libsdl-ttf2.0-0 but it is not going to be installed
                  Recommends: linux-image but it is not installable
                  Conflicts: virtualbox
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
acer-manjaro
 
Posts: 28
Joined: 2017-05-07 15:55

Re: How can I install Virtual Box?

Postby phenest » 2017-05-10 19:44

Have you done as it suggested?
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: How can I install Virtual Box?

Postby acer-manjaro » 2017-05-10 19:55

phenest wrote:Have you done as it suggested?


yes according to this guide
Debian 8 "Jessie" Backports

The backport allow you to install a more recent version of VirtualBox. VirtualBox 5.1.8 is packaged for Debian 8 "Jessie" via jessie-backports.

Add Debian Backports sources to /etc/apt/sources.list, also including the "contrib" component. For example:

# Backported packages for Debian 7 "Wheezy"
deb http://ftp.debian.org/debian jessie-backports main contrib

Important: In this source above, double check that your included "contrib" component at the end of this line. Otherwise the following steps will not install the latest version of Virtualbox and all its dependencies.

Update the list of available packages:

# apt-get update

Install the relevant linux-headers package for your system, for example:

# apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')

Install the jessie-backports/virtualbox package:

# apt-get -t jessie-backports install virtualbox


Stuck Here

Code: Select all
root@debian:/home/acer-manjaro# deb http://ftp.debian.org/debian jessie-backports main contrib
bash: deb: command not found
acer-manjaro
 
Posts: 28
Joined: 2017-05-07 15:55

Re: How can I install Virtual Box?

Postby pylkko » 2017-05-10 20:17

https://wiki.debian.org/SourcesList

This wiki explains what you should do.
Do not type "deb" into a terminal. That is not correct.

If you install Virtualbox from backports with apt, you don't have to manually install all the dependencies.
User avatar
pylkko
 
Posts: 897
Joined: 2014-11-06 19:02

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable