Ubuntu 16.04 apt-get update doesn't work with local repository

for use with apt 1.2 in Ubuntu 16.04 with local repository you need remove this file:

/etc/apt/apt.conf.d/50appstream

using:

sudo rm /etc/apt/apt.conf.d/50appstream


For me, alone deleting

/etc/apt/apt.conf.d/50appstream

didn't work, because I had downloaded only the amd64 packages. To get it to work, I had add the architecture to the sources.list lines

deb [arch=amd64] file:/wherever xenial main restricted universe multiverse
...etc.

After doing this apt-get update worked fine.