当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 我在 ubuntu 上遇到这样的错误报告
帖子发表于 : 2010-09-07 17:59 

注册: 2010-09-07 17:52
帖子: 1
送出感谢: 0 次
接收感谢: 0 次
一点一点说明哈哈。

1,我在 ubuntu server 10.04 版本上安装cacti 程序,
2,我需要给 cacti 安装补丁程序然后出错
3, 输出命令为 patch -p1 -N < cacti-plugin-0.8.7g-PA-v2.8.diff
4,目录正确,不存在目录问题
5,cacti 软件版本 为0.87G 对应补丁为 PIA2.8 也没有问题。
6,出错信息如下,


root@ubuntu:/var/www/cacti# sudo patch -p1 -N < cacti-plugin-0.8.7g-PA-v2.8.diff
patching file auth_changepassword.php
Hunk #1 FAILED at 59.
1 out of 1 hunk FAILED -- saving rejects to file auth_changepassword.php.rej
patching file auth_login.php
Hunk #1 FAILED at 124.
Hunk #2 FAILED at 189.
Hunk #3 FAILED at 264.
Hunk #4 FAILED at 303.
4 out of 4 hunks FAILED -- saving rejects to file auth_login.php.rej
patching file data_sources.php
Hunk #1 FAILED at 44.
Hunk #2 FAILED at 402.
Hunk #3 FAILED at 545.
Hunk #4 FAILED at 683.
Hunk #5 FAILED at 975.
Hunk #6 FAILED at 1310.
6 out of 6 hunks FAILED -- saving rejects to file data_sources.php.rej
patching file graph_image.php
Hunk #1 FAILED at 44.
1 out of 1 hunk FAILED -- saving rejects to file graph_image.php.rej
patching file graph.php
Hunk #1 FAILED at 32.
Hunk #2 FAILED at 94.
Hunk #3 FAILED at 215.
Hunk #4 FAILED at 247.
4 out of 4 hunks FAILED -- saving rejects to file graph.php.rej
patching file graphs_new.php
Hunk #1 FAILED at 511.
1 out of 1 hunk FAILED -- saving rejects to file graphs_new.php.rej
patching file graphs.php
Hunk #1 FAILED at 45.
Hunk #2 FAILED at 362.
Hunk #3 FAILED at 514.
3 out of 3 hunks FAILED -- saving rejects to file graphs.php.rej
patching file host.php
Hunk #1 FAILED at 44.
Hunk #2 FAILED at 305.
Hunk #3 FAILED at 450.
Hunk #4 FAILED at 532.
Hunk #5 FAILED at 643.
Hunk #6 FAILED at 1107.
6 out of 6 hunks FAILED -- saving rejects to file host.php.rej
The next patch would create the file images/disable_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/enable_icon_disabled.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/enable_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/install_icon_disabled.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/install_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/uninstall_icon.gif,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file images/view_none.gif,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file include/auth.php
Hunk #1 FAILED at 31.
Hunk #2 FAILED at 72.
Hunk #3 FAILED at 83.
3 out of 3 hunks FAILED -- saving rejects to file include/auth.php.rej
patching file include/bottom_footer.php
Hunk #1 FAILED at 21.
Hunk #2 FAILED at 32.
2 out of 2 hunks FAILED -- saving rejects to file include/bottom_footer.php.rej
patching file include/config.php
Hunk #1 FAILED at 30.
1 out of 1 hunk FAILED -- saving rejects to file include/config.php.rej
patching file include/global_arrays.php
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 654.
2 out of 2 hunks FAILED -- saving rejects to file include/global_arrays.php.rej
patching file include/global_constants.php
Hunk #1 FAILED at 173.
1 out of 1 hunk FAILED -- saving rejects to file include/global_constants.php.rej
patching file include/global_form.php
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 1190.
2 out of 2 hunks FAILED -- saving rejects to file include/global_form.php.rej
patching file include/global.php
Hunk #1 FAILED at 93.
Hunk #2 FAILED at 188.
Hunk #3 FAILED at 205.
3 out of 3 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Hunk #1 FAILED at 1190.
1 out of 1 hunk FAILED -- saving rejects to file include/global_settings.php.rej
The next patch would create the file include/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file include/top_graph_header.php
Hunk #1 FAILED at 25.
Hunk #2 FAILED at 52.
Hunk #3 FAILED at 94.
Hunk #4 FAILED at 106.
Hunk #5 FAILED at 114.
Hunk #6 FAILED at 143.
6 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Hunk #1 FAILED at 22.
Hunk #2 FAILED at 65.
Hunk #3 FAILED at 73.
Hunk #4 FAILED at 86.
4 out of 4 hunks FAILED -- saving rejects to file include/top_header.php.rej
patching file index.php
Hunk #1 FAILED at 25.
Hunk #2 FAILED at 46.
2 out of 2 hunks FAILED -- saving rejects to file index.php.rej
patching file lib/api_device.php
Hunk #1 FAILED at 137.
1 out of 1 hunk FAILED -- saving rejects to file lib/api_device.php.rej
patching file lib/auth.php
Hunk #1 FAILED at 121.
Hunk #2 FAILED at 152.
2 out of 2 hunks FAILED -- saving rejects to file lib/auth.php.rej
patching file lib/functions.php
Hunk #1 FAILED at 1689.
Hunk #2 FAILED at 1701.
Hunk #3 FAILED at 1780.
3 out of 3 hunks FAILED -- saving rejects to file lib/functions.php.rej
patching file lib/html_form.php
Hunk #1 FAILED at 722.
1 out of 1 hunk FAILED -- saving rejects to file lib/html_form.php.rej
patching file lib/html.php
Hunk #1 FAILED at 144.
Hunk #2 FAILED at 177.
Hunk #3 FAILED at 268.
Hunk #4 FAILED at 638.
Hunk #5 FAILED at 706.
Hunk #6 FAILED at 715.
Hunk #7 FAILED at 744.
Hunk #8 FAILED at 764.
8 out of 8 hunks FAILED -- saving rejects to file lib/html.php.rej
The next patch would create the file lib/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file lib/poller.php
Hunk #1 FAILED at 344.
1 out of 1 hunk FAILED -- saving rejects to file lib/poller.php.rej
patching file lib/rrd.php
Hunk #1 FAILED at 419.
Hunk #2 FAILED at 539.
Hunk #3 FAILED at 1376.
Hunk #4 FAILED at 1384.
4 out of 4 hunks FAILED -- saving rejects to file lib/rrd.php.rej
patching file lib/variables.php
Hunk #1 FAILED at 183.
1 out of 1 hunk FAILED -- saving rejects to file lib/variables.php.rej
The next patch would create the file plugins/index.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored
patching file poller.php
Hunk #1 FAILED at 108.
Hunk #2 FAILED at 304.
Hunk #3 FAILED at 446.
Hunk #4 FAILED at 495.
4 out of 4 hunks FAILED -- saving rejects to file poller.php.rej
patching file user_admin.php
Hunk #1 FAILED at 57.
Hunk #2 FAILED at 402.
Hunk #3 FAILED at 444.
Hunk #4 FAILED at 889.
4 out of 4 hunks FAILED -- saving rejects to file user_admin.php.rej
patching file utilities.php
Hunk #1 FAILED at 123.
Hunk #2 FAILED at 1644.
2 out of 2 hunks FAILED -- saving rejects to file utilities.php.rej
root@ubuntu:/var/www/cacti#
root@ubuntu:/var/www/cacti#


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 我在 ubuntu 上遇到这样的错误报告
帖子发表于 : 2010-10-10 15:42 

注册: 2010-01-13 23:26
帖子: 3173
送出感谢: 0 次
接收感谢: 12
看看patchp0如何?


_________________
Here I am.
Ubuntu 桌面培训 - 全中文官方文档,含汉化截图,提供PDF


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译