免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2428 | 回复: 5
打印 上一主题 下一主题

定制CentOS4.2的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-08 19:47 |只看该作者 |倒序浏览
按照基本的步骤,编辑comps.xml, 产生hdlist文件,最后在buildinstall的时候出现了错误。没有产生新的img文件并且原来image目录下的文件被删除。出错的信息如下:

Running buildinstall...
/centos/buildinstall.tree.6137 /usr/lib/anaconda-runtime
rpm2cpio: /centos/CentOS/RPMS/anaconda-runtime-[0-9]*: No such file or directory
cpio: premature end of archive
/usr/lib/anaconda-runtime
Going to run buildinstall again
Building images...
/centos/buildinstall.tree.6137/upd-instroot: line 37: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 124: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 128: [: =: unary operator expected
/centos/buildinstall.tree.6137/upd-instroot: line 132: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 140: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 192: [: =: unary operator expected
/centos/buildinstall.tree.6137/upd-instroot: line 205: [: =: unary operator expected
/centos/buildinstall.tree.6137/upd-instroot: line 209: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 213: [: =: unary operator expected
/centos/buildinstall.tree.6137/upd-instroot: line 217: [: =: unary operator expected
/centos/buildinstall.tree.6137/upd-instroot: line 221: [: =: unary operator expected
/centos/buildinstall.tree.6137/upd-instroot: line 399: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 700: [: =: unary operator expected
Assembling package list...
Expanding text packages...
Expanding graphical packages...
retrieving timezones
/centos/buildinstall.tree.6137/upd-instroot: line 838: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 850:

/tmp/treedir.6150/image-template/usr/lib/anaconda-runtime/fixmtime.py: No such file or directory
/centos/buildinstall.tree.6137/upd-instroot: line 850: /tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/fixmtime.py: No

such file or directory
cat: /tmp/treedir.6150/instimage/usr/lib/anaconda/lang-table*: No such file or directory
ln: creating symbolic link `/tmp/treedir.6150/instimage/etc/joe/picorc' to `jpicorc': No such file or directory
ln: creating symbolic link `/tmp/treedir.6150/instimage/etc/joe/emacsrc' to `jmacsrc': No such file or directory
Creating nsswitch.conf
Fixing up /etc/man.config to point into /mnt/sysimage
Running mkfontdir...
/centos/buildinstall.tree.6137/upd-instroot: line 930: /usr/X11R6/bin/mkfontdir: No such file or directory
Getting pango modules
mv: cannot stat `/tmp/treedir.6150/instimage/usr/bin/pango-querymodules*': No such file or directory
/centos/buildinstall.tree.6137/upd-instroot: line 941: /tmp/treedir.6150/instimage/etc/pango/pango.modules: No such file or

directory
/centos/buildinstall.tree.6137/upd-instroot: line 945: /tmp/treedir.6150/instimage/etc/pango/pangorc: No such file or

directory
Getting gtk2 input method modules
mv: cannot stat `/tmp/treedir.6150/instimage/usr/bin/gtk-query-immodules-2.0*': No such file or directory
/usr/sbin/chroot: cannot run command `/usr/bin/gtk-query-immodules-2.0': No such file or directory
Getting gtk2 gdk-pixbuf loaders
mv: cannot stat `/tmp/treedir.6150/instimage/usr/bin/gdk-pixbuf-query-loaders*': No such file or directory
/usr/sbin/chroot: cannot run command `/usr/bin/gdk-pixbuf-query-loaders': No such file or directory
Scrubbing trees... /tmp/treedir.6150/image-template
cp: cannot stat `/tmp/treedir.6150/image-template/usr/lib/anaconda/raidstart-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/image-template/usr/lib/anaconda/raidstop-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/image-template/usr/lib/anaconda/losetup-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/image-template/usr/lib/anaconda/pump-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/image-template/usr/lib/anaconda/list-harddrives-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/image-template/usr/lib/anaconda/kudzu-probe-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/image-template/usr/lib/anaconda/loadkeys-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/image-template/usr/lib/anaconda/mknod-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/image-template/usr/lib/anaconda/rescue-startx-stub': No such file or directory
mv: cannot stat `/tmp/treedir.6150/image-template/usr/sbin/anaconda': No such file or directory
mv: cannot stat `/tmp/treedir.6150/image-template/usr/lib/anaconda-runtime/lib*': No such file or directory
/centos/buildinstall.tree.6137/upd-instroot: line 1026: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 1033: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 1039: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 1045: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 1075:

/tmp/treedir.6150/image-template/usr/lib/anaconda-runtime/scrubtree: No such file or directory
Scrubbing trees... /tmp/treedir.6150/instimage
cp: cannot stat `/tmp/treedir.6150/instimage/usr/lib/anaconda/raidstart-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/instimage/usr/lib/anaconda/raidstop-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/instimage/usr/lib/anaconda/losetup-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/instimage/usr/lib/anaconda/pump-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/instimage/usr/lib/anaconda/list-harddrives-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/instimage/usr/lib/anaconda/kudzu-probe-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/instimage/usr/lib/anaconda/loadkeys-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/instimage/usr/lib/anaconda/mknod-stub': No such file or directory
cp: cannot stat `/tmp/treedir.6150/instimage/usr/lib/anaconda/rescue-startx-stub': No such file or directory
mv: cannot stat `/tmp/treedir.6150/instimage/usr/sbin/anaconda': No such file or directory
mv: cannot stat `/tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/lib*': No such file or directory
/centos/buildinstall.tree.6137/upd-instroot: line 1026: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 1033: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 1039: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 1045: [: too many arguments
/centos/buildinstall.tree.6137/upd-instroot: line 1075: /tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/scrubtree: No

such file or directory
Compressing .mo files in stage2 images...
Creating fontconfig cache
Creating debug dir
/centos/buildinstall.tree.6137/upd-instroot: line 1102: [: =: unary operator expected
Patching python library...
/usr/lib/anaconda-runtime
Removing unused python files in hdimage... /centos/buildinstall.tree.6137/upd-instroot: line 1137:

/tmp/treedir.6150/image-template/usr/lib/anaconda-runtime/pythondeps: No such file or directory
done.
Cleaning ramdisk install images...
ln: creating symbolic link `/tmp/treedir.6150/instimage/usr/X11R6/lib/X11/xkb/compiled' to `/tmp': No such file or

directory
/centos/buildinstall.tree.6137/upd-instroot: line 1185: /tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/checkcards.py:

No such file or directory
Getting package order...
/centos/buildinstall.tree.6137/buildinstall: line 153: /tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/pkgorder: No

such file or directory
Making images...
/tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/trimpcitable doesn't exist
/tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/trimmodmap doesn't exist
/tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/trimpciids doesn't exist
/tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/moddeps doesn't exist
/tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/loader/module-info doesn't exist
/tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/filtermoddeps doesn't exist
/tmp/treedir.6150/instimage/usr/lib/anaconda/lang-table doesn't exist
/tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/getkeymaps doesn't exist
/tmp/treedir.6150/instimage/usr/lib/anaconda-runtime/trimusbmap doesn't exist
Writing .discinfo file
timestamp not specified; using the current time

我在google上找了很久,发现很多此类问题的描述,但没有找到正确的解决方法。CentOS的版本是4.2
请大家帮帮我啊.....

论坛徽章:
0
2 [报告]
发表于 2006-05-08 20:15 |只看该作者
没人理??

论坛徽章:
0
3 [报告]
发表于 2006-05-10 09:54 |只看该作者

回复 2楼 SANFXUNIL 的帖子

问题已解决!谢谢各位。

论坛徽章:
0
4 [报告]
发表于 2006-07-02 10:05 |只看该作者
楼主的经验可以分享一下么?

论坛徽章:
0
5 [报告]
发表于 2006-07-04 22:11 |只看该作者
可以 说说 这个问题 你是怎么解决的吗~!~

小弟 ``也遇到这个问题了~!

无法解决``

请说下把~!~!~!

学学 经验~!~!

论坛徽章:
0
6 [报告]
发表于 2006-07-25 13:43 |只看该作者
问题已经解决,主要是anaconda在buildinstall的时候,需要目标盘的某些rpm包,以提取出这些rpm里面的某些命令,而这些命令正是buildinstall时要用到的,如果缺少这些rpm包,则运行buildinstall的过程中会报错。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP