我想在我的虚拟机 Debian 10 中安装 QEMU。但出现以下错误。我该如何修复它们?
root@debian:~# apt-get install qemu-system-arm
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:
qemu-system-arm : Depends: libaio1 (>= 0.3.93) but it is not installable
Depends: libcapstone3 (>= 3.0.0) but it is not installable
Depends: libfdt1 but it is not installable
Depends: libspice-server1 (>= 0.13.1) but it is not installable
Depends: libvdeplug2 but it is not installable
Depends: libvirglrenderer0 (>= 0.7.0) but it is not installable
Recommends: qemu-system-gui (= 1:3.1+dfsg-8+deb10u5) but it is not going to be installed
Recommends: qemu-utils but it is not going to be installed
Recommends: ipxe-qemu (>= 1.0.0+git-20131111.c3d1e78-1~) but it is not installable
Recommends: qemu-efi-aarch64 but it is not installable
Recommends: qemu-efi-arm but it is not installable
E: Unable to correct problems, you have held broken packages.
答案1
在某些情况下运行完整升级可以解决此问题。
sources.list
该问题也可能是由于您的文件配置错误引起的/etc/apt/sources.list
请检查您source.list
是否添加了不受支持的存储库。
您可以通过以下方式执行此操作:
通过键入检查sources.list
sudo nano /etc/apt/sources.list
您可以使用您选择的编辑器(例如 gedit 或 leafpad)替换 nano。
在软件中心检查您的存储库。
导航到您的应用程序菜单并搜索software & update
.将打开一个对话框。单击该other software
选项并禁用/删除任何非 Debian 存储库。修复损坏的依赖关系。
sudo dpkg --configure -a sudo apt-get -f install
更新系统包。
sudo apt-get update
运行完整升级以解决问题
sudo apt-get -u dist-upgrade
安装 qemu-system-arm
sudo apt-get install qemu-system-arm
你也可以参考这个。