0

So I have been trying to install virtualbox on my live usb with persistent storage. I have about 100GB so I know that is not the issue, I have followed several youtube video through the process of installing virtualbox, but no matter how hard I try I cannot get virtualbox to ever install. I download the virtualbox software from the website, then I open terminal in downloads, run sudo dpkg -i install <name of file> and then run sudo apt-get -f install but instead of installing dependencies, it just forces me to uninstall the virtualbox installation. The files doesn't disappear from my downloads, but no matter what it will never download the dependencies.

1 Answers1

2

Seems like you are describing the correct, expected behavior.

dpkg does not handle dependencies or repositories. It only installs or uninstalls the package that it's told to (that's an oversimplification).

Instead, most folks use apt when possible. Apt does handle repositories and dependencies.

  • You can use apt to install downloaded packages:
    sudo apt install /path/to/file_name.deb
  • Generally, it's easier to use the Ubuntu repositories than to download software yourself:
    sudo apt install virtualbox

Opinion: I've used Virtualbox every workday for years. Most users do not need to expend the extra effort to download Vbox from upstream and puzzle out the dependencies. The Ubuntu package works quite well, is already meshed to the correct dependencies, and is fully-featured.

user535733
  • 62,253
  • Alright so I tried sudo apt install virtualbox Here's what it gives me:

    "Package virtualbox is a virtual package provided by:

    virtualbox-6.1 6.1.16-140961~Ubuntu~eoan

    virtualbox-6.0 6.0.24-139119~Ubuntu~eoan

    You should explicitly select one to install.

    E: Package 'virtualbox' has no installation candidate"

    Then I ran this: sudo apt install virtualbox-6.1 6.1.16-140961~Ubuntu~eoan

    result: "E: Unable to locate package 6.1.16-140961~Ubuntu~eoan "

    – tinesofpwer11 Dec 12 '20 at 02:23
  • Looks like you have a 19.10 (Eoan) system instead of a 20.04 system., 19.10 is not supported anymore, and we don't answer questions about it anymore. Consider migrating to a supported release of Ubuntu. If you are indeed running 20.04, then you have unwisely added 19.10 sources and/or packages. Remove them. – user535733 Dec 12 '20 at 02:53
  • I just burned this Live USB earlier today, so I am certain that I have not made any any changes to the sources of packages. I was also almost certain that it was 20.04, I used the latest stable release from the website. How can I determine if my sources are messed up or if I have the wrong version? EDIT: My Settings -> About says: Ubuntu 20.04.1 LTS – tinesofpwer11 Dec 12 '20 at 03:14
  • 1
    A stock Ubuntu 20.04.x system does not look for packages labelled "eoan". It's that simple. We don't know what changes you made to convince your system to look for a wrong-version non-Ubuntu package (nothing resembling that package version string is on http://packages.ubuntu.com). Whatever you did, undo it. If you don't know how to clean up previous failed attempts, then re-make your USB to wipe those changes. – user535733 Dec 12 '20 at 03:19