ubuntu fix "the package system is broken"

博客提及了 'sudo apt-get install -f' 这一命令,该命令常用于 Linux 系统中修复软件包依赖关系问题,是信息技术领域系统操作方面的常用指令。

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

sudo apt-get intall -f
root@yolubt:~/kvm-offline# sudo apt install apt-rdepends Reading package lists... Donelibvirt-daemon-system | grep -v "^Reverse" > full-deps.list Building dependency tree... Done Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: apt-rdepends : Depends: libapt-pkg-perl but it is not going to be installed cpu-checker : Depends: msr-tools but it is not going to be installed libvirt-clients : Depends: libvirt0 (= 8.0.0-1ubuntu7.11) but it is not going to be installed libvirt-daemon-system : Depends: libvirt-daemon (= 8.0.0-1ubuntu7.11) but it is not going to be installed Depends: libvirt-daemon-config-network (= 8.0.0-1ubuntu7.11) but it is not going to be installed Depends: libvirt-daemon-config-nwfilter (= 8.0.0-1ubuntu7.11) but it is not going to be installed Depends: libvirt-daemon-system-systemd (= 8.0.0-1ubuntu7.11) but it is not going to be installed or libvirt-daemon-system-sysv (= 8.0.0-1ubuntu7.11) but it is not going to be installed Recommends: dnsmasq-base Recommends: mdevctl but it is not going to be installed Recommends: swtpm-tools but it is not going to be installed qemu-system-x86 : Depends: libfdt1 (>= 1.6.1) but it is not going to be installed Depends: libibverbs1 (>= 28) but it is not going to be installed Depends: libjpeg8 (>= 8c) but it is not going to be installed Depends: libpixman-1-0 (>= 0.19.6) but it is not going to be installed Depends: libpmem1 (>= 1.4) but it is not going to be installed Depends: librdmacm1 (>= 1.0.15) but it is not going to be installed Depends: libslirp0 (>= 4.0.0) but it is not going to be installed Depends: liburing2 (>= 2.0) but it is not going to be installed Depends: qemu-system-common (= 1:6.2+dfsg-2ubuntu6.26) but it is not going to be installed Depends: qemu-system-data (> 1:6.2+dfsg-2ubuntu6.26~) but it is not going to be installed Depends: seabios but it is not going to be installed Depends: ipxe-qemu but it is not going to be installed Depends: ipxe-qemu-256k-compat-efi-roms but it is not going to be installed Recommends: qemu-system-gui (= 1:6.2+dfsg-2ubuntu6.26) but it is not going to be installed Recommends: qemu-utils but it is not going to be installed Recommends: ovmf but it is not going to be installed Recommends: qemu-block-extra (= 1:6.2+dfsg-2ubuntu6.26) but it is not going to be installed virtinst : Depends: xorriso but it is not going to be installed Depends: gir1.2-libosinfo-1.0 but it is not going to be installed Depends: python3-libvirt (>= 0.4.6) but it is not going to be installed Depends: python3-libxml2 but it is not going to be installed Recommends: qemu-utils but it is not going to be installed Recommends: virt-viewer but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
最新发布
07-15
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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值