Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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:~$
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
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:~$
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.
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
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
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".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.