dpkg: error processing package ***(--install): dependency problems - leaving unconfigured

博客提到在Linux系统中遇到依赖错误时,可通过安装相应依赖来解决,还可自动安装缺少的依赖。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

依赖错误, 安装相应的依赖即可. 或者自动安装缺少依赖:

sudo apt install -f
root@yolubt:~/kvm-offline# dpkg -i *.deb Selecting previously unselected package bridge-utils. (Reading database ... 74266 files and directories currently installed.) Preparing to unpack bridge-utils_1.7-1ubuntu3_amd64.deb ... Unpacking bridge-utils (1.7-1ubuntu3) ... Selecting previously unselected package cpu-checker. Preparing to unpack cpu-checker_0.7-1.3build1_amd64.deb ... Unpacking cpu-checker (0.7-1.3build1) ... Selecting previously unselected package libvirt-clients. Preparing to unpack libvirt-clients_8.0.0-1ubuntu7.11_amd64.deb ... Unpacking libvirt-clients (8.0.0-1ubuntu7.11) ... Selecting previously unselected package libvirt-daemon-system. Preparing to unpack libvirt-daemon-system_8.0.0-1ubuntu7.11_amd64.deb ... Unpacking libvirt-daemon-system (8.0.0-1ubuntu7.11) ... Selecting previously unselected package qemu-system-x86. Preparing to unpack qemu-system-x86_1%3a6.2+dfsg-2ubuntu6.26_amd64.deb ... Unpacking qemu-system-x86 (1:6.2+dfsg-2ubuntu6.26) ... Selecting previously unselected package virtinst. Preparing to unpack virtinst_1%3a4.0.0-1_all.deb ... Unpacking virtinst (1:4.0.0-1) ... Setting up bridge-utils (1.7-1ubuntu3) ... dpkg: dependency problems prevent configuration of cpu-checker: cpu-checker depends on msr-tools; however: Package msr-tools is not installed. dpkg: error processing package cpu-checker (--install): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libvirt-clients: libvirt-clients depends on libvirt0 (= 8.0.0-1ubuntu7.11); however: Package libvirt0 is not installed. dpkg: error processing package libvirt-clients (--install): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of libvirt-daemon-system: libvirt-daemon-system depends on libvirt-clients (= 8.0.0-1ubuntu7.11); however: Package libvirt-clients is not configured yet. libvirt-daemon-system depends on libvirt-daemon (= 8.0.0-1ubuntu7.11); however: Package libvirt-daemon is not installed. libvirt-daemon-system depends on libvirt-daemon-config-network (= 8.0.0-1ubuntu7.11); however: Package libvirt-daemon-config-network is not installed. libvirt-daemon-system depends on libvirt-daemon-config-nwfilter (= 8.0.0-1ubuntu7.11); however: Package libvirt-daemon-config-nwfilter is not installed. libvirt-daemon-system depends on libvirt-daemon-system-systemd (= 8.0.0-1ubuntu7.11) | libvirt-daemon-system-sysv (= 8.0.0-1ubuntu7.11); however: Package libvirt-daemon-system-systemd is not installed. Package libvirt-daemon-system-sysv is not installed. dpkg: error processing package libvirt-daemon-system (--install): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of qemu-system-x86: qemu-system-x86 depends on libfdt1 (>= 1.6.1); however: Package libfdt1 is not installed. qemu-system-x86 depends on libibverbs1 (>= 28); however: Package libibverbs1 is not installed. qemu-system-x86 depends on libjpeg8 (>= 8c); however: Package libjpeg8 is not installed. qemu-system-x86 depends on libpixman-1-0 (>= 0.19.6); however: Package libpixman-1-0 is not installed. qemu-system-x86 depends on libpmem1 (>= 1.4); however: Package libpmem1 is not installed. qemu-system-x86 depends on librdmacm1 (>= 1.0.15); however: Package librdmacm1 is not installed. qemu-system-x86 depends on libslirp0 (>= 4.0.0); however: Package libslirp0 is not installed. qemu-system-x86 depends on liburing2 (>= 2.0); however: Package liburing2 is not installed. qemu-system-x86 depends on qemu-system-common (= 1:6.2+dfsg-2ubuntu6.26); however: Package qemu-system-common is not installed. qemu-system-x86 depends on qemu-system-data (>> 1:6.2+dfsg-2ubuntu6.26~); however: Package qemu-system-data is not installed. qemu-system-x86 depends on seabios; however: Package seabios is not installed. qemu-system-x86 depends on ipxe-qemu; however: Package ipxe-qemu is not installed. qemu-system-x86 depends on ipxe-qemu-256k-compat-efi-roms; however: Package ipxe-qemu-256k-compat-efi-roms is not installed. dpkg: error processing package qemu-system-x86 (--install): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of virtinst: virtinst depends on xorriso; however: Package xorriso is not installed. virtinst depends on gir1.2-libosinfo-1.0; however: Package gir1.2-libosinfo-1.0 is not installed. virtinst depends on python3-libvirt (>= 0.4.6); however: Package python3-libvirt is not installed. virtinst depends on python3-libxml2; however: Package python3-libxml2 is not installed. dpkg: error processing package virtinst (--install): dependency problems - leaving unconfigured Processing triggers for man-db (2.10.2-1) ... Errors were encountered while processing: cpu-checker libvirt-clients libvirt-daemon-system qemu-system-x86 virtinst root@yolubt:~/kvm-offline#
最新发布
07-15
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值