Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] How can I install Virtual Box?

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
acer-manjaro
Posts: 28
Joined: 2017-05-07 15:55

[SOLVED] How can I install Virtual Box?

#1 Post by acer-manjaro »

*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.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How To Install | Virtual Box & Wine |

#2 Post by GarryRicketson »

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.

kopper
Posts: 138
Joined: 2016-09-30 14:30

Re: How To Install | Virtual Box & Wine |

#3 Post by kopper »

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.
Debian 10.2 Stable with i3
Secure your stuff: Securing Debian Manual
Don't break your stuff: Source List Management DontBreakDebian

acer-manjaro
Posts: 28
Joined: 2017-05-07 15:55

Ignore |

#4 Post by acer-manjaro »

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# 

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How To Install | Virtual Box & Wine |

#5 Post by GarryRicketson »

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: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: How To Install | Virtual Box & Wine |

#6 Post by GarryRicketson »

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
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How To Install | Virtual Box & Wine |

#7 Post by stevepusser »

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.
MX Linux packager and developer

acer-manjaro
Posts: 28
Joined: 2017-05-07 15:55

Re: How To Install | Virtual Box & Wine |

#8 Post by acer-manjaro »

[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 |

#9 Post by acer-manjaro »

[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

#10 Post by acer-manjaro »

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.

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: How To Install Virtual Box

#11 Post by phenest »

Code: Select all

apt-get install virtualbox
This will automatically pull in any dependencies.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

acer-manjaro
Posts: 28
Joined: 2017-05-07 15:55

Re: How To Install Virtual Box

#12 Post by acer-manjaro »

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).

User avatar
phenest
Posts: 1702
Joined: 2010-03-09 09:38
Location: The Matrix

Re: How can I install Virtual Box?

#13 Post by phenest »

Have you done as it suggested?
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

acer-manjaro
Posts: 28
Joined: 2017-05-07 15:55

Re: How can I install Virtual Box?

#14 Post by acer-manjaro »

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

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: How can I install Virtual Box?

#15 Post by pylkko »

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.

acer-manjaro
Posts: 28
Joined: 2017-05-07 15:55

Re: How can I install Virtual Box?

#16 Post by acer-manjaro »

pylkko wrote: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.
So what should I type Instead. As it stands I have a virtualbox.deb saved in root & nothing else.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How can I install Virtual Box?

#17 Post by stevepusser »

Yes, that line in the instructions is what you have to add to the text file /etc/apt/sources.list in order for the system to use the jessie-backports repository. This is a system file, so the text editor has to be run with system administrator rights. Since there are quite a few ways to do this, depending how you installed Debian and what desktop you are running, I would either want to know more about that, or resort to less beginner-friendly command-line options.

However, if you just want a universal terminal command that adds the repo in its own "jessie-backports.list" file in /etc/apt/sources.list.d, with the contrib and non-free packages also enabled, it's (as root or with sudo)

Code: Select all

echo 'deb http://ftp.debian.org/debian jessie-backports main contrib non-free' > /etc/apt/sources.list.d/jessie-backports.list 
Then run

Code: Select all

apt-get update
as root or with sudo to refresh your package database.
MX Linux packager and developer

acer-manjaro
Posts: 28
Joined: 2017-05-07 15:55

Re: How can I install Virtual Box?

#18 Post by acer-manjaro »

stevepusser wrote:Yes, that line in the instructions is what you have to add to the text file /etc/apt/sources.list in order for the system to use the jessie-backports repository. This is a system file, so the text editor has to be run with system administrator rights. Since there are quite a few ways to do this, depending how you installed Debian and what desktop you are running, I would either want to know more about that, or resort to less beginner-friendly command-line options.

However, if you just want a universal terminal command that adds the repo in its own "jessie-backports.list" file in /etc/apt/sources.list.d, with the contrib and non-free packages also enabled, it's (as root or with sudo)

Code: Select all

echo 'deb http://ftp.debian.org/debian jessie-backports main contrib non-free' > /etc/apt/sources.list.d/jessie-backports.list 
Then run

Code: Select all

apt-get update
as root or with sudo to refresh your package database.
Ran them both think It worked. Should I paste it ?

Debian Jessie non-free 8.7.1 GNOME on Acer Aspire 4920G

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: How can I install Virtual Box?

#19 Post by stevepusser »

Does this command now work, then?

Code: Select all

apt-get install virtualbox virtualbox-qt -t jessie-backports
MX Linux packager and developer

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: How can I install Virtual Box?

#20 Post by pylkko »

acer-manjaro wrote:
pylkko wrote: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.
So what should I type Instead. As it stands I have a virtualbox.deb saved in root & nothing else.
Please actually first read the Wiki page.

Nobody want to try to rewrite it, especially since it is done better there than anyone here can do...

Reading the documentation and actually understanding what commands you give to your computer will help you in the future also.

Post Reply