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