3 Answers
3

If you still get some errors or warnings, you can try deleting all your software lists and completely re-downloading them from the server, to make sure nothing old is left. Note that the complete download will take a bit longer than usual:

I get dpkg: error: cannot remove architecture 'arm64' currently in use by the database which is odd because i don't think i'm using it...
– MoneyBallMay 20 '17 at 12:06

@MoneyBall Can you add the output of dpkg -l | grep arm64 to your question? Seems like some arm64 packages are installed, which you would have to remove first.
– Byte Commander♦May 20 '17 at 12:28

ah crap... I have arm64 cross compiler... but I successfully removed armhf which was a pain. Thank you.
– MoneyBallMay 20 '17 at 12:31

do you know how i can make apt-get update to stop fetching arm64 packages? How do i get rid of those 404 not found errors?
– MoneyBallMay 20 '17 at 12:34

1

Is there a way to remove the arm64 from the database, I'm having the same issues. EDITsudo dpkg --force-architecture --remove-architecture arm64 and sudo rm -rf /var/lib/apt/lists with sudo apt update fixed it.
– weezle1234Feb 27 '18 at 4:16

Faced same issue while working with jetson-tx2 arm64.
This manual refers the solution in advanced setup scenario
It turns out you can't remove architecture without removing packages.

This is useful when a foreign architecture has been added, causing "404 Not Found" errors to appear when the repository meta-data is updated.
For example, if you wanted to restrict a repository to only the amd64 and i386 architectures, it would look like:

deb [arch=amd64,i386] <url>

Provide the above option for all repositories in "sudo gedit /etc/apt/sources.list"