包管理器已损坏

包管理器已损坏

每次我尝试更新我的操作系统时,它都会返回这些错误消息:;

patrick@Lappy:~$ LANG=ENG
patrick@Lappy:~$ sudo aptitude upgrade
[sudo] password for patrick: 
Warning: Invalid locale (please review locale settings, this might lead to problems later):
  locale::facet::_S_create_c_locale name not valid
The following partially installed packages will be configured:
  initramfs-tools linux-firmware linux-image-5.11.0-41-generic 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
perl: warning: Setting locale failed.    
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:nl",
        LC_ALL = (unset),
        LANG = "ENG"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Setting up initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.187.25) ...
update-initramfs: Generating /boot/initrd.img-5.11.0-41-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.11.0-41-generic with 1.
dpkg: error processing package linux-firmware (--configure):
 installed linux-firmware package post-installation script subprocess returned error exit status 1
Setting up linux-image-5.11.0-41-generic (5.11.0-41.45~20.04.1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: Generating /boot/initrd.img-5.11.0-41-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.11.0-41-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.11.0-41-generic (5.11.0-41.45~20.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.11.0-41-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.11.0-41-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.11.0-41-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.11.0-41-generic (--configure):
 installed linux-image-5.11.0-41-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-firmware
 initramfs-tools
 linux-image-5.11.0-41-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.187.25) ...
update-initramfs: Generating /boot/initrd.img-5.11.0-41-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.11.0-41-generic with 1.
dpkg: error processing package linux-firmware (--configure):
 installed linux-firmware package post-installation script subprocess returned error exit status 1
Setting up linux-image-5.11.0-41-generic (5.11.0-41.45~20.04.1) ...
Processing triggers for initramfs-tools (0.136ubuntu6.6) ...
update-initramfs: Generating /boot/initrd.img-5.11.0-41-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.11.0-41-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.11.0-41-generic (5.11.0-41.45~20.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.11.0-41-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.11.0-41-generic
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-5.11.0-41-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.11.0-41-generic (--configure):
 installed linux-image-5.11.0-41-generic package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 linux-firmware
 initramfs-tools
 linux-image-5.11.0-41-generic

所以普利茅斯和

linux-firmware 已安装 linux-firmware 包安装后脚本子进程返回错误退出状态 1

initramfs-tools 已安装 initramfs-tools 包安装后脚本子进程返回错误退出状态 1

linux-image-5.11.0-41-generic 已安装 linux-image-5.11.0-41-generic 包安装后脚本子进程返回错误退出状态 1

有没有办法修复这个问题,或者我应该列出我安装的软件并重新安装所有软件。我不太愿意重新安装,因为我的笔记本电脑充电器坏了,所以我必须使用电池工作,并且必须通过 USB3 端口用移动充电器充电,所以这需要几天时间。

我已经尝试过这个:
sudo dpkg --configure -a
sudo apt update
sudo apt upgrade
但显然这不起作用!(如果有效我就不会向这个优秀的社区寻求帮助。)

有人能帮我找到解决这个问题的方法吗,还是我真的必须重新安装(在新的 LTS 发布之前不久)?我运行:
操作系统:Kubuntu 20.04
KDE Plasma 版本:5.18.7
KDE 框架版本:5.68.0
Qt 版本:5.12.8
内核版本:5.11.0-41-generic
操作系统类型:64 位
处理器:8 × Intel® Core™ i7-10510U CPU @ 1.80GHz
内存:15,3 GiB
在 HP Envy i7 CE000ns 上进行三重启动,使用 Mint 20.2 Uma 和 Win10(分离的操作系统和 /home 分区、交换分区和 win10 以及“我的文档”分区)。

提前感谢您分享您的时间和知识。我非常感激。

编辑 220112 于 22:04h 当地西班牙时间 虽然我的系统设置为 english\american,但终端中的输出是荷兰语。见截图:在此处输入图片描述。我该如何改变这一点?这样我就可以编辑这个问题了。

答案1

我清除了 Plymouth,并用“aptitude”重新安装了它。然后我输入了命令 sudo aptitude upgrade,它升级了 29 个软件包,没有任何错误。感谢大家的时间和帮助。

相关内容