LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: pjq

不小心将目录/var/db/pkg/下的文件全部删除了

[复制链接]
 楼主| 发表于 2009-4-13 12:28:10 | 显示全部楼层
Post by tjzero;1973679
唉,兄弟 当年我也干过这样的傻事! 折腾半天最后重装了,现在流行不折腾,别瞎删东西了

呵呵,看来干过这种的人还真不少.
现在已经emerge -e system成功了.
但emerge -e world失败了.
  1. [ebuild  N    ] gnome-base/gdm-2.20.9-r1  USE="pam tcpd -accessibility -afs -branding -debug -dmx -g
  2. nome-keyring -ipv6 -remote (-selinux) -xinerama"                                                   
  3. [ebuild  N    ] net-p2p/mldonkey-3.0.0  USE="gtk ocamlopt -doc -fasttrack -gd -gnutella -guionly -ma
  4. gic"                                                                                                
  5. [ebuild  N    ] gnome-base/gnome-light-2.24.1                                                      
  6. [ebuild  N    ] x11-libs/libcompizconfig-0.7.8                                                      
  7. [ebuild  N    ] x11-themes/gdm-themes-livecd-2007.0                                                
  8. [ebuild  N    ] dev-python/compizconfig-python-0.7.8                                                
  9. [ebuild  N    ] x11-apps/fusion-icon-0.1  USE="gtk -qt4"                                            
  10. [blocks B     ] >=sys-fs/udev-126 (">=sys-fs/udev-126" is blocking sys-fs/cryptsetup-1.0.5-r1)      
  11.                                                                                                    
  12. * Error: The above package list contains packages which cannot be                                 
  13. * installed at the same time on the same system.                                                   
  14.                                                                                                    
  15.   ('ebuild', '/', 'sys-fs/udev-141', 'merge') pulled in by                                          
  16.     >=sys-fs/udev-117 required by ('ebuild', '/', 'sys-apps/hal-0.5.11-r8', 'merge')               
  17.     sys-fs/udev required by ('ebuild', '/', 'sys-kernel/gentoo-sources-2.6.27-r8', 'merge')         
  18.     virtual/dev-manager required by world                                                           
  19.     (and 1 more)                                                                                    
  20.                                                                                                    
  21.   ('ebuild', '/', 'sys-fs/cryptsetup-1.0.5-r1', 'merge') pulled in by                              
  22.     >=sys-fs/cryptsetup-1.0.5 required by ('ebuild', '/', 'sys-apps/hal-0.5.11-r8', 'merge')        
  23.                                                                                                    
  24.                                                                                                    
  25. For more information about Blocked Packages, please refer to the following                          
  26. section of the Gentoo Linux x86 Handbook (architecture is irrelevant):                              
  27.                                                                                                    
  28. http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked                              
  29.                                                                                                    
  30.                                                                                                    
  31. !!! Problems have been detected with your world file                                                
  32. !!! Please run emaint --check world                                                                 
  33.                                                                                                    
  34.                                                                                                    
  35. !!! Ebuilds for the following packages are either all                                               
  36. !!! masked or don't exist:                                                                          
  37. media-gfx/gpicview gnome-extra/cairo-dock-themes x11-plugins/compiz-fusion-plugins-main media-tv/gml
  38. ive x11-wm/compiz-fusion gnome-extra/cairo-dock x11-apps/ccsm x11-plugins/compiz-fusion-plugins-extr
  39. a x11-plugins/compiz-plugins
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-13 12:40:07 | 显示全部楼层
Post by axlrose;1973677
我以前不小心干过这事,后来恢复了
有一个重建的功能,
emerge --regen ?
忘了,太久了记不清了,你试试

真有这样的命令吗?如果有的话,那真是太好了.

我先试试这个命令.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-13 13:18:40 | 显示全部楼层
  1. echo "sys-apps/hal -crypt" >> /etc/portage/package.use
复制代码

现在正在emerge -e world
回复 支持 反对

使用道具 举报

发表于 2009-4-13 13:23:18 | 显示全部楼层
楼主 男人一下emerge就知道了,太久了,我都搞忘了
当时误删的那目录,“好像”是这个
回复 支持 反对

使用道具 举报

发表于 2009-4-13 13:26:44 | 显示全部楼层
!!! Problems have been detected with your world file
!!! Please run emaint --check world

你的提示上有,想起来了,当时运行的不是 emerge --regen了,是上面的命令,有救, emerge -e world也做得出来,你太强了,我从来不干 -e world这种事,太强悍了

看样子你的标题很快要改成 [ 已解决]了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-13 13:44:06 | 显示全部楼层
Post by axlrose;1973720
楼主 男人一下emerge就知道了,太久了,我都搞忘了
当时误删的那目录,“好像”是这个

嗯嗯,已经做过了emerge --regen.
但之前我已经从stage3-*.ta.gz中COPY过来这个目录了.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-4-13 13:47:11 | 显示全部楼层
Post by axlrose;1973722
!!! Problems have been detected with your world file
!!! Please run emaint --check world

你的提示上有,想起来了,当时运行的不是 emerge --regen了,是上面的命令,有救, emerge -e world也做得出来,你太强了,我从来不干 -e world这种事,太强悍了

看样子你的标题很快要改成 [ 已解决]了

嗯,我之前已经从 emaint --check world提取并手动生成了world file.

呵呵,没办法,现在正在emerge -e world,相当强大,要emerge 509个.
  1. *                                                                                                   * None of the installed packages claim the file(s).                                                 *                                                                                                   * Package 'dev-libs/libusb-0.1.12-r1' merged despite file collisions. If                            * necessary, refer to your elog messages for the whole content of the                               * above message.                                                                                                                                                                                       >>> Emerging (31 of 509) media-libs/libmad-0.15.1b-r2                                                * libmad-0.15.1b.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                     [ ok ]  * checking ebuild checksums ;-) ...                                                         [ ok ]  * checking auxfile checksums ;-) ...                                                        [ ok ]  * checking miscfile checksums ;-) ...                                                       [ ok ] >>> Unpacking source...                                                                             >>> Unpacking libmad-0.15.1b.tar.gz to /var/tmp/portage/media-libs/libmad-0.15.1b-r2/work            * Applying libmad-0.15.1b-cflags.patch ...                                                   [ ok ] * Running eautoreconf in '/var/tmp/portage/media-libs/libmad-0.15.1b-r2/work/libmad-0.15.1b' ...    * Running aclocal ...                                                                        [ ok ] * Running libtoolize --copy --force --automake ...                                           [ ok ] * Running aclocal ...                                                                        [ ok ] * Running autoconf ...                                                                       [ ok ] * Running autoheader ...                                                                     [ ok ] * Running automake --add-missing --copy --foreign ...                                          [ ok ]                                                                                                   * Running elibtoolize in: libmad-0.15.1b                                                            *   Applying portage-1.5.10.patch ...                                                               *   Applying sed-1.5.6.patch ...                                                                    * Removing useless C++ checks ...                                                            [ ok ]>>> Source unpacked in /var/tmp/portage/media-libs/libmad-0.15.1b-r2/work                           >>> Compiling source in /var/tmp/portage/media-libs/libmad-0.15.1b-r2/work/libmad-0.15.1b ...        * econf: updating libmad-0.15.1b/config.sub with /usr/share/gnuconfig/config.sub                    * econf: updating libmad-0.15.1b/config.guess with /usr/share/gnuconfig/config.guess               ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-debugging --enable-accuracy --enable-fpm=intel --build=i686-pc-linux-gnu                                                     checking for a BSD-compatible install... /usr/bin/install -c                                        checking whether build environment is sane... yes                                                   checking for a thread-safe mkdir -p... /bin/mkdir -p                                                checking for gawk... gawk                                                                           checking whether make sets $(MAKE)... yes                                                                                                                                                               
复制代码
回复 支持 反对

使用道具 举报

发表于 2009-4-13 14:11:32 | 显示全部楼层
突然想起来这个是检测world的
http://hi.baidu.com/3444542/blog ... 2cccfcb2fb958f.html 以前记录的有

-e world很吓人,有得你受了
回复 支持 反对

使用道具 举报

发表于 2009-4-13 14:20:27 | 显示全部楼层
Post by axlrose;1973744
突然想起来这个是检测world的
http://hi.baidu.com/3444542/blog ... 2cccfcb2fb958f.html 以前记录的有

-e world很吓人,有得你受了


基本等于重装。还没有重装来的干净。
回复 支持 反对

使用道具 举报

发表于 2009-4-13 14:35:29 | 显示全部楼层
认命的话就 用funtoo最新的stage3来得装得了,把原来的内核和 modules备份好,还有所有的配置,重装系统很快的
回复 支持 反对

使用道具 举报

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

本版积分规则

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