首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Packagemanager已损坏

Packagemanager已损坏
EN

Ask Ubuntu用户
提问于 2022-01-12 16:45:47
回答 1查看 482关注 0票数 3

每当我试图更新我的操作系统时,它都会返回以下错误消息:;

代码语言:javascript
复制
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固件包安装后脚本子进程返回错误退出状态1

initramfs-安装了initramfs的工具包安装后脚本子进程返回的错误退出状态1

linux-映像-5.11.0-41-通用安装的linux-映像-5.11.0-41-通用包后安装脚本子进程返回错误退出状态1

是否存在修复此问题的方法,或者是否应该列出已安装软件的列表并重新安装所有的软件。我不愿意重新安装,因为我的笔记本电脑充电器坏了,所以我必须工作电池,必须用一个该死的移动充电器通过USB3端口,所以这将需要数天。

我已经尝试过了: sudo -配置-a sudo,apt更新,sudo apt升级,但是很明显,这不起作用!(如果是这样的话,我就不会向这个好社区寻求帮助。)

有人能帮我找到解决这个问题的方法吗?或者我真的需要重新安装(所以在发布新的LTS之前不久)?我运行:操作系统:Kubuntu20.04KDE等离子体版本: 5.18.7 KDE框架版本: 5.68.0 Qt版本: 5.12.8内核版本:5.11.0-41-通用OS类型:64位处理器:8×Intel Core™i7-10510U CPU @ 1.80GHz内存: 15,3 GiB On HP Envy i7 CE000ns in tripleboot with 20.2 Uma和Win10 (分离操作系统和/home分区、交换分区和win10以及“my documents”分区)。

感谢大家分享你们的时间和知识。我真的很感激。

在当地西班牙时间22.04h编辑220112,虽然我的系统设置为英语\美式,但终端中的输出是荷兰语。见截图:

。我怎么才能改变这个?这样我就可以编辑问题了。

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2022-01-13 21:55:55

我清理了普利茅斯,用“天资”重新安装了它。然后我输入了sudo aptitude upgrade,它对29个包进行了升级,没有任何错误。谢谢你们的时间和帮助。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1386764

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档