Al intentar instalar Virtualbox en ubuntu 19.10 pero después de usarlo, sudo apt install virtualbox
aparece el mismo error una y otra vez. ¿Alguien podría ayudarme a resolver el problema e instalarlo?
`Reading package lists... Done
Building dependency tree
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-qt : Depends: virtualbox (= 6.0.14-dfsg-1)
Depends: libqt5core5a (>= 5.12.2) but it is not installable
Depends: libqt5gui5 (>= 5.3.0) but it is not installable or
libqt5gui5-gles (>= 5.3.0) but it is not installable
Depends: libqt5opengl5 (>= 5.0.2) but it is not installable
Depends: libqt5printsupport5 (>= 5.0.2) but it is not installable
Depends: libqt5widgets5 (>= 5.11.0~rc1) but it is not installable
Depends: libqt5x11extras5 (>= 5.6.0) but it is not installable
E: Unable to correct problems, you have held broken packages.
`
Después de ejecutar sudo add-apt-repository multiverse && sudo apt-get update
, el resultado es: -
'multiverse' distribution component enabled for all sources.
Hit:1 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu eoan InRelease
Hit:2 http://ppa.launchpad.net/linuxuprising/java/ubuntu eoan InRelease
Hit:3 http://download.virtualbox.org/virtualbox/debian eoan InRelease
Hit:4 http://ppa.launchpad.net/nathan-renniewaldock/flux/ubuntu eoan InRelease
Hit:5 http://ppa.launchpad.net/persepolis/ppa/ubuntu eoan InRelease
Hit:6 https://download.sublimetext.com apt/stable/ InRelease
Get:7 http://archive.ubuntu.com/ubuntu eoan InRelease [255 kB]
Get:8 http://archive.ubuntu.com/ubuntu eoan/multiverse amd64 Packages [153 kB]
Get:9 http://archive.ubuntu.com/ubuntu eoan/multiverse i386 Packages [141 kB]
Get:10 http://archive.ubuntu.com/ubuntu eoan/multiverse Translation-en [111 kB]
Get:11 http://archive.ubuntu.com/ubuntu eoan/multiverse amd64 DEP-11 Metadata [51.1 kB]
Get:12 http://archive.ubuntu.com/ubuntu eoan/multiverse DEP-11 48x48 Icons [7,665 B]
Get:13 http://archive.ubuntu.com/ubuntu eoan/multiverse DEP-11 64x64 Icons [229 kB]
Get:14 http://archive.ubuntu.com/ubuntu eoan/multiverse amd64 c-n-f Metadata [9,424 B]
Fetched 957 kB in 10s (96.9 kB/s)
Reading package lists... Done
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'http://download.virtualbox.org/virtualbox/debian eoan InRelease' doesn't support architecture 'i386'
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
Hit:1 http://archive.ubuntu.com/ubuntu eoan InRelease
Hit:2 http://download.virtualbox.org/virtualbox/debian eoan InRelease
Hit:3 http://ppa.launchpad.net/gezakovacs/ppa/ubuntu eoan InRelease
Hit:4 https://download.sublimetext.com apt/stable/ InRelease
Hit:5 http://ppa.launchpad.net/linuxuprising/java/ubuntu eoan InRelease
Hit:6 http://ppa.launchpad.net/nathan-renniewaldock/flux/ubuntu eoan InRelease
Hit:7 http://ppa.launchpad.net/persepolis/ppa/ubuntu eoan InRelease
Reading package lists... Done
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'http://download.virtualbox.org/virtualbox/debian eoan InRelease' doesn't support architecture 'i386'
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/oracle-virtualbox.list:1
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
W: Target CNF (contrib/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/virtualbox.list:1
El estado de dkms es
rtlwifi-new, 0.6, 5.3.0-18-generic, x86_64: installed
dpkg-lcaja virtuales
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-========================-============-============-=========================
un virtualbox-guest-dkms <none> <none> (no description available
un virtualbox-guest-modules <none> <none> (no description available
La salida de grep -i virtualbox /etc/apt/sources.list
es
# deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian eoan contrib
La salida de grep -i virtualbox /etc/apt/sources.list.d/*.list
es
/etc/apt/sources.list.d/oracle-virtualbox.list:deb http://download.virtualbox.org/virtualbox/debian eoan contrib /etc/apt/sources.list.d/virtualbox.list:deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian eoan contrib
La salida de sudo apt-get install virtualbox-6.1
es
Reading package lists... Done
Building dependency tree
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-6.1 : Depends: libqt5core5a (>= 5.12.2) but it is not going to be installed
Depends: libqt5gui5 (>= 5.4.0) but it is not going to be installed or
libqt5gui5-gles (>= 5.4.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.12.2) but it is not going to be installed
Depends: libqt5x11extras5 (>= 5.6.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Respuesta1
Edite este archivo...
sudo -H gedit /etc/apt/sources.list
# fuentes primarias.lista
Y cambia esto:
# deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian eoan contrib
A esto:
deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian eoan contrib
Y borra estos dos archivos...
sudo rm -i /etc/apt/sources.list.d/oracle-virtualbox.list
# duplicar
sudo rm -i /etc/apt/sources.list.d/virtualbox.list
# duplicar
Instalar virtualbox-6.1...
sudo apt-get update
# actualizar bases de datos de software
sudo apt-get install virtualbox-6.1
#instalar caja virtual
Actualización n.º 1:
Antes del paso de instalación de Virtualbox, tuvimos que arreglar algunos paquetes retenidos/rotos, y luego tuvimos que abrir Software & Updates
y habilitar todos los repositorios de Ubuntu apropiados.
Respuesta2
Parece que tienes fuentes rotas. Compruebe si el comando "sudo apt update" resuelve este problema.
Sin embargo, tenga en cuenta que VBox en los repositorios de Ubuntu está bastante desactualizado. Es mejor instalar VBox desde el repositorio de Oracle. Para hacer esto, cree el archivo " /etc/apt/sources.list.d/virtualbox.list con el siguiente contenido:
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian eoan contrib
Después de eso, agregue la clave gpg para que se pueda verificar su fuente.
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
Luego puede instalar VBox con el comando "sudo apt update; sudo apt install virtualbox-6.1"