LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1220|回复: 2

怎么删除bootsplash?

[复制链接]
发表于 2005-12-23 16:52:13 | 显示全部楼层 |阅读模式
我在安装bootsplash时老是出错,想删又删把了,怎么办?
sudo apt-get -f install
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 17 个软件未被升 级。
有 1 个软件包没有被完全安装或卸载。
需要下载 0B 的软件包。
解压缩后会消耗掉 0B 的额外空间。
正在设置 bootsplash (3.1-11) ...
dpkg:处理 bootsplash (--configure)时出错:
子进程·post-installation script·返回了错误号·10
在处理时有错误发生:
bootsplash
sudo apt-get remove bootsplash
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
下列软件包将被【卸载】:
  bootsplash bootsplash-theme-debian bootsplash-theme-newlinux
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 3 个软件包,有 17 个软件未被升 级。
有 1 个软件包没有被完全安装或卸载。
需要下载 0B 的软件包。
解压缩后将会空出 4985kB 的空间。
您希望继续执行吗?[Y/n]y
(正在读取数据库 ... 系统当前总共安装有 69290 个文件和目录。)
正在删除 bootsplash-theme-debian ...
dpkg:处理 bootsplash-theme-debian (--remove)时出错:
子进程·pre-removal script·返回了错误号·10
正在删除 bootsplash-theme-newlinux ...
dpkg:处理 bootsplash-theme-newlinux (--remove)时出错:
子进程·pre-removal script·返回了错误号·10
dpkg:bootsplash:有依赖问题,但是如您所愿还是继续删除:
bootsplash-theme-newlinux 依赖于 bootsplash (>= 3.0.0).
bootsplash-theme-debian 依赖于 bootsplash (>= 3.0.0).
正在删除 bootsplash ...
update-rc.d: /etc/init.d/bootsplash exists during rc.d purge (continuing)
在处理时有错误发生:
bootsplash-theme-debian
bootsplash-theme-newlinux
E: Sub-process /usr/bin/dpkg returned an error code (1)
发表于 2005-12-23 17:27:42 | 显示全部楼层

声明:不是原创!

下面是 www.sw-linux.com.cn/bbs上的一个帖子[也许对你有用]:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
以前问过一个问题,就是在console模式下控制台1的背景上的那个简笔勾勒的小企鹅是怎么做出来的。可惜一直没有得到解答。

前几天想做一个启动软盘时发现了bootsplash软件包,研究了一番,恍然大悟。还是自食其力,自己把这个问题解答了吧。

首先给一个目录:
/etc/bootsplash/themes/rayslx/images
里面两幅图相信大家很熟悉的吧Smile。我看到图的第一反应就是找另一幅替换,然后重启,结果吗--呵呵:”除非原理是正确的,否则它不会正常工作“--但它是不正确的。

进入到../config,里面的配置文件很明白,就不多说了。

然后要好好研究了。给一个目录:/usr/share/doc/swbootsplash,看完里面的东西大家就应该都会做自己的bootsplash了。里面有四个文件:
1,README.kernel

这个文件解释怎么将一个内核打上bootsplash的patch以支持启动时显示bootsplash。我们的rayslx已经打过了,所以就不需要了。有一个命令很重要:

/sbin/splash -s -f /etc/bootsplash/themes/yourtheme/config/bootsplash-1024x768.cfg >> /boot/initrd.splash

放到rayslx里应该是:

/sbin/splash -s -f /etc/bootsplash/themes/rayslx/config/bootsplash-640x480.cfg >> /boot/initrd.img-2.6.9-1-686

2,README.themes

这个文件描述了/etc/bootsplash/themes/rayslx/里目录的作用,有一句话很重要:

If you change the theme you have to call "mkinitrd" and, if using lilo as bootloader, "lilo" afterwards.

我们用的是grub,后面类似lilo的更新就不用了。

3,README.bootsplash.gz

可以使用这个命令查看文件:

man -l README.bootsplash.gz

这个文件解释了"splash" utility的一些功能,也有一个命令很重要:

splash ‐s ‐u 0 /etc/bootsplash/themes/current/config/bootsplash‐1024x768.cfg

意思是在控制台1显示bootsplash,如果我们想在控制台2-6也显示,就可以执行:

splash -s -u 1 /etc/bootsplash/themes/rayslx/config/bootsplash-640x480.cfg
splash -s -u 2 /etc/bootsplash/themes/rayslx/config/bootsplash-640x480.cfg
splash -s -u 3 /etc/bootsplash/themes/rayslx/config/bootsplash-640x480.cfg
splash -s -u 4 /etc/bootsplash/themes/rayslx/config/bootsplash-640x480.cfg
splash -s -u 5 /etc/bootsplash/themes/rayslx/config/bootsplash-640x480.cfg

注意,参数号(0-5)比控制台号(1-6)少1。

4,README.config.gz

这个文件解释config文件的语法,如果大家想自己配置config就好好看看吧Smile

下面的制作过程就很简单了,只需三步:
1,用一幅自己喜欢的图片替换/etc/bootsplash/themes/rayslx/images里的默认图片,注意两点:
(1)图片最好是黑色背景,不要太花哨,否则控制台的字符就不太好辨认了。
(2)也可以在不替换原有的,在/etc/bootsplash/themes/rayslx/config里改一下图片名就可以了。
2,更新initrd。

我原来用:

/sbin/splash -s -f /etc/bootsplash/themes/rayslx/config/bootsplash-640x480.cfg >> /boot/initrd.img-2.6.9-1-686
命令将bootsplash写入initrd的最后,但是启动后还是那个小企鹅,不是自己的图片。想了半天,才明白原来initrd的最后已经有了原来的小 企鹅的bootsplash了。再追加在末尾是不起作用的。所以,应该遵循这句话:

If you change the theme you have to call "mkinitrd" and, if using lilo as bootloader, "lilo" afterwards.

使用命令:
#/usr/sbin/mkinitrd -o /boot/initrd-myown
重新制作一个initrd,注意要有root权限。

3,更新grub
将/boot/grub/menu.lst里的:
initrd /boot/initrd.img-2.6.9-1-686
换成自己的initrd:
initrd /boot/initrd-myown
重新启动,看看是不是出现自己的图片了?

”既然它正常工作了,那么它的原理就是正确的“
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
不知道你是怎么安装的?能给出你的操作步骤么?
回复 支持 反对

使用道具 举报

发表于 2005-12-23 19:22:51 | 显示全部楼层
我也遇到过这个问题,可参照halcyon79兄的回帖,成功解决问题
http://www.linuxsir.cn/bbs/showt ... 9&mode=threaded

我怀疑这里的bootsplash有问题
deb http://debian.bootsplash.de unstable main
deb-src http://debian.bootsplash.de unstable main

用这个源始终没有成功,后来参照
http://debian.linuxsir.cn/book/r ... tml#s-kernel-debian的7.1.1 Debian标准方式(编译内核)

http://www.bootsplash.org/kernel.html(手动打补丁)

http://linux.chinaunix.net/doc/install/2005-01-13/750.shtml(内核选项)

成功安装bootsplash.不过没有配置好起动条。

需要一提的是,我编译bootsplash-3.0.7(?)总是失败,后来我干脆也不管它了,编译后直接拷贝bootsplash-3.0.7/Utilities下的splash 到/sbin下,然后再/sbin/splash -s -f /etc/bootsplash/themes/Linux/config/bootsplash-1024x768.cfg >> /boot/initrd.splash(这里是你新编译的内核)

接下来就是配置grub了。




Good Luck!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表