Problem with installation

I have been trying to install AFNI on Ubuntu 18.04 but each time I am getting an error with R installation,
Warning messages:
1: In install.packages(pkgs_miss, dep = TRUE, repos = site) :
installation of package ‘curl’ had non-zero exit status
2: In install.packages(pkgs_miss, dep = TRUE, repos = site) :
installation of package ‘PKI’ had non-zero exit status
3: In install.packages(pkgs_miss, dep = TRUE, repos = site) :
installation of package ‘RCurl’ had non-zero exit status
4: In install.packages(pkgs_miss, dep = TRUE, repos = site) :
installation of package ‘rio’ had non-zero exit status
5: In install.packages(pkgs_miss, dep = TRUE, repos = site) :
installation of package ‘rsconnect’ had non-zero exit status
6: In install.packages(pkgs_miss, dep = TRUE, repos = site) :
installation of package ‘car’ had non-zero exit status
7: In install.packages(pkgs_miss, dep = TRUE, repos = site) :
installation of package ‘shinystan’ had non-zero exit status
8: In install.packages(pkgs_miss, dep = TRUE, repos = site) :
installation of package ‘afex’ had non-zero exit status
9: In install.packages(pkgs_miss, dep = TRUE, repos = site) :
installation of package ‘phia’ had non-zero exit status
10: In install.packages(pkgs_miss, dep = TRUE, repos = site) :
installation of package ‘brms’ had non-zero exit status

I also tried with virtual box but the same problem. Can you please tell me how can I fix this?

Hi-

We haven’t put up official install instructions for Ubuntu 18.04 yet, but several people have chipped in advice, including this recent one:
https://afni.nimh.nih.gov/afni/community/board/read.php?1,158983,158983#msg-158983

Please give that a go and see if that solves the R issues.

Thanks,
pt