![无法删除、重新安装或进行任何针对 linux-firmware /lib/firmware/intel/sof-tplg 的操作](https://linux22.com/image/937825/%E6%97%A0%E6%B3%95%E5%88%A0%E9%99%A4%E3%80%81%E9%87%8D%E6%96%B0%E5%AE%89%E8%A3%85%E6%88%96%E8%BF%9B%E8%A1%8C%E4%BB%BB%E4%BD%95%E9%92%88%E5%AF%B9%20linux-firmware%20%2Flib%2Ffirmware%2Fintel%2Fsof-tplg%20%E7%9A%84%E6%93%8D%E4%BD%9C.png)
经过多次尝试和错误,问题是这也是一个 vps,我只想切换到 linux-image-virtual 或无论它叫什么,但我还想能够升级我的软件 atm
sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
linux-firmware
The following NEW packages will be installed:
distro-info libevdev2 libimobiledevice6 libplist3 libupower-glib3 libusbmuxd6
linux-headers-5.4.0-73 linux-headers-5.4.0-73-generic upower usbmuxd
The following packages will be upgraded:
alsa-ucm-conf apport erlang-asn1 erlang-base erlang-crypto erlang-dev erlang-diameter
erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit erlang-ic erlang-inets erlang-inviso
erlang-mnesia erlang-nox erlang-odbc erlang-os-mon erlang-parsetools erlang-percept
erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools
erlang-tools erlang-xmerl intel-microcode libasound2 libasound2-data libmysqlclient21
libnetplan0 libpq5 libunbound8 libxmlb1 linux-headers-generic linux-libc-dev netplan.io
open-iscsi postgresql-13 postgresql-client-13 postgresql-client-common postgresql-common
python3-apport python3-problem-report python3-update-manager python3-yaml thermald tmux
ubuntu-advantage-tools update-manager-core
52 upgraded, 10 newly installed, 1 to remove and 0 not upgraded.
43 not fully installed or removed.
Need to get 0 B/61.4 MB of archives.
After this operation, 467 MB disk space will be freed.
Do you want to continue? [Y/n]
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 137369 files and directories currently installed.)
Removing linux-firmware (1.187.10) ...
dpkg: error processing package linux-firmware (--remove):
unable to securely remove '/lib/firmware/intel/sof-tplg/sof-tgl-rt711-rt1308.tplg.dpkg-new': Bad message
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-firmware
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-firmware
0 upgraded, 0 newly installed, 1 to remove and 52 not upgraded.
43 not fully installed or removed.
After this operation, 559 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 137369 files and directories currently installed.)
Removing linux-firmware (1.187.10) ...
dpkg: error processing package linux-firmware (--remove):
unable to securely remove '/lib/firmware/intel/sof-tplg/sof-tgl-rt711-rt1308.tplg.dpkg-new': Bad message
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-firmware
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo apt --fix-missing reinstall
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-firmware
0 upgraded, 0 newly installed, 1 to remove and 52 not upgraded.
43 not fully installed or removed.
After this operation, 559 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 137369 files and directories currently installed.)
Removing linux-firmware (1.187.10) ...
dpkg: error processing package linux-firmware (--remove):
unable to securely remove '/lib/firmware/intel/sof-tplg/sof-tgl-rt711-rt1308.tplg.dpkg-new': Bad message
dpkg: too many errors, stopping
Errors were encountered while processing:
linux-firmware
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
sudo dpkg -i --force-overwrite /var/cache/apt/archives/linux-firmware_1.187.12_all.deb
Selecting previously unselected package linux-firmware.
(Reading database ... 137370 files and directories currently installed.)
Preparing to unpack .../linux-firmware_1.187.12_all.deb ...
Unpacking linux-firmware (1.187.12) over (1.187.10) ...
dpkg: error processing archive /var/cache/apt/archives/linux-firmware_1.187.12_all.deb (--install):
unable to stat './lib/firmware/intel/sof-tplg/sof-apl-asrc-wm8804.tplg' (which I was about to install): Bad message
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/linux-firmware_1.187.12_all.deb
答案1
问题是文件系统已损坏
通过从 ubuntu 安装 cd 启动并执行 fsck 修复了这个问题,很惊讶他们的忙盒不包含 fsck 和 cryptsetup