LinuxSir.cn,穿越时空的Linuxsir!

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

[解决] /usr/bin/test-moniker hasn't been removed by portage.

[复制链接]
发表于 2008-6-3 13:27:00 | 显示全部楼层 |阅读模式
最近我用 emerge --depclean 卸载了 libbonoboui,但我找到了 /usr/bin/test-moniker 还在。我用 equery b /usr/bin/test-moniker 没有找到这个文件是谁的。我到不是说 Portage 不对,我只是想问一下这种情况容易发生吗?这决定我是不是要花大精力让自己系统过分干净。

答:我只能说是意外。
发表于 2008-6-3 13:43:49 | 显示全部楼层
先搞清楚这个文件到底是怎么来的
是不是portage装的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-3 14:03:46 | 显示全部楼层
不好意思,可能是我表达问题:我因为忘记配置 OpenOffice 或者 avant-window-navigator 的 USE 标志,结果安装了 libbonoboui。之后我配置了,然后 emerge -DNu world && emerge --depclean && revdep-rebuild 了一下。revdep-rebuild 就说 /usr/bin/test-moniker 所需的 libbonoboui-2.so.0 不在了,而 revdep-rebuild 不能确定 test-moniker 是哪个包的。我在 Google 上搜得是已经被卸载的 libbonoboui 中的文件。既然是 libbonoboui 的,为什么卸载的时候没有删除这个文件呢?
  感谢版主如此迅速的回答,长久以来麻烦您了。发言已经翻译。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-3 14:18:20 | 显示全部楼层
以下是 revdep-rebuild 的信息。有如此多的 bin 文件残留,让我觉得莫名其妙。
  1. * Configuring search environment for revdep-rebuild

  2. * Checking reverse dependencies
  3. * Packages containing binaries and libraries broken by a package update
  4. * will be emerged.

  5. * Collecting system binaries and libraries
  6. * Generated new /home/secludedsage/.revdep-rebuild.1_files

  7. * Collecting complete LD_LIBRARY_PATH
  8. * Generated new /home/secludedsage/.revdep-rebuild.2_ldpath

  9. * Checking dynamic linking consistency
  10. [ 5% ]  *   broken /usr/bin/activation-client (requires libORBit-2.so.0
  11. libORBitCosNaming-2.so.0
  12. libbonobo-activation.so.4)
  13. [ 6% ]  *   broken /usr/bin/bonobo-activation-run-query (requires libORBit-2.so.0
  14. libORBitCosNaming-2.so.0
  15. libbonobo-activation.so.4)
  16. *   broken /usr/bin/bonobo-browser (requires libORBit-2.so.0
  17. libORBitCosNaming-2.so.0
  18. libbonobo-activation.so.4
  19. libbonoboui-2.so.0
  20. libgailutil.so.18
  21. libgconf-2.so.4
  22. libgnome-2.so.0
  23. libgnomecanvas-2.so.0
  24. libgnomevfs-2.so.0)
  25. [ 9% ]  *   broken /usr/bin/echo-client-2 (requires libORBit-2.so.0
  26. libORBitCosNaming-2.so.0
  27. libbonobo-activation.so.4)
  28. [ 10% ]  *   broken /usr/bin/gconf-merge-tree (requires libORBit-2.so.0
  29. libgconf-2.so.4)
  30. *   broken /usr/bin/gconftool-2 (requires libORBit-2.so.0
  31. libgconf-2.so.4)
  32. [ 12% ]  *   broken /usr/bin/gnome-open (requires libORBit-2.so.0
  33. libORBitCosNaming-2.so.0
  34. libbonobo-activation.so.4
  35. libgconf-2.so.4
  36. libgnome-2.so.0
  37. libgnomevfs-2.so.0)
  38. *   broken /usr/bin/gnomevfs-cat (requires libORBit-2.so.0
  39. libgconf-2.so.4
  40. libgnomevfs-2.so.0)
  41. *   broken /usr/bin/gnomevfs-copy (requires libORBit-2.so.0
  42. libgconf-2.so.4
  43. libgnomevfs-2.so.0)
  44. *   broken /usr/bin/gnomevfs-df (requires libORBit-2.so.0
  45. libgconf-2.so.4
  46. libgnomevfs-2.so.0)
  47. *   broken /usr/bin/gnomevfs-info (requires libORBit-2.so.0
  48. libgconf-2.so.4
  49. libgnomevfs-2.so.0)
  50. *   broken /usr/bin/gnomevfs-ls (requires libORBit-2.so.0
  51. libgconf-2.so.4
  52. libgnomevfs-2.so.0)
  53. *   broken /usr/bin/gnomevfs-mkdir (requires libORBit-2.so.0
  54. libgconf-2.so.4
  55. libgnomevfs-2.so.0)
  56. *   broken /usr/bin/gnomevfs-monitor (requires libORBit-2.so.0
  57. libgconf-2.so.4
  58. libgnomevfs-2.so.0)
  59. *   broken /usr/bin/gnomevfs-mv (requires libORBit-2.so.0
  60. libgconf-2.so.4
  61. libgnomevfs-2.so.0)
  62. *   broken /usr/bin/gnomevfs-rm (requires libORBit-2.so.0
  63. libgconf-2.so.4
  64. libgnomevfs-2.so.0)
  65. [ 14% ]  *   broken /usr/bin/ior-decode-2 (requires libORBit-2.so.0)
  66. [ 18% ]  *   broken /usr/bin/notify-send (requires libnotify.so.1)
  67. [ 24% ]  *   broken /usr/bin/test-moniker (requires libORBit-2.so.0
  68. libORBitCosNaming-2.so.0
  69. libbonobo-activation.so.4
  70. libbonoboui-2.so.0
  71. libgailutil.so.18
  72. libgconf-2.so.4
  73. libgnome-2.so.0
  74. libgnomecanvas-2.so.0
  75. libgnomevfs-2.so.0)
  76. [ 25% ]  *   broken /usr/bin/typelib-dump (requires libORBit-2.so.0)
  77. [ 28% ]  *   broken /usr/kde/3.5/bin/cervisia (requires libcvsservice.so.0
  78. libkdeinit_cervisia.so)
  79. *   broken /usr/kde/3.5/bin/cvsaskpass (requires libkdeinit_cvsaskpass.so)
  80. *   broken /usr/kde/3.5/bin/cvsservice (requires libkdeinit_cvsservice.so)
  81. [ 29% ]  *   broken /usr/kde/3.5/bin/klipper (requires libkdeinit_klipper.so)
  82. [ 30% ]  *   broken /usr/kde/3.5/bin/kxkb (requires libkdeinit_kxkb.so)
  83. [ 48% ]  *   broken /usr/lib/bonobo-2.0/samples/bonobo-echo-2 (requires libORBit-2.so.0
  84. libORBitCosNaming-2.so.0
  85. libbonobo-activation.so.4)
  86. *   broken /usr/lib/bonobo-2.0/samples/bonobo-sample-controls-2 (requires libORBit-2.so.0
  87. libORBitCosNaming-2.so.0
  88. libbonobo-activation.so.4
  89. libbonoboui-2.so.0
  90. libgailutil.so.18
  91. libgconf-2.so.4
  92. libgnome-2.so.0
  93. libgnomecanvas-2.so.0
  94. libgnomevfs-2.so.0)
  95. [ 63% ]  *   broken /usr/lib/libbonobo-2.so.0.0.0 (requires libORBit-2.so.0
  96. libORBitCosNaming-2.so.0
  97. libbonobo-activation.so.4)
  98. [ 100% ]
  99. * Generated new /home/secludedsage/.revdep-rebuild.3_rebuild

  100. * Assigning files to packages
  101. *  !!! /usr/bin/activation-client not owned by any package is broken !!!
  102. *   /usr/bin/activation-client -> (none)
  103. *  !!! /usr/bin/bonobo-activation-run-query not owned by any package is broken !!!
  104. *   /usr/bin/bonobo-activation-run-query -> (none)
  105. *  !!! /usr/bin/bonobo-browser not owned by any package is broken !!!
  106. *   /usr/bin/bonobo-browser -> (none)
  107. *  !!! /usr/bin/echo-client-2 not owned by any package is broken !!!
  108. *   /usr/bin/echo-client-2 -> (none)
  109. *  !!! /usr/bin/gconf-merge-tree not owned by any package is broken !!!
  110. *   /usr/bin/gconf-merge-tree -> (none)
  111. *  !!! /usr/bin/gconftool-2 not owned by any package is broken !!!
  112. *   /usr/bin/gconftool-2 -> (none)
  113. *  !!! /usr/bin/gnome-open not owned by any package is broken !!!
  114. *   /usr/bin/gnome-open -> (none)
  115. *  !!! /usr/bin/gnomevfs-cat not owned by any package is broken !!!
  116. *   /usr/bin/gnomevfs-cat -> (none)
  117. *  !!! /usr/bin/gnomevfs-copy not owned by any package is broken !!!
  118. *   /usr/bin/gnomevfs-copy -> (none)
  119. *  !!! /usr/bin/gnomevfs-df not owned by any package is broken !!!
  120. *   /usr/bin/gnomevfs-df -> (none)
  121. *  !!! /usr/bin/gnomevfs-info not owned by any package is broken !!!
  122. *   /usr/bin/gnomevfs-info -> (none)
  123. *  !!! /usr/bin/gnomevfs-ls not owned by any package is broken !!!
  124. *   /usr/bin/gnomevfs-ls -> (none)
  125. *  !!! /usr/bin/gnomevfs-mkdir not owned by any package is broken !!!
  126. *   /usr/bin/gnomevfs-mkdir -> (none)
  127. *  !!! /usr/bin/gnomevfs-monitor not owned by any package is broken !!!
  128. *   /usr/bin/gnomevfs-monitor -> (none)
  129. *  !!! /usr/bin/gnomevfs-mv not owned by any package is broken !!!
  130. *   /usr/bin/gnomevfs-mv -> (none)
  131. *  !!! /usr/bin/gnomevfs-rm not owned by any package is broken !!!
  132. *   /usr/bin/gnomevfs-rm -> (none)
  133. *  !!! /usr/bin/ior-decode-2 not owned by any package is broken !!!
  134. *   /usr/bin/ior-decode-2 -> (none)
  135. *  !!! /usr/bin/notify-send not owned by any package is broken !!!
  136. *   /usr/bin/notify-send -> (none)
  137. *  !!! /usr/bin/test-moniker not owned by any package is broken !!!
  138. *   /usr/bin/test-moniker -> (none)
  139. *  !!! /usr/bin/typelib-dump not owned by any package is broken !!!
  140. *   /usr/bin/typelib-dump -> (none)
  141. *  !!! /usr/kde/3.5/bin/cervisia not owned by any package is broken !!!
  142. *   /usr/kde/3.5/bin/cervisia -> (none)
  143. *  !!! /usr/kde/3.5/bin/cvsaskpass not owned by any package is broken !!!
  144. *   /usr/kde/3.5/bin/cvsaskpass -> (none)
  145. *  !!! /usr/kde/3.5/bin/cvsservice not owned by any package is broken !!!
  146. *   /usr/kde/3.5/bin/cvsservice -> (none)
  147. *  !!! /usr/kde/3.5/bin/klipper not owned by any package is broken !!!
  148. *   /usr/kde/3.5/bin/klipper -> (none)
  149. *  !!! /usr/kde/3.5/bin/kxkb not owned by any package is broken !!!
  150. *   /usr/kde/3.5/bin/kxkb -> (none)
  151. *  !!! /usr/lib/bonobo-2.0/samples/bonobo-echo-2 not owned by any package is broken !!!
  152. *   /usr/lib/bonobo-2.0/samples/bonobo-echo-2 -> (none)
  153. *  !!! /usr/lib/bonobo-2.0/samples/bonobo-sample-controls-2 not owned by any package is broken !!!
  154. *   /usr/lib/bonobo-2.0/samples/bonobo-sample-controls-2 -> (none)
  155. *  !!! /usr/lib/libbonobo-2.so.0.0.0 not owned by any package is broken !!!
  156. *   /usr/lib/libbonobo-2.so.0.0.0 -> (none)
  157. * Generated new /home/secludedsage/.revdep-rebuild.4_packages_raw and /home/secludedsage/.revdep-rebuild.4_package_owners
  158. * Found some broken files, but none of them were associated with known packages
  159. * Unable to proceed with automatic repairs.
  160. * The broken files are listed in /home/secludedsage/.revdep-rebuild.4_package_owners
复制代码


PS: 刚才看科大的 LUG 网站,有意思,活动不算太少。http://lug.ustc.edu.cn/
回复 支持 反对

使用道具 举报

发表于 2008-6-3 15:47:55 | 显示全部楼层
一个简单的方法验证portage是否有问题
你再装一遍含有这些文件的包,再卸载,看看是否可以删掉
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-3 16:12:20 | 显示全部楼层
Remerged and reunmerged, no file left.
    What a strange world!? How could this happen?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-3 18:20:12 | 显示全部楼层
I wrote a small piece of script to find out how many files there are in my system which are not belong to any packages.
  1. #!/bin/bash
  2. # No Copyright Declaration
  3. # Distributed under the terms of the GNU General Public License v2
  4. # $Header: $
  5. # Display all the files under this directory which are not belong to any
  6. # packages.
  7. for FILE in *; do
  8.         if [ ${FILE} != "*" ]; then # There is at least one file in the directory
  9.                 if [ -d ${FILE} ] && [ ! -L ${FILE} ]; then
  10.                         cd ${FILE}
  11.                         /1.sh
  12.                         cd ..
  13.                 else
  14.                         qfile ${PWD}/${FILE} > /dev/null || echo ${PWD}/${FILE}
  15.                 fi
  16.         fi
  17. done
复制代码

I don't know whether there is a script existing. But I should say that the result is incredible. I ran this piece in /usr. No more than 2 minutes, I got:
  1. /usr/bin/addr2line
  2. /usr/bin/ar
  3. /usr/bin/as
  4. /usr/bin/b2m
  5. /usr/bin/c++
  6. /usr/bin/c++-4.1.1
  7. /usr/bin/c++filt
  8. /usr/bin/c89
  9. /usr/bin/c99
  10. /usr/bin/cat
  11. /usr/bin/cc
  12. /usr/bin/chgrp
  13. /usr/bin/chmod
  14. /usr/bin/chown
  15. /usr/bin/cp
  16. /usr/bin/cpp
  17. /usr/bin/cpp-4.1.1
  18. /usr/bin/ctags
  19. /usr/bin/date
  20. /usr/bin/dd
  21. /usr/bin/df
  22. /usr/bin/ebrowse
  23. /usr/bin/echo
  24. /usr/bin/emacs
  25. /usr/bin/emacsclient
  26. /usr/bin/erb
  27. /usr/bin/esd
  28. /usr/bin/etags
  29. /usr/bin/false
  30. /usr/bin/fuser
  31. /usr/bin/g++
  32. /usr/bin/g++-4.1.1
  33. /usr/bin/gcc
  34. /usr/bin/gcc-4.1.1
  35. /usr/bin/gcov
  36. /usr/bin/gfortran
  37. /usr/bin/gfortran-4.1.1
  38. /usr/bin/gprof
  39. /usr/bin/grep-changelog
复制代码
  I know some might be created by gcc-config and so on. But another result is:
  1. secludedsage@SecludedSage /bin $ /1.sh
  2. /bin/gzcat
  3. /bin/lsmod.old
  4. /bin/zcmp
  5. /bin/zegrep
  6. /bin/zfgrep
复制代码
   I found that these are all dead links. I think maybe there is no need to clean our system so carefully.
回复 支持 反对

使用道具 举报

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

本版积分规则

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