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 You have version 5.20151208-1build1 [] (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-
apt-get install git-annex-standalone