LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-07-2024, 01:58 AM   #1
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Rep: Reputation: Disabled
VirtualBox fails to install


I am using KDE Plasma, trying to install it, I tried version 7.1, then went down to 6.1.50, tried Debian 9, 10, 11 and 12 all aborting with the error:

Dependency Resolution Failed

Why?

Cheers
 
Old 02-07-2024, 06:16 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,516

Rep: Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492Reputation: 2492
Are you downloading through the Debian repositories or from the VirtualBox site? If the repositories, using a terminal or GUI?
 
Old 02-07-2024, 06:35 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
you did not tell us everything. Obviously you need to solve that dependency issue. Most probably it does not depend on the OS you have. We don't know anything about it. I guess you need to read the official documentation, probably you missed a prerequisite. Or there was another error earlier. Or something else.
 
Old 02-07-2024, 02:34 PM   #4
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Are you downloading through the Debian repositories or from the VirtualBox site? If the repositories, using a terminal or GUI?
From the virtualBox site
In command line it doesn't find it

Thanks
 
Old 02-07-2024, 02:38 PM   #5
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
you did not tell us everything. Obviously you need to solve that dependency issue. Most probably it does not depend on the OS you have. We don't know anything about it. I guess you need to read the official documentation, probably you missed a prerequisite. Or there was another error earlier. Or something else.
I have no idea what dependencies it is missing, nor could I see any error before.
I had it installed long time ago, but now it is on a new laptop.

Thanks
 
Old 02-07-2024, 03:58 PM   #6
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,632

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
If you install using the REPO the tools will FIND the dependencies and install everything needed.

Personally I prefer QEMU and Virtual Machine Manager myself, but Virtualbox installs just fine from my REPOs.
 
Old 02-07-2024, 04:09 PM   #7
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
If you install using the REPO the tools will FIND the dependencies and install everything needed.

Personally I prefer QEMU and Virtual Machine Manager myself, but Virtualbox installs just fine from my REPOs.
Excuse my ignorance, what is REPO, can you guide me or send me alink please?

Thanks
 
Old 02-07-2024, 05:05 PM   #8
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 481

Rep: Reputation: 179Reputation: 179
REPO ... Repository.

For Ubuntu flavors, goto command line and install virtualbox like so > sudo apt-get install virtualbox

For Debian it looks a bit more involved but not to bad: https://linuxiac.com/how-to-install-...n-12-bookworm/

Last edited by rclark; 02-07-2024 at 05:08 PM.
 
Old 02-07-2024, 05:17 PM   #9
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by rclark View Post
REPO ... Repository.

For Ubuntu flavors, goto command line and install virtualbox like so > sudo apt-get install virtualbox

For Debian it looks a bit more involved but not to bad: https://linuxiac.com/how-to-install-...n-12-bookworm/
Executed your command and got the following:

Code:
sudo apt-get install virtualbox
[sudo] password for alexe: 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
virtualbox is already the newest version (6.1.48-dfsg-1~ubuntu1.22.04.1).
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages were automatically installed and are no longer required:
  cdparanoia cdrskin dvd+rw-tools genisoimage growisofs k3b-data libburn4 libgcab-1.0-0 libiso9660-11 libk3b7
  libk3b7-extracodecs libk3b8 libkf5cddb5 libkf5pulseaudioqt3 libmusicbrainz5cc2v5 libneon27-gnutls libpoppler132
  libsmbios-c2 libvcdinfo0 linux-headers-5.15.0-91 linux-headers-5.15.0-91-generic linux-image-5.15.0-91-generic
  linux-image-6.2.0-39-generic linux-modules-5.15.0-91-generic linux-modules-6.2.0-39-generic
  linux-modules-extra-5.15.0-91-generic linux-modules-extra-6.2.0-39-generic vcdimager wodim
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_GB:he",
        LC_ALL = (unset),
        LC_TIME = "en_AU.UTF-8",
        LC_MONETARY = "en_AU.UTF-8",
        LC_ADDRESS = "en_AU.UTF-8",
        LC_TELEPHONE = "en_AU.UTF-8",
        LC_NAME = "en_AU.UTF-8",
        LC_MEASUREMENT = "en_AU.UTF-8",
        LC_IDENTIFICATION = "en_AU.UTF-8",
        LC_NUMERIC = "en_AU.UTF-8",
        LC_PAPER = "en_AU.UTF-8",
        LANG = "en_GB.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up google-chrome-stable (121.0.6167.139-1) ...
/usr/bin/xdg-icon-resource: 12: Syntax error: end of file unexpected (expecting ";;")
dpkg: error processing package google-chrome-stable (--configure):
 installed google-chrome-stable package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 google-chrome-stable
E: Sub-process /usr/bin/dpkg returned an error code (1)
alexe@alexe:~$
So, what to do now?
Thank you
 
Old 02-07-2024, 05:24 PM   #10
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
As to how you broke debian, the simple answer is it's always safer to install stuff from debian repositories instead of third parties. If you already added an oracle repo, I suggest you remove it, but in any case the above shows you already installed an ubuntu version of virtualbox successfully, and are having an issue with google chrome which you may be able to fix with `sudo dpkg google-chrome-stable --configure`, or remove it and install chromium from debian repository instead. If you still have locale issues, you should fix with `sudo dpkg-reconfigure locales`.

To install Virtualbox from debian, you must first enable fasttrack because Virtualbox updates too often and doesn't provide details of security fixes so Debian cannot maintain it in the main repo.

Code:
sudo apt edit-sources
and add the following line if you are on Debian 12 Bookworm:
Code:
deb http://fasttrack.debian.net/debian-fasttrack/ bookworm-fasttrack main contrib
then:
Code:
sudo apt update
sudo apt install virtualbox

Last edited by enigma9o7; 02-07-2024 at 05:40 PM.
 
Old 02-07-2024, 07:28 PM   #11
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by enigma9o7 View Post
As to how you broke debian, the simple answer is it's always safer to install stuff from debian repositories instead of third parties. If you already added an oracle repo, I suggest you remove it, but in any case the above shows you already installed an ubuntu version of virtualbox successfully, and are having an issue with google chrome which you may be able to fix with `sudo dpkg google-chrome-stable --configure`, or remove it and install chromium from debian repository instead. If you still have locale issues, you should fix with `sudo dpkg-reconfigure locales`.

To install Virtualbox from debian, you must first enable fasttrack because Virtualbox updates too often and doesn't provide details of security fixes so Debian cannot maintain it in the main repo.

Code:
sudo apt edit-sources
and add the following line if you are on Debian 12 Bookworm:
Code:
deb http://fasttrack.debian.net/debian-fasttrack/ bookworm-fasttrack main contrib
then:
Code:
sudo apt update
sudo apt install virtualbox
OK, the last section returned this:

Code:
sudo apt install virtualbox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
virtualbox is already the newest version (6.1.48-dfsg-1~ubuntu1.22.04.1).
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
The following packages were automatically installed and are no longer required:
  cdparanoia cdrskin dvd+rw-tools genisoimage growisofs k3b-data libburn4 libgcab-1.0-0 libiso9660-11 libk3b7
  libk3b7-extracodecs libk3b8 libkf5cddb5 libkf5pulseaudioqt3 libmusicbrainz5cc2v5 libneon27-gnutls libpoppler132
  libsmbios-c2 libvcdinfo0 linux-headers-5.15.0-91 linux-headers-5.15.0-91-generic linux-image-5.15.0-91-generic
  linux-image-6.2.0-39-generic linux-modules-5.15.0-91-generic linux-modules-6.2.0-39-generic
  linux-modules-extra-5.15.0-91-generic linux-modules-extra-6.2.0-39-generic vcdimager wodim
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up google-chrome-stable (121.0.6167.139-1) ...
/usr/bin/xdg-icon-resource: 12: Syntax error: end of file unexpected (expecting ";;")
dpkg: error processing package google-chrome-stable (--configure):
 installed google-chrome-stable package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 google-chrome-stable
E: Sub-process /usr/bin/dpkg returned an error code (1)
alexe@alexe:~$
 
Old 02-07-2024, 09:02 PM   #12
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Quote:
Originally Posted by alex4buba View Post
OK, the last section returned this:

Code:
sudo apt install virtualbox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
virtualbox is already the newest version (6.1.48-dfsg-1~ubuntu1.22.04.1).
First, you haven't fixed google chrome yet. Remove it.

And as to virtualbox, if you did the last section without adding fasttrack and updating sources, then obviously it wouldn't be any different than last time, and you still have the ubuntu version installed. And if you had done that, it would see the newer version and install it cuz it's greater version than that ubuntu version you have.

If you really think you did the first part right, please share "apt policy virtualbox" which will confirm if you did or not.

Last edited by enigma9o7; 02-07-2024 at 09:04 PM.
 
Old 02-07-2024, 10:32 PM   #13
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by enigma9o7 View Post
First, you haven't fixed google chrome yet. Remove it.

And as to virtualbox, if you did the last section without adding fasttrack and updating sources, then obviously it wouldn't be any different than last time, and you still have the ubuntu version installed. And if you had done that, it would see the newer version and install it cuz it's greater version than that ubuntu version you have.

If you really think you did the first part right, please share "apt policy virtualbox" which will confirm if you did or not.
Tried removing Chrome, but I get the following error
Attached Thumbnails
Click image for larger version

Name:	Google.jpg
Views:	11
Size:	6.9 KB
ID:	42538  
 
Old 02-09-2024, 03:13 PM   #14
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
OK, I followed the steps

Removed and reinstalled Chrome
Followed all the steps and have now VirtualBox 6.1 Ubuntu installed
Started installing Windows-10, but when I click Start, I get the error -see attached picture

Went to command line to run the command:

Code:
sudo modprobe vboxdrv
[sudo] password for alexe: 
modprobe: ERROR: could not insert 'vboxdrv': Key was rejected by service
Have no idea what to do next...

Many thanks
Attached Thumbnails
Click image for larger version

Name:	vberror.jpg
Views:	6
Size:	87.8 KB
ID:	42542  
 
Old 02-09-2024, 07:29 PM   #15
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
I think that error is from having secure boot enabled tho? I'd try disabling that. But just guessing.

If you are using Debian 12, I still suggest using the debian version of virtualbox instead, and if you think you correctly added fasttrack already and it's not installing automatically, share "apt policy virtualbox".
 
  


Reply

Tags
kde plasma, virtualbox



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] New install: Virtualbox run fails: Critical Error: Virtualbox COM object maschelsea Slackware 1 03-29-2020 05:42 PM
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
4MLinux as VirtualBox guest - how can I install VirtualBox Guest Additions? wghay 4MLinux 11 09-30-2018 12:17 PM
[SOLVED] VirtualBox Install Script Fails On 32bit Slackware Current MarkVickers Slackware 6 07-27-2017 02:20 AM

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

All times are GMT -5. The time now is 01:37 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
Open Source Consulting | Domain Registration