openstack devstack Bad md5 hash for package
2015-12-10 20:11
316 查看
不管用unbunt 14还是ubuntu 15,或者Centos 7.1,运行stack.sh脚本生成devstack时,每次都会在类似下面的步骤中报错返回,只不过不同版本,每次的package不一样
2015-12-10 22:38:18.381 | Collecting requests===2.8.1 (from -c /opt/stack/requirements/upper-constraints.txt (line 292))
2015-12-10 22:38:18.769 | Using cached requests-2.8.1-py2.py3-none-any.whl
2015-12-10 22:38:18.771 | Hash of the package https://pypi.python.org/packages/2.7/r/requests/requests-2.8.1-py2.py3-none-any.whl#md5=46f1d621daa3ab38958a42f51478b1ee (from https://pypi.python.org/simple/requests/) (5d5ef94a1326de1ca405c3f791c09165) doesn't match the expected hash 46f1d621daa3ab38958a42f51478b1ee!
2015-12-10 22:38:18.804 | Bad md5 hash for package https://pypi.python.org/packages/2.7/r/requests/requests-2.8.1-py2.py3-none-any.whl#md5=46f1d621daa3ab38958a42f51478b1ee (from https://pypi.python.org/simple/requests/) 也查了tmp下cache好的package的MD5确实不对,网上查了都是使用pip isntall单独安装这个包,但这种方法试了也不行,还是过不去。
看到pip命令有个--no-cache-dir选项,因此找个stack.sh调用pip install这个命令的脚本,添加该选项试试看
[stack@localhost devstack]$ find ./ -type f |xargs grep pip_install
Binary file ./.git/objects/pack/pack-80e40171dd403496ca97e8059d45d050ed4a79da.pack matches
./inc/python:# pip_install_gr packagename
./inc/python:function pip_install_gr {
./inc/python: pip_install $clean_name
./inc/python:# pip_install package [package ...]
./inc/python:function pip_install {
vi ~/devstack/inc/python文件中的函数
function pip_install
找到pip install命令,添加“--no-cache-dir”选项
cmd_pip="$cmd_pip install --no-cache-dir"
保存退出,stack.sh顺利执行完成
本文出自 “zhoulibo” 博客,转载请与作者联系!
2015-12-10 22:38:18.381 | Collecting requests===2.8.1 (from -c /opt/stack/requirements/upper-constraints.txt (line 292))
2015-12-10 22:38:18.769 | Using cached requests-2.8.1-py2.py3-none-any.whl
2015-12-10 22:38:18.771 | Hash of the package https://pypi.python.org/packages/2.7/r/requests/requests-2.8.1-py2.py3-none-any.whl#md5=46f1d621daa3ab38958a42f51478b1ee (from https://pypi.python.org/simple/requests/) (5d5ef94a1326de1ca405c3f791c09165) doesn't match the expected hash 46f1d621daa3ab38958a42f51478b1ee!
2015-12-10 22:38:18.804 | Bad md5 hash for package https://pypi.python.org/packages/2.7/r/requests/requests-2.8.1-py2.py3-none-any.whl#md5=46f1d621daa3ab38958a42f51478b1ee (from https://pypi.python.org/simple/requests/) 也查了tmp下cache好的package的MD5确实不对,网上查了都是使用pip isntall单独安装这个包,但这种方法试了也不行,还是过不去。
看到pip命令有个--no-cache-dir选项,因此找个stack.sh调用pip install这个命令的脚本,添加该选项试试看
[stack@localhost devstack]$ find ./ -type f |xargs grep pip_install
Binary file ./.git/objects/pack/pack-80e40171dd403496ca97e8059d45d050ed4a79da.pack matches
./inc/python:# pip_install_gr packagename
./inc/python:function pip_install_gr {
./inc/python: pip_install $clean_name
./inc/python:# pip_install package [package ...]
./inc/python:function pip_install {
vi ~/devstack/inc/python文件中的函数
function pip_install
找到pip install命令,添加“--no-cache-dir”选项
cmd_pip="$cmd_pip install --no-cache-dir"
保存退出,stack.sh顺利执行完成
本文出自 “zhoulibo” 博客,转载请与作者联系!
相关文章推荐
- Linux系统下如何查看CPU个数
- 安装libjpeg库后提示libjpeg.so.8不存在(linux环境)
- Linux学习笔记——举例说,makefile 添加宏定义
- Apache的配置详解,最好的Apache配置文档。
- Linux C学习--getline()函数
- Apache的配置详解,最好的Apache配置文档。
- Linux用户空间与内核空间数据传递的几点理解和总结
- shopxx研究
- nginx location
- CentOs 编译php 遇到的一些问题
- Linux 常用操作
- Linux命令学习笔记(4)----head命令、tail命令
- APACHE POI教程 --java应用程序用POI与Excel交互
- 系统架构之Tomcat7不支持中文cookie
- Ubuntu下关于将普通用户权限提升为root的问题
- Linux 文件夹说明
- 字符设备设备节点创建的两种方法
- 卸载LINUX自带的JDK——linux-jdk-java
- Linux 信号量同步实验
- Eclipse+Tomcat远程调试配置