KVM.kvm-ok 未找到错误

KVM.kvm-ok 未找到错误

Ubuntu 22.04

我正在尝试按照本指南设置 KVMhttps://help.ubuntu.com/community/KVM/Installation不幸的是,当我运行 kvm-ok 时,我收到以下错误

Command 'kvm-ok' not found, but can be installed with:
sudo apt install cpu-checker

然后我尝试安装 cpu-checker,但出现了这个错误

cpu-checker : Depends: msr-tools but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

我已经在 BIOS(AMD Ryzen7 GFX CPU)中启用了虚拟化,并且尝试了--fix-broken 安装。

kvm 是安装 Docker Desktop 的必要条件,我正在尝试让它工作,有人知道如何解决这个问题,以便我可以让 kvm/Docker 工作吗?

已安装的存储库
有人认为这个问题是由存储库冲突引起的,但你如何找出罪魁祸首?我为音频应用程序(kxstudio)、Brave Browser、Wine、Proton、VSCode 和 Chrome 安装了几个存储库。它们都是在过去几个月安装的。(该系统于 3 个月前重建)

sudo grep -rhE ^deb /etc/apt/sources.list* 
  
deb http://gb.archive.ubuntu.com/ubuntu/ jammy main restricted
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
deb http://gb.archive.ubuntu.com/ubuntu/ jammy universe
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates universe
deb http://gb.archive.ubuntu.com/ubuntu/ jammy multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu/ jammy main
deb https://ppa.launchpadcontent.net/flatpak/stable/ubuntu/ jammy main
deb http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic main
deb http://ppa.launchpad.net/kxstudio-debian/music/ubuntu bionic main
deb http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu bionic main
deb http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu bionic main
deb http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu bionic main
deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
deb http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu focal main
deb http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu focal main
deb http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu focal main
deb http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu focal main
deb [arch=amd64,arm64,armhf] http://packages.microsoft.com/repos/code stable main
deb [arch="all", signed-by=/usr/share/keyrings/protonvpn-stable-archive-keyring.gpg] https://repo.protonvpn.com/debian stable main

谢谢杰夫

答案1

目前,kvm 是 qemu-system-x86 软件包的一部分。安装该软件包。

sudo apt install qemu-system-x86

创建图像(填写您自己的名字):

kvm -m 4096 -cdrom ${PWD}/$ISO -boot d ${NAME}

并运行图像(根据需要调整核心/内存):

kvm -smp cores=4,threads=2 -cpu host -m 4096 -vga virtio -usb $IMAGE

答案2

冲突似乎是由一个名为 avldrums.lv2 的软件包引起的,该软件包具有未满足的依赖项 avldrums.lv2-data。我认为这个软件包是与 Ubuntu Studio 的一套音频软件包和 VST 一起安装的(但不能 100% 确定)。我不知道为什么这会对安装其他不相关的软件包产生连锁反应,但从系统中清除它已经起作用了,我现在可以安装 qemu-system-x86,我可以运行命令 kvm-ok 并继续安装 Docker。感谢所有提供帮助的人。:)

相关内容