Ask Your Question
0

stack.sh fails with Failed to fetch libjs-underscore_1.1.6-1ubuntu2_all.deb Hash Sum mismatch

asked 2013-04-01 15:12:47 -0600

arturo-lorenzo gravatar image

I have a fresh ubuntu 12.04 LTS 64bit installed and I got the error when running ./stack.sh, here is the log: 2013-04-01 10:57:34 + echo_summary 'Installing package prerequisites' 2013-04-01 10:57:34 + [[ -t 3 ]] 2013-04-01 10:57:34 + [[ True != \T\r\u\e ]] 2013-04-01 10:57:34 + echo -e Installing package prerequisites 2013-04-01 10:57:34 + source /opt/stack/devstack/tools/install_prereqs.sh 2013-04-01 10:57:34 ++ [[ -n '' ]] 2013-04-01 10:57:34 ++ [[ -z /opt/stack/devstack ]] 2013-04-01 10:57:34 ++ PREREQ_RERUN_MARKER=/opt/stack/devstack/.prereqs 2013-04-01 10:57:34 ++ PREREQ_RERUN_HOURS=2 2013-04-01 10:57:34 ++ PREREQ_RERUN_SECONDS=7200 2013-04-01 10:57:34 +++ date +%s 2013-04-01 10:57:34 ++ NOW=1364828254 2013-04-01 10:57:34 +++ head -1 /opt/stack/devstack/.prereqs 2013-04-01 10:57:34 +++ echo 0 2013-04-01 10:57:34 ++ LAST_RUN=0 2013-04-01 10:57:34 ++ DELTA=1364828254 2013-04-01 10:57:34 ++ [[ 1364828254 -lt 7200 ]] 2013-04-01 10:57:34 ++ export_proxy_variables 2013-04-01 10:57:34 ++ [[ -n http://mycompany.proxy:8888 ]] 2013-04-01 10:57:34 ++ export http_proxy=http://mycompany.proxy:8888 2013-04-01 10:57:34 ++ http_proxy=http://mycompany.proxy:8888 2013-04-01 10:57:34 ++ [[ -n http://mycompany.proxy:8888 ]] 2013-04-01 10:57:34 ++ export https_proxy=http://mycompany.proxy:8888 2013-04-01 10:57:34 ++ https_proxy=http://mycompany.proxy:8888 2013-04-01 10:57:34 ++ [[ -n '' ]] 2013-04-01 10:57:35 stack.sh log /opt/stack/logs/stack.sh.log.2013-04-01-105734 2013-04-01 10:57:35 Installing package prerequisites 2013-04-01 10:57:35 +++ get_packages n-cpu,rabbit,quantum,q-agt 2013-04-01 10:57:35 +++ local services=n-cpu,rabbit,quantum,q-agt 2013-04-01 10:57:35 ++++ _get_package_dir 2013-04-01 10:57:35 ++++ local pkg_dir 2013-04-01 10:57:35 ++++ is_ubuntu 2013-04-01 10:57:35 ++++ [[ -z deb ]] 2013-04-01 10:57:35 ++++ '[' deb = deb ']' 2013-04-01 10:57:35 ++++ pkg_dir=/opt/stack/devstack/files/apts 2013-04-01 10:57:35 ++++ echo /opt/stack/devstack/files/apts 2013-04-01 10:57:35 +++ local package_dir=/opt/stack/devstack/files/apts 2013-04-01 10:57:35 +++ local file_to_parse 2013-04-01 10:57:35 +++ local service 2013-04-01 10:57:35 +++ [[ -z /opt/stack/devstack/files/apts ]] 2013-04-01 10:57:35 +++ [[ -z precise ]] 2013-04-01 10:57:35 +++ for service in general '${services//,/ }' 2013-04-01 10:57:35 +++ [[ -e /opt/stack/devstack/files/apts/general ]] 2013-04-01 10:57:35 +++ file_to_parse=' general' 2013-04-01 10:57:35 +++ [[ general == n-api ]] 2013-04-01 10:57:35 +++ [[ general == c-* ]] 2013-04-01 10:57:35 +++ [[ general == ceilometer-* ]] 2013-04-01 10:57:35 +++ [[ general == s-* ]] 2013-04-01 10:57:35 +++ [[ general == n-* ]] 2013-04-01 10:57:35 +++ [[ general == g-* ]] 2013-04-01 10:57:35 +++ [[ general == key* ]] 2013-04-01 10:57:35 +++ [[ general == q-* ]] 2013-04-01 10:57:35 +++ for service in general '${services//,/ }' 2013-04-01 10:57:35 +++ [[ -e /opt/stack/devstack/files/apts/n-cpu ]] 2013-04-01 10:57:35 +++ file_to_parse=' general n-cpu' 2013-04-01 10:57:35 +++ [[ n-cpu == n-api ]] 2013-04-01 10:57:35 +++ [[ n-cpu == c-* ]] 2013-04-01 10:57:35 +++ [[ n-cpu == ceilometer-* ]] 2013-04-01 10:57:35 +++ [[ n-cpu == s-* ]] 2013-04-01 10:57:35 +++ [[ n-cpu == n-* ]] 2013-04-01 10:57:35 +++ [[ ! general n-cpu =~ nova ]] 2013-04-01 10:57:35 +++ file_to_parse=' general n-cpu nova' 2013-04-01 10:57:35 +++ for service in general '${services//,/ }' 2013-04-01 10:57:35 +++ [[ -e ... (more)

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2013-04-01 18:24:37 -0600

zzs gravatar image

I think this is no the issue of the devstack. It looks like you are behind your company proxy, if so maybe this is the reason. can you try without the proxy?

edit flag offensive delete link more
0

answered 2013-04-01 20:11:41 -0600

arturo-lorenzo gravatar image

Jason, thanks for the response. I have another computer running the devstack app OK which is located next to the one (in the same network and with the same proxy) that I am having this problem. I am being running OK for several days with the other machine. I cannot take the proxy out of the picture on any machine. Any other suggestion? Thanks!

edit flag offensive delete link more
0

answered 2013-04-01 21:47:26 -0600

zzs gravatar image

Since you are behind the proxy, maybe there are some transparent caches, you can try to download the libjs-underscore manually from the server which works well http://packages.ubuntu.com/precise/all/libjs-underscore/download (http://packages.ubuntu.com/precise/al...)

and install it to the server by using command sudo dpkg -i libjs-underscore_1.1.6-1ubuntu2_all.deb

edit flag offensive delete link more
0

answered 2013-04-02 14:25:31 -0600

arturo-lorenzo gravatar image

Jason, thanks for looking to this problem and sending your suggestion. I have performed and here are the results: ~# dpkg -i ./libjs-underscore_1.1.6-1ubuntu2_all.deb Selecting previously unselected package libjs-underscore. (Reading database ... 79967 files and directories currently installed.) Unpacking libjs-underscore (from .../libjs-underscore_1.1.6-1ubuntu2_all.deb) ... dpkg: error processing ./libjs-underscore_1.1.6-1ubuntu2_all.deb (--install): corrupted filesystem tarfile - corrupted package archive Errors were encountered while processing:

./libjs-underscore_1.1.6-1ubuntu2_all.deb

and if I do a file on the deb file: ~# file libjs-underscore_1.1.6-1ubuntu2_all.deb libjs-underscore_1.1.6-1ubuntu2_all.deb: Debian binary package (format 2.0) and a ls

-rw-r--r-- 1 root root 31274 Aug 12 2011 libjs-underscore_1.1.6-1ubuntu2_all.deb

interesting problem, thanks for the help

edit flag offensive delete link more
0

answered 2013-04-02 15:35:47 -0600

arturo-lorenzo gravatar image

I've got it to work! This is what I did: 01) save /var/cache/apt from the machine that was working OK 02) restore it in the machine with the problem and everything worked OK. I have saved (tar cvfpz) the former /var/cache/apt just in case somebody is interesting in deep diving this problem. Let me know and thanks for the help!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-04-01 15:12:47 -0600

Seen: 191 times

Last updated: Apr 02 '13