Skip to content

Commit 544e16c

Browse files
committed
Force add key through port 80 to avoid firewall issues
1 parent d7c2fb9 commit 544e16c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fabfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def sub_add_repos():
5050
"""Adds any repositories needed to install packages"""
5151
if not exists('/etc/apt/sources.list.d/cran.list', use_sudo=True):
5252
# Add the repository for R
53-
sudo('sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys '
54-
'E084DAB9')
53+
sudo('sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 '
54+
'--recv-keys E084DAB9')
5555
run('sudo sh -c "echo \'deb http://cran.rstudio.com/bin/linux/ubuntu '
5656
'trusty/\' >> /etc/apt/sources.list.d/cran.list"')
5757

0 commit comments

Comments
 (0)