Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

apt-get update error due to armhf

While installing CUDA on Ubuntu, I ran the following command in the terminal:

sudo sh -c 'echo "foreign-architecture armhf" >> /etc/dpkg/dpkg.cfg.d/multiarch'

The command failed and when I do sudo apt-get update, it gives me a whole bunch of failed to fetcherrors. My CUDA installation however, succeeded. How can I revert it back, so that I don't get errors when I update?

like image 548
Marvin Avatar asked Dec 08 '25 19:12

Marvin


1 Answers

In my case,

sudo dpkg --remove-architecture armhf

If you have annoying dpkg: error: cannot remove architecture 'armhf' currently in use by the database, consider remove armhf packages which you'll get from dpkg -l | grep armhf command

like image 79
asiniy Avatar answered Dec 11 '25 09:12

asiniy