解决ubuntu apt upgrade后出现dpkg: error processing package linux-firmware (--configure)

本文讨论了如何在更新过程中,通过apt自动移除与已弃用版本(5.4.0-42)相关的Linux内核头文件、通用内核映像和模块。管理员需管理弃用包以保持系统整洁和兼容性。

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

apt remove linux-headers-5.4.0-42 linux-headers-5.4.0-42-generic linux-image-5.4.0-42-generic linux-modules-5.4.0-42-generic
apt autoremove

版本号改成弃用的对应版本。

inelx@ubuntu:~/Desktop$ sudo apt update sudo apt upgrade -y Hit:1 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Hit:3 http://us.archive.ubuntu.com/ubuntu focal InRelease Hit:4 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:5 https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/ InRelease Hit:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease Reading package lists... Done Building dependency tree Reading state information... Done 169 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: icu-devtools lib32gcc-s1 lib32stdc++6 libblas-dev libc-dev-bin libc6-i386 libclang-common-10-dev libclang1-10 libcrypt-dev libdeflate-dev libfakeroot libgc1c2 libgfortran-9-dev liblapack-dev libllvm10 liblzma-dev libobjc-9-dev libobjc4 libpcre16-3 libpcre2-16-0 libpcre2-posix2 libpcre32-3 libpcrecpp0v5 libpng-tools libtirpc-dev libzstd-dev linux-hwe-5.15-headers-5.15.0-139 linux-libc-dev Use 'sudo apt autoremove' to remove them. The following security updates require Ubuntu Pro with 'esm-infra' enabled: linux-headers-generic-hwe-20.04 xserver-xorg-core libpython3.8-minimal libsystemd0 libgs9 sudo libpython3.8 python3.8 libblockdev-crypto2 udev linux-image-generic-hwe-20.04 libudev1 systemd-timesyncd linux-generic-hwe-20.04 xserver-xephyr udisks2 python3.8-minimal systemd-sysv libpam-systemd xwayland ghostscript systemd libblockdev-utils2 ghostscript-x libnss-systemd libgs9-common libpython3.8-stdlib libxslt1.1 Learn more about Ubuntu Pro at https://ubuntu.com/pro The following packages have been kept back: bsdutils cups cups-bsd cups-client cups-core-drivers cups-daemon cups-ipp-utils dbus-user-session dbus-x11 distro-info distro-info-data ghostscript-x gir1.2-gdkpixbuf-2.0 gir1.2-gstreamer-1.0 gir1.2-gtk-3.0 gnome-control-center-data gnome-shell-common gnupg gnupg-l10n gstreamer1.0-alsa gstreamer1.0-plugins-base gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-good gstreamer1.0-pulseaudio gstreamer1.0-x gtk-update-icon-cache gtk2-engines-pixbuf hplip-data libblockdev-utils2 libcups2 libcupsimage2 libcurl4 libdbus-1-3 libdpkg-perl libebackend-1.2-10 libebook-1.2-20 libecal-2.0-1 libedata-cal-2.0-1 libgail-common libgail18 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libglib2.0-bin libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0 libgstreamer1.0-0 libgtk2.0-0 libgtk2.0-bin libhpmud0 libldb2 libnautilus-extension1a libnetplan0 libnss-systemd libpam-systemd libperl5.30 libpoppler-glib8 libpoppler97 libpython3-stdlib librsvg2-common libsane-hpaio libudev1 libvte-2.91-common libyelp0 linux-firmware linux-generic-hwe-20.04 linux-headers-generic-hwe-20.04 linux-image-generic-hwe-20.04 nautilus-data netplan.io perl perl-base printer-driver-hpcups python3 python3-gdbm python3-ldb python3-minimal python3-pil python3-protobuf python3-renderpm python3-reportlab python3-reportlab-accel systemd-sysv systemd-timesyncd udisks2 vim-common 0 upgraded, 0 newly installed, 0 to remove and 86 not upgraded.
最新发布
07-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

DONG999

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值