Circle-ci config hangs at add-apt-repository -y for a long time


#1
    #!/bin/bash -eo pipefail
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update

I tried several builds and stopped all of them after 5 minutes after nothing happens when executing this command. For debugging, I removed the first command and now the same issue arises for this command

sudo apt-get install -y gcc-6 g++-6 gfortran-6 cmake libgoogle-perftools-dev libhwloc-dev wget doxygen libvtk6-dev libpq5


#2

Can you try apt-get update in an SSH session?

What base docker image are you running? (assuming you are running CircleCI 2.0 with the Docker executor).


#3

Yes, I am using CircleCI 2.0. I merged the branch into master and master failed too. I generated a new branch and tested this new branch and it passed.