Update:
At first, I did `git clone --depth=1 https://github.com/freesurfer/freesurfer.git` to clone the repo, and it has aforementioned issues.Then, I did git clone again without --depth=1 option. Now, `git fetch datasrc` works as expected.

Best,
Foucault

On Tue, Jan 9, 2018 at 5:01 PM zuxfoucault Wong <zuxfoucault@gmail.com> wrote:
Hi FreeSurfers,

I am trying to build freesurfer from source on ubuntu 16.04 in order to run `recon-all -use-gpu` that is compatible with the latest cuda 9.1.

I followed the instruction here to build freesurfer http://surfer.nmr.mgh.harvard.edu/fswiki/freesurfer_linux_developers_page.
However, in order to `make install` I have to retrieve the data file but failed.
Error message:
$ git fetch datasrc                                                                          
error: The requested URL returned error: 403 Forbidden (curl_result = 22, http_code = 403, sha1 = 3a63ee606e817bc4c837fbc8330a16e40432f379)
error: Unable to get pack index https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/repo/annex.git/objects/pack/pack-a394f39ddb0cd1a84bf3e0a31dae0b525cbba37e.idx
error: Unable to find 3a63ee606e817bc4c837fbc8330a16e40432f379 under https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/repo/annex.git
Cannot obtain needed tree 3a63ee606e817bc4c837fbc8330a16e40432f379
while processing commit d300174e056c2e3b0188eba3fadc1d706698edac.
error: fetch failed. 

Any suggestions? Thanks for your time!

Best,
Foucault