对于版本 6,我收到此消息:
virtualbox-6.0 : Depends: libqt5opengl5 (>= 5.0.2) but it is not installable
Recommends: libsdl-ttf2.0-0 but it is not installable
ubuntu 软件中心/synaptic 有版本 5,尽管版本 6 存在,但未安装版本 5 或 6
对于版本 5,我收到此消息:
The following packages have unmet dependencies:
virtualbox-qt: Depends: virtualbox (= 5.2.18-dfsg-2) but 5.2.18-dfsg-2 is to be installed
Depends: libgcc1 (>= 1:3.0) but 1:8.2.0-7ubuntu1 is to be installed
Depends: libqt5core5a (>= 5.11.0~rc1) but 5.11.1+dfsg-7ubuntu1 is to be installed
Depends: libqt5gui5 (>= 5.4.0) but 5.11.1+dfsg-7ubuntu1 is to be installed
Depends: libqt5opengl5 (>= 5.0.2) but it is not going to be installed
Depends: libqt5widgets5 (>= 5.11.0~rc1) but 5.11.1+dfsg-7ubuntu1 is to be installed
Depends: libqt5x11extras5 (>= 5.6.0) but 5.11.1-2 is to be installed
**from synaptic manager, i get this message**
virtualbox:
Depends: virtualbox-dkms but it is not going to be installed or
virtualbox-source but it is not going to be installed or
virtualbox-modules
Depends: libgsoap-2.8.60 but it is not installable
Depends: libvncserver1 (>=0.9.10) but it is not installable
Recommends: virtualbox-qt but it is not going to be installed
Recommends: libqt5opengl5 (>=5.0.2) but it is not installable
apt-cache 策略 virtualbox virtualbox-qt virtualbox-5.2 virtualbox-6.0 输出
virtualbox:已安装:(无)候选:5.2.18-dfsg-2 版本表:5.2.18-dfsg-2ubuntu18.10.1 -1 100 /var/lib/dpkg/status 5.2.18-dfsg-2 500 500http://archive.ubuntu.com/ubuntucosmic/multiverse amd64 软件包 virtualbox-qt: 已安装:(无) 候选版本:5.2.18-dfsg-2 版本表:5.2.18-dfsg-2ubuntu18.10.1 -1 100 /var/lib/dpkg/status 5.2.18-dfsg-2 500 500http://archive.ubuntu.com/ubuntucosmic/multiverse amd64 软件包 virtualbox-5.2: 已安装: (无) 候选版本: 5.2.26-128414~Ubuntu~bionic 版本表: 5.2.26-128414~Ubuntu~bionic 500 500http://download.virtualbox.org/virtualbox/debiancosmic/contrib amd64 软件包 virtualbox-6.0: 已安装: (无) 候选版本: 6.0.4-128413~Ubuntu~bionic 版本表: 6.0.4-128413~Ubuntu~bionic 500 500http://download.virtualbox.org/virtualbox/debiancosmic/contrib amd64 软件包 100 /var/lib/dpkg/status
答案1
这对我有用。
apt --fix-broken install
希望这对你有帮助。
答案2
尝试从这里的网站下载它; https://www.virtualbox.org/wiki/Linux_Downloads
然后点击Ubuntu 18.04 / 18.10 / Debian 10
运行下载的文件。Ubuntu 软件中心上的那个对我来说不起作用。但那个可以
答案3
是libqt5core5a的版本,你有一个旧版本,你需要安装这个库并重新安装它。
apt remove libqt5core5a
apt remove libqt5core5a
apt install -f virtualbox-qt
eading state information... Done
libqt5core5a is already the newest version (5.15.2+dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@Odoo-Dev:/home/jrmpacheco# apt remove libqt5core5a
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libdouble-conversion3 libpcre2-16-0 qttranslations5-l10n
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
libqt5core5a
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 6 058 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 206732 files and directories currently installed.)
Removing libqt5core5a:amd64 (5.15.2+dfsg-2) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
root@Odoo-Dev:/home/jrmpacheco# apt install libqt5core5a
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
libqt5core5a
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2 005 kB of archives.
After this operation, 6 015 kB of additional disk space will be used.
Get:1 http://mx.archive.ubuntu.com/ubuntu focal/universe amd64 libqt5core5a amd64 5.12.8+dfsg-0ubuntu1 [2 005 kB]
Fetched 2 005 kB in 5s (417 kB/s)
Selecting previously unselected package libqt5core5a:amd64.
(Reading database ... 206721 files and directories currently installed.)
Preparing to unpack .../libqt5core5a_5.12.8+dfsg-0ubuntu1_amd64.deb ...
Unpacking libqt5core5a:amd64 (5.12.8+dfsg-0ubuntu1) ...
Setting up libqt5core5a:amd64 (5.12.8+dfsg-0ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.1) ...
root@Odoo-Dev:/home/jrmpacheco# apt install libqt5core5a
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt5core5a is already the newest version (5.12.8+dfsg-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@Odoo-Dev:/home/jrmpacheco# apt install libqt5core5a
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqt5core5a is already the newest version (5.12.8+dfsg-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@Odoo-Dev:/home/jrmpacheco# apt install qtbase-abi-5-12-8
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libqt5core5a' instead of 'qtbase-abi-5-12-8'
libqt5core5a is already the newest version (5.12.8+dfsg-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@Odoo-Dev:/home/jrmpacheco# apt install -f virtualbox-qt
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5x11extras5
libxcb-xinerama0 libxcb-xinput0 qt5-gtk-platformtheme
Suggested packages:
qt5-image-formats-plugins qtwayland5
The following NEW packages will be installed:
libqt5dbus5 libqt5gui5 libqt5network5 libqt5opengl5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libqt5x11extras5
libxcb-xinerama0 libxcb-xinput0 qt5-gtk-platformtheme virtualbox-qt
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.5 MB of archives.
After this operation, 86.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y