LinuxSir.cn,穿越时空的Linuxsir!

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

依赖关系求助!

[复制链接]
发表于 2007-6-2 09:32:44 | 显示全部楼层 |阅读模式
ubuntu7。04我想删了gaim安装pidgin,他依赖desktop什么的,我用dpkg强制删了
可是每次用aptitude的时候非要我安装他们(gaim gaim-data) :comp

还想问问从pidgin上下载的源代码(没有debian的编译配置文件)改用什么办法做成deb包好?
发表于 2007-6-2 11:15:54 | 显示全部楼层
用checkinstall就好了。不过我貌似只会checkinstall= =求其他方法。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-2 12:37:30 | 显示全部楼层
恩  我也只会用checkinstall
但是pidgin的包已经打好了
我想作个虚拟包(gaim)

可是搞了半天还没搞好   气死我了

版本号不好确定,装上了机器还要升级到默认的那个,

而且gaim_1%3a2.0.0+beta6-1ubuntu4 里面还有个%3a,其实就是个冒号,
这个也很麻烦了


哎,这个依赖也太bt了,要是有的人不用gaim聊天,还不可以删!
回复 支持 反对

使用道具 举报

发表于 2007-6-2 22:18:00 | 显示全部楼层
这是很多时候使用发行版的二进包及自行编译软件之间的烦恼(茅盾),即使用 checkinstall 制成 deb 包来安装,同样是免不了楼主面对的问题,後来我的做法是干脆使用 LFS 的方式与及 LFS 的包管理工具 paco 在 Debian 系统上使用

这明显不是正宗 Debian 或 Ub 忠实拥护者能认同的做法,但我的原则是系统是供人使用的,应该是我在玩系统,不是系统在玩我!

当然,前题是自己清楚知道自己在干什麽,如有冲突或出问题的情况下如何修复,掌握如何玩好系统
回复 支持 反对

使用道具 举报

发表于 2007-6-2 23:05:14 | 显示全部楼层
试试看后面的修订版本号 +1  或者干脆乱写版本,比源里面的新就好
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-3 11:27:23 | 显示全部楼层
最后还是用checkinstall作出的虚拟包  很简单:
  1. root@box:/tmp/z# mkdir gaim
  2. root@box:/tmp/z# cd gaim
  3. root@box:/tmp/z/gaim# ls
  4. root@box:/tmp/z/gaim# cat >Makefile
  5. all:
  6. install:
  7. root@box:/tmp/z/gaim# checkinstall
  8. checkinstall 1.6.0, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
  9.            This software is released under the GNU GPL.
  10. The package documentation directory ./doc-pak does not exist.
  11. Should I create a default set of package docs?  [y]:
  12. Preparing package documentation...OK
  13. *** No known documentation files were found. The new package
  14. *** won't include a documentation directory.
  15. Please write a description for the package.
  16. End your description with an empty line or EOF.
  17. >> fake gaim package
  18. >>
  19. *****************************************
  20. **** Debian package creation selected ***
  21. *****************************************
  22. This package will be built according to these values:
  23. 0 -  Maintainer: [ root@box ]
  24. 1 -  Summary: [ fake gaim package ]
  25. 2 -  Name:    [ gaim ]
  26. 3 -  Version: [ 20070603 ]
  27. 4 -  Release: [ 1 ]
  28. 5 -  License: [ GPL ]
  29. 6 -  Group:   [ checkinstall ]
  30. 7 -  Architecture: [ amd64 ]
  31. 8 -  Source location: [ gaim ]
  32. 9 -  Alternate source location: [  ]
  33. 10 - Requires: [  ]
  34. Enter a number to change any of them or press ENTER to continue: 3
  35. Enter new version:
  36. >> 1:2.0.0+beta6-1ubuntu4
  37. This package will be built according to these values:
  38. 0 -  Maintainer: [ root@box ]
  39. 1 -  Summary: [ fake gaim package ]
  40. 2 -  Name:    [ gaim ]
  41. 3 -  Version: [ 1:2.0.0+beta6-1ubuntu4 ]
  42. 4 -  Release: [ 1 ]
  43. 5 -  License: [ GPL ]
  44. 6 -  Group:   [ checkinstall ]
  45. 7 -  Architecture: [ amd64 ]
  46. 8 -  Source location: [ gaim ]
  47. 9 -  Alternate source location: [  ]
  48. 10 - Requires: [  ]
  49. Enter a number to change any of them or press ENTER to continue:
  50. Installing with make install...
  51. ========================= Installation results ===========================
  52. make: Nothing to be done for `install'.
  53. ======================== Installation successful ==========================
  54. cp: cannot stat `//var/tmp/aHMeIdMAjalZUVfhMKdHN/newfiles.tmp': No such file or directory
  55. Copying files to the temporary directory...OK
  56. Striping ELF binaries and libraries...OK
  57. Compressing man pages...OK
  58. Building file list... FAILED!
  59. Building Debian package...OK
  60. Installing Debian package...OK
  61. Erasing temporary files...OK
  62. Deleting temp dir...OK
  63. **********************************************************************
  64. Done. The new package has been installed and saved to
  65. /tmp/z/gaim/gaim_1:2.0.0+beta6-1ubuntu4-1_amd64.deb
  66. You can remove it from your system anytime using:
  67.       dpkg -r gaim
  68. **********************************************************************
  69. root@box:/tmp/z/gaim# ls
  70. Makefile  description-pak  gaim_1:2.0.0+beta6-1ubuntu4-1_amd64.deb
  71. root@box:/tmp/z/gaim# dpkg -P --force-depends gaim
  72. dpkg: gaim: dependency problems, but removing anyway as you request:
  73. nautilus-sendto depends on gaim (>= 1:2.0.0+beta6).
  74. (Reading database ... 115021 files and directories currently installed.)
  75. Removing gaim ...
  76. root@box:/tmp/z/gaim# dpkg -P --force-depends gaim-data
  77. (Reading database ... 115021 files and directories currently installed.)
  78. Removing gaim-data ...
  79. Purging configuration files for gaim-data ...
  80. root@box:/tmp/z/gaim# dpkg -i gaim_1\:2.0.0+beta6-1ubuntu4-1_amd64.deb
  81. Selecting previously deselected package gaim.
  82. (Reading database ... 114509 files and directories currently installed.)
  83. Unpacking gaim (from gaim_1:2.0.0+beta6-1ubuntu4-1_amd64.deb) ...
  84. Setting up gaim (2.0.0+beta6-1ubuntu4-1) ...
复制代码
这个世界终于清静了,
不过编译出来的pidgin还是没办法上qq,
不过这样可以删除许多不想要的软件
回复 支持 反对

使用道具 举报

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

本版积分规则

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