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

 

 

 

apt install virtualbox have unmet dependencies

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
DoubleHP
Posts: 72
Joined: 2016-10-09 08:55
Has thanked: 1 time

apt install virtualbox have unmet dependencies

#1 Post by DoubleHP »

Code: Select all

# apt install virtualbox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 virtualbox : Depends: libc6 (>= 2.33) but 2.31-13+deb11u2 is to be installed
              Depends: libstdc++6 (>= 11) but 10.2.1-6 is to be installed
              Recommends: virtualbox-qt (= 6.1.30-dfsg-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

$ cat /etc/apt/sources.list | grep -v -e "#"
deb http://deb.debian.org/debian/ bullseye main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free

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

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

$ cat /etc/apt/sources.list.d/buster-backports.list 
deb http://deb.debian.org/debian bullseye-backports main contrib
deb-src http://deb.debian.org/debian bullseye-backports main contrib
$ cat /etc/apt/sources.list.d/buster.list 
deb https://deb.debian.org/debian/ buster main contrib non-free
deb-src https://deb.debian.org/debian/ buster main contrib non-free
$ cat /etc/apt/sources.list.d/unstable.list 
deb https://deb.debian.org/debian/ unstable main contrib non-free
deb-src https://deb.debian.org/debian/ unstable main contrib non-free

$ cat /etc/apt/preferences.d/90_zfs 
Package: libnvpair1linux libuutil1linux libzfs2linux libzfslinux-dev libzpool2linux python3-pyzfs pyzfs-doc spl spl-dkms zfs-dkms zfs-dracut zfs-initramfs zfs-test zfsutils-linux zfsutils-linux-dev zfs-zed
Pin: release n=bullseye-backports___
Pin-Priority: 990

What can I do ?

Thanks.

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: apt install virtualbox have unmet dependencies

#2 Post by kedaha »

Hi,
The steps to follow for bullseye are at: wiki.debian.org/VirtualBox#Debian_10_.22Buster.22_and_Debian_11_.22Bullseye.22.
I would comment out or get rid of all the buster entries in your sources.list.d since you are on current stable and update afterwards.
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

DoubleHP
Posts: 72
Joined: 2016-10-09 08:55
Has thanked: 1 time

Re: apt install virtualbox have unmet dependencies

#3 Post by DoubleHP »

Code: Select all

# cat /etc/apt/sources.list.d/buster.list 
#deb https://deb.debian.org/debian/ buster main contrib non-free
#deb-src https://deb.debian.org/debian/ buster main contrib non-free
# apt update
[...]
# apt install virtualbox
[...]
The following packages have unmet dependencies:
 virtualbox : Depends: libc6 (>= 2.33) but 2.31-13+deb11u2 is to be installed
              Depends: libstdc++6 (>= 11) but 10.2.1-6 is to be installed
              Recommends: virtualbox-qt (= 6.1.30-dfsg-2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
:/

DoubleHP
Posts: 72
Joined: 2016-10-09 08:55
Has thanked: 1 time

Re: apt install virtualbox have unmet dependencies

#4 Post by DoubleHP »

Code: Select all

$ cat /etc/apt/sources.list.d/unstable.list
#deb https://deb.debian.org/debian/ unstable main contrib non-free
#deb-src https://deb.debian.org/debian/ unstable main contrib non-free
$ cat /etc/apt/sources.list.d/virtualbox.list
# https://forums.debian.net/viewtopic.php?f=6&t=151296&p=749332#p749332
# https://wiki.debian.org/VirtualBox#Debian_10_.22Buster.22_and_Debian_11_.22Bullseye.22
# https://fasttrack.debian.net/
deb https://fasttrack.debian.net/debian-fasttrack/ bullseye-fasttrack main contrib
deb https://fasttrack.debian.net/debian-fasttrack/ bullseye-backports-staging main contrib

$ apt install fasttrack-archive-keyring
[...]
$ apt update
[...]
# apt install virtualbox
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libgsoap-2.8.104 liblzf1 libvncserver1 virtualbox-dkms virtualbox-qt
Suggested packages:
  vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
  libgsoap-2.8.104 liblzf1 libvncserver1 virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 6 newly installed, 0 to remove and 23 not upgraded.
Need to get 44.2 MB of archives.
After this operation, 176 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
:)

Post Reply