Easy_install on ubuntu desktop 16.04

TASK [mariadb : Add repo key] **************************************************
fatal: [localhost]: FAILED! => {“changed”: false, “msg”: “Failed to download key at http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xF1656F24C74CD1D8: HTTP Error 403: Forbidden”}
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

PLAY RECAP *********************************************************************
localhost : ok=10 changed=7 unreachable=0 failed=1

Traceback (most recent call last):
File “install.py”, line 420, in
install_bench(args)
File “install.py”, line 122, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 338, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python2.7/subprocess.py”, line 541, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2

Steps:

wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --develop --user frappe

Any helps?

Seems like a network issue. Try again.

I solved by:

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com/pks/lookup?op=get&0xF1656F24C74CD1D8

Then error yarn. Solved below cmd

sudo npm install -g yarn

And facing other error. I think it’s network issue as you said.

failed: [localhost] (item=[u’redis-server’]) => {“cache_update_time”: 1538386388, “cache_updated”: false, “changed”: false, “item”: [“redis-server”], “msg”: “‘/usr/bin/apt-get -y -o "Dpkg::Options::=–force-confdef" -o "Dpkg::Options::=–force-confold" --force-yes install ‘redis-server’’ failed: W: --force-yes is deprecated, use one of the options starting with --allow instead.\nE: Failed to fetch http://opensource.xtdv.net/ubuntu/pool/universe/j/jemalloc/libjemalloc1_3.6.0-9ubuntu1_amd64.deb 403 Forbidden [IP: 113.161.78.134 80]\n\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?\n”, “rc”: 100, “stderr”: “W: --force-yes is deprecated, use one of the options starting with --allow instead.\nE: Failed to fetch http://opensource.xtdv.net/ubuntu/pool/universe/j/jemalloc/libjemalloc1_3.6.0-9ubuntu1_amd64.deb 403 Forbidden [IP: 113.161.78.134 80]\n\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?\n”, “stderr_lines”: [“W: --force-yes is deprecated, use one of the options starting with --allow instead.”, “E: Failed to fetch http://opensource.xtdv.net/ubuntu/pool/universe/j/jemalloc/libjemalloc1_3.6.0-9ubuntu1_amd64.deb 403 Forbidden [IP: 113.161.78.134 80]”, “”, “E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?”], “stdout”: “Reading package lists…\nBuilding dependency tree…\nReading state information…\nThe following additional packages will be installed:\n libjemalloc1 redis-tools\nSuggested packages:\n ruby-redis\nThe following NEW packages will be installed:\n libjemalloc1 redis-server redis-tools\n0 upgraded, 3 newly installed, 0 to remove and 447 not upgraded.\nNeed to get 517 kB of archives.\nAfter this operation, 1505 kB of additional disk space will be used.\nErr:1 Index of /ubuntu/ xenial/universe amd64 libjemalloc1 amd64 3.6.0-9ubuntu1\n 403 Forbidden [IP: 113.161.78.134 80]\nGet:2 Index of /ubuntu/ xenial/universe amd64 redis-tools amd64 2:3.0.6-1 [95.3 kB]\nGet:3 Index of /ubuntu/ xenial/universe amd64 redis-server amd64 2:3.0.6-1 [343 kB]\nFetched 438 kB in 0s (454 kB/s)\n”, “stdout_lines”: [“Reading package lists…”, “Building dependency tree…”, “Reading state information…”, “The following additional packages will be installed:”, " libjemalloc1 redis-tools", “Suggested packages:”, " ruby-redis", “The following NEW packages will be installed:”, " libjemalloc1 redis-server redis-tools", “0 upgraded, 3 newly installed, 0 to remove and 447 not upgraded.”, “Need to get 517 kB of archives.”, “After this operation, 1505 kB of additional disk space will be used.”, “Err:1 Index of /ubuntu/ xenial/universe amd64 libjemalloc1 amd64 3.6.0-9ubuntu1”, " 403 Forbidden [IP: 113.161.78.134 80]", “Get:2 Index of /ubuntu/ xenial/universe amd64 redis-tools amd64 2:3.0.6-1 [95.3 kB]”, “Get:3 Index of /ubuntu/ xenial/universe amd64 redis-server amd64 2:3.0.6-1 [343 kB]”, “Fetched 438 kB in 0s (454 kB/s)”]}

RUNNING HANDLER [mariadb : restart mysql] ***************************************************************************************
to retry, use: --limit @/tmp/.bench/playbooks/site.retry

Network issue fixed by adding nameserver 8.8.8.8, 8.8.4.4