以下的问题其实是后来帮别人弄的时候出现的,所以说每个人的问题都不一定一样,其实他的也遇到了很多和我一样的问题。
问题7:下载失败
特点:或许会问:这也算问题?当然算问题,只要能看的出来是因为下载失败。在解决依赖关系的时候会经常下载安装一些特定的包,如果是国内的源都还好,基本不会失败。国外的源就不好说了,总是时不时的遇到。所以看到下面的情况的时候不要怕,解决起来其实很简单。
================================================================================
Error executing action `create` on resource 'deployment_remote_file[/var/cache/dev_setup/ruby-1.9.2-p180.tar.gz]'
================================================================================
HTTPClient::ReceiveTimeoutError
-------------------------------
execution expired
解决思路:看错误提示信息立马可以看出来了,他在下载这个ruby-1.9.2-p180.tar.gz的时候失败了。解决方法很多比如:
1、重新执行执行一边,指不定就成功了。
2、如果失败多次,那不妨去网上搜搜,下载下来安装就好了,比如可以使用wget命令获取:
wget
3、我比较懒,我就去别人那直接把那个目录下的东西全部拷贝过来,传过去就完了。
注:如果你是用ssh连接到远端,可以使用scp命令进行远端和本地的复制动作。
其他:
中间我也出现了这个问题,是不是很熟悉,和问题1一样的,解决思路也是一样的,装一个 libssl0.9.8 就完了。是不是很简单
Selecting previously unselected package libpq5.
(Reading database ... 69001 files and directories currently installed.)
Unpacking libpq5 (from .../cache/dev_setup/libpq5_9.2.deb) ...
================================================================================
Error executing action `run` on resource 'bash[Install libpq]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of "bash" "/tmp/chef-script20121013-16144-1c1ej7c-0" ----
STDOUT: Selecting previously unselected package libpq5.
(Reading database ... 69001 files and directories currently installed.)
Unpacking libpq5 (from .../cache/dev_setup/libpq5_9.2.deb) ...
STDERR: dpkg: dependency problems prevent configuration of libpq5:
libpq5 depends on libssl0.9.8 (>= 0.9.8k-1); however:
Package libssl0.9.8 is not installed.
dpkg: error processing libpq5 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libpq5
---- End output of "bash" "/tmp/chef-script20121013-16144-1c1ej7c-0" ----
Ran "bash" "/tmp/chef-script20121013-16144-1c1ej7c-0" returned 1
Resource Declaration:
---------------------