sudo apt-get install --download-only 'required-library' -o Dir::Cache::archives='path to your folder'
example path = '/home/ubuntu/test/'
example required library = numpy
example path = '/home/ubuntu/test/'
example required library = numpy
pivot = '...'
required = text.split(pivot, 1)[0]