如何在 ubuntu 中安装 qemu-kvm?

如何在 ubuntu 中安装 qemu-kvm?

安装 qemu-kvm 时出现以下错误:

$sudo apt-get install qemu-kvm 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package qemu-kvm is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  qemu-user:i386 qemu-user

E: Package 'qemu-kvm' has no installation candidate

有人能帮助我解决这个问题并安装 qemu-kvm 吗?

答案1

qemu-kvm在 Ubuntu 存储库的组件中可用main。我认为您可能已禁用主源。

启用main组件

sudo apt-add-repository main

刷新包索引

sudo apt-get update

安装

sudo apt-get install qemu-kvm

希望能够解决

相关内容