LinuxSir.cn,穿越时空的Linuxsir!

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

cfg-update 不能升级配置文件

[复制链接]
发表于 2007-3-13 01:07:14 | 显示全部楼层 |阅读模式
在用stage3-*.tar.bz2安装时, 开始没有设置好make.conf文件.现提示有50个配置文件需要升级.

按提示安装cfg-update命令工具进入手动升级,出现提示如下:
  1. zenwalk / # cfg-update -u
  2. * GUI not available, unable to run the mergetool set in /etc/cfg-update.conf!
  3.   Run cfg-update from within an X-terminal if you want to use a GUI mergetool.
  4.   If you are getting this from within an X-terminal, you should try running
  5.   "xhost +localhost" as the user who started the X-server.
  6.   If you use this script on a system without an X-server you should permanently
  7.   set the MERGETOOL variable in /etc/cfg-update.conf to vimdiff or sdiff.
  8.   I recommend the more advanced vimdiff on systems without an X-server.
  9.   See http://people.zeelandnet.nl/xentric for vimdiff usage instructions.
复制代码
升级配置文件提示:
  1. * IMPORTANT: 50 config files in '/etc' need updating.
  2. * Type emerge --help config to learn how to update config files.
复制代码
发表于 2007-3-13 05:29:20 | 显示全部楼层
etc-update

用那个的暴少
Post by GWN 2006.7.17

forums

dispatch-conf还是etc-update?

Arch测试人员Welp在论坛上发起了一轮投票以调查人们使用哪个工具来管理CONFIG_PROTECT目录下的文件。Gentoo的老用户们倾向于etc-update,因为它是早期版本中唯一能干这事的工具。而新用户们则偏爱dispatch-conf,当然也有部分老用户喜欢它。调查结果显示两者各有接近50%的用户喜欢,然而,还有少量的用户使用cfg-update之类的工具来管理软件的安装以及配置文件的更新。

http://forums.gentoo.org/viewtopic-t-478783.html
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-13 20:29:23 | 显示全部楼层
安装时,我见只有它( cfg-update)能安装.
  1. zenwalk / # emerge  etc-update
  2. Calculating dependencies /
  3. emerge: there are no ebuilds to satisfy "etc-update".
  4. zenwalk / # emerge  --search etc-update
  5. Searching...
  6. [ Results for search key : etc-update ]
  7. [ Applications found : 0 ]
  8. zenwalk / # emerge  dispatch-update
  9. Calculating dependencies /
  10. emerge: there are no ebuilds to satisfy "dispatch-update".
复制代码
我该如何办?"在什么文件中加内容?
---我一直没有找到解决方法,才安了cfg-update.
回复 支持 反对

使用道具 举报

发表于 2007-3-13 21:01:20 | 显示全部楼层
etc-update是属于portage包的,不可能没有。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-13 23:41:35 | 显示全部楼层
我为何安不上?可看上面我的代码.

emerge: there are no ebuilds to satisfy "etc-update"---这是指什么 ? 该如何改正?
回复 支持 反对

使用道具 举报

发表于 2007-3-13 23:49:58 | 显示全部楼层
Post by dgkgnrt
我为何安不上?

you have it
it is IMPOSSIBLE that you don't have it. unless you have deleted it yourself.
Do you have slocate installed?
try 'locate etc-update'
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-14 00:11:58 | 显示全部楼层
Post by zhllg
you have it
it is IMPOSSIBLE that you don't have it. unless you have deleted it yourself.
Do you have slocate installed?
try 'locate etc-update'

代码如下:
  1. zenwalk / # locate etc-update
  2. /etc/etc-update.conf
  3. /etc/._cfg0000_etc-update.conf
  4. /usr/lib/portage/bin/etc-update
  5. /usr/sbin/etc-update
  6. /usr/share/man/man1/etc-update.1.gz
  7. zenwalk / # emerge etc-update
  8. Calculating dependencies -
  9. emerge: there are no ebuilds to satisfy "etc-update".
  10. zenwalk / #" zenwalk / # locate etc-update  //从"向下全是无意中复制点击后而来
  11. bash: zenwalk: command not found
  12. zenwalk / # /etc/etc-update.conf
  13. bash: /etc/etc-update.conf: 权限不够
  14. zenwalk / # /etc/._cfg0000_etc-update.conf
  15. bash: /etc/._cfg0000_etc-update.conf: 权限不够
  16. zenwalk / # /usr/lib/portage/bin/etc-update
  17. Scanning Configuration files...
  18. Automerging trivial changes in: /etc/init.d/checkroot
  19. .....
  20. Automerging trivial changes in: /etc/conf.d/wireless.example
  21. The following is the list of files which need updating, each
  22. configuration file is followed by a list of possible replacement files.
  23. 1) /etc/udev/rules.d/05-udev-early.rules (1)
  24. 2) /etc/udev/rules.d/50-udev.rules (1)
  25. ..........
  26. 28) /etc/init.d/shutdown.sh (1)
  27. 29) /etc/init.d/sshd (1)
  28. Please select a file to edit by entering the corresponding number.
  29.               (don't use -3, -5, -7 or -9 if you're unsure what to do)
  30.               (-1 to exit) (-3 to auto merge all remaining files)
  31.                            (-5 to auto-merge AND not use 'mv -i')
  32.                            (-7 to discard all updates)
  33.                            (-9 to discard all updates AND not use 'rm -i'):
复制代码
i想复制一下,不知道点了什么,一下了终端出来了这么多的东西,还来不及查词翻译,..先贴上来,再看.


原来 是无意中执行了# /usr/lib/portage/bin/etc-update.

这是不是对了,可以升级了?
回复 支持 反对

使用道具 举报

发表于 2007-3-14 00:24:13 | 显示全部楼层
看你贴的还真晕。。。  用root权限执行,try
sudo /usr/sbin/etc-update
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-14 00:27:46 | 显示全部楼层
我是在另一个linux 中用的chroot /mnt/gentoo /bin/bash

File: /etc/modules.d/._cfg0000_aliases
1) Replace original with update
2) Delete update, keeping original as is
3) Interactively merge original with update
4) Show differences again

第一项与第三项的区别是什么?

开始在/etc/make.conf中加入{ CONFIG_PROTECT_MASK="/etc/wget  /etc/rc.d"}
就没有这么麻烦的升级了吧?
回复 支持 反对

使用道具 举报

发表于 2007-3-14 04:11:53 | 显示全部楼层
user's PATH don't include /sbin:/usr/sbin
only root's PATH include /sbin:/usr/sbin
however the idea of using normal user do etc-update is flawed, you shouldn't have try it in the first place
instead, you should use root, only root has the required permission to update files under /etc.
回复 支持 反对

使用道具 举报

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

本版积分规则

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