Error of upgrading git-annex on Ubuntu

I am using Ubuntu 16.04.4 and trying to get some datasets by using DataLad. But I face the following error:
[ERROR] git-annex of version >= 6.20170220 is missing. Visit http://git-annex.branchable.com/install/. You have version 5.20151208-1build1 [annexrepo.py:_check_git_annex_version:734] (OutdatedExternalDependency)
even " $ git-annex upgrade " is not helpful. It seems git-annex should recompile from source. Does anyone knows how should I do that?

Hi Soudabeh,

I ran in a similar issue when running Travis tests involving DataLad. A solution easier than recompiling from sources seems is to install git-annex from the Neurodebian repository:

bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
apt-get install git-annex-standalone

Best,
Tristan

3 Likes