固件包未安装。
dpkg-deb (subprocess): decompressing archive '/var/cache/apt/archives/linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb' (size=483854410)
member 'data.tar': zstd error: Data corruption detected
我尝试强制重新安装并重新下载软件包,但错误仍然出现。我该如何修复它。完整命令输出如下:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb
(Reading database ... 312180 files and directories currently installed.)
Preparing to unpack .../linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb ...
Unpacking linux-firmware (20240318.git3b128b60-0ubuntu2.4) over (20220329.git681281e4-0ubuntu3.34) ...
dpkg-deb (subprocess): decompressing archive '/var/cache/apt/archives/linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb' (size=483854410) member 'data.tar': zstd error: Data corruption detected
dpkg-deb: error: <decompress> subprocess returned error exit status 2
dpkg: error processing archive /var/cache/apt/archives/linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb (--install):
cannot copy extracted data for './lib/firmware/mrvl/pcieuart8997_combo_v4.bin.zst' to '/lib/firmware/mrvl/pcieuart8997_combo_v4.bin.zst.dpkg-new': unexpected end of file or stream
update-initramfs: Generating /boot/initrd.img-6.8.0-45-generic
update-initramfs: Generating /boot/initrd.img-5.15.0-122-generic
dracut-install: could not get modinfo from 'cicada': Exec format error
dracut-install: could not get modinfo from 'cortina': Exec format error
dracut-install: could not get modinfo from 'dp83822': Exec format error
dracut-install: could not get modinfo from 'dp83867': Exec format error
dracut-install: could not get modinfo from 'dp83848': Exec format error
dracut-install: could not get modinfo from 'dp83640': Exec format error
dracut-install: could not get modinfo from 'bcm54140': Exec format error
dracut-install: could not get modinfo from 'bcm7xxx': Exec format error
dracut-install: could not get modinfo from 'davicom': Exec format error
dracut-install: could not get modinfo from 'broadcom': Exec format error
dracut-install: could not get modinfo from 'et1011c': Exec format error
dracut-install: could not get modinfo from 'bcm87xx': Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/bcm54140.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/bcm7xxx.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/bcm87xx.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/broadcom.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/cicada.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/cortina.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/davicom.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/dp83640.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/dp83822.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/dp83848.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/dp83867.ko: Exec format error
depmod: ERROR: failed to load symbols from /var/tmp/mkinitramfs_oobXcr/lib/modules/5.15.0-122-generic/kernel/drivers/net/phy/et1011c.ko: Exec format error
update-initramfs: Generating /boot/initrd.img-5.15.0-112-generic
update-initramfs: Generating /boot/initrd.img-5.15.0-97-generic
Errors were encountered while processing:
/var/cache/apt/archives/linux-firmware_20240318.git3b128b60-0ubuntu2.4_amd64.deb
通常,当您拥有时
Exec format error
,用于构建模块的工具与正在运行的内核不兼容。请确保安装的版本和架构适合机器和正在运行的内核。实现此目的的最佳方法是使用 USB 磁盘启动,最好使用与要迁移到的版本相同的版本,删除已安装的固件包,然后使用包管理器重新安装。
实现这一目标的步骤如下:
从 USB 磁盘启动。进入 shell 后,使用以下命令识别磁盘
lsblk
创建一个文件夹来挂载分区
mkdir -p /mnt/root
现在将一些文件系统挂载到新的根文件夹中:
chroot
进入挂载文件系统并配置 DNS 解析:可以通过以下方式验证是否有效:
以下步骤是删除固件包、确保
sources.list
指向正确的版本、更新缓存、升级任何待处理的包以及安装正确的固件包。签入文件
/etc/apt/sources.list
并/etc/apt/sources.list.d
查看它们是否指向noble
版本。有时,当升级失败时,这些文件会恢复到以前的版本。运行更新并升级以确保一切都是最新的。