首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >运行了tasksel删除了一些新鲜的18.10,得到了“更新-initramfs:失败的.”错误

运行了tasksel删除了一些新鲜的18.10,得到了“更新-initramfs:失败的.”错误
EN

Ask Ubuntu用户
提问于 2018-10-21 17:54:51
回答 1查看 228关注 0票数 0

运行tasksel以删除新鲜Ubuntu18.10VM上一些不需要的内容,并得到以下错误:

代码语言:javascript
复制
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up initramfs-tools (0.131ubuntu15) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.131ubuntu15) ...
update-initramfs: Generating /boot/initrd.img-4.18.0-10-generic
W: plymouth module (/usr/lib/x86_64-linux-gnu/plymouth//.so) missing, skipping that theme.
E: /usr/share/initramfs-tools/hooks/plymouth failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.18.0-10-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

我该怎么做才能解决这个问题?

EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2018-10-21 17:54:51

我们需要确定安装了哪些plymouth-related包。

代码语言:javascript
复制
$ dpkg -l | grep plymouth
ii  libplymouth4:amd64                    0.9.3-1ubuntu10                    amd64        graphical boot animation and logger - shared libraries
ii  plymouth                              0.9.3-1ubuntu10                    amd64        boot animation, logger and I/O multiplexer
rc  plymouth-theme-ubuntu-mate-logo       18.10.1                            all          graphical boot animation and logger - ubuntu-mate-logo theme
rc  plymouth-theme-ubuntu-mate-text       18.10.1                            all          graphical boot animation and logger - ubuntu-mate-text theme
ii  plymouth-theme-ubuntu-text            0.9.3-1ubuntu10                    amd64        boot animation, logger and I/O multiplexer - ubuntu text theme

然后重新安装:

代码语言:javascript
复制
sudo apt-get install --reinstall $(dpkg -l | grep plymouth | awk '{print $2}')

你看,问题解决了:

代码语言:javascript
复制
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

因此,本例再次演示了

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

https://askubuntu.com/questions/1085908

复制
相关文章

相似问题

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