我使用了以下命令:
sudo apt install libexpect-perl qemu-system-x86 qemu-utils
但是,我收到以下错误:
Err:1 http://deb.debian.org/debian buster/main amd64 ovmf all 0~20181115.85588389-3+deb10u2
404 Not Found [IP: 151.101.210.132 80]
E: Failed to fetch http://deb.debian.org/debian/pool/main/e/edk2/ovmf_0~20181115.85588389-3+deb10u2_all.deb 404 Not Found [IP: 151.101.210.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
我尝试运行apt-get update
,但收到以下错误:
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
答案1
使用以下命令:
sudo rm /var/lib/apt/lists/lock
sudo rm -rf /var/lib/apt/lists/*
sudo apt update
sudo apt upgrade
sudo apt install qemu qemu-utils qemu-kvm virt-manager \
libvirt-daemon-system libvirt-clients bridge-utils
答案2
nano /etc/apt/sources.list 你填写的目录
德布http://deb.debian.org/debianBuster 主 deb-srchttp://deb.debian.org/debian巴斯特主要
德布http://security.debian.org/debian-securitybuster/更新主要 deb-srchttp://security.debian.org/debian-security破坏者/更新主要