简体   繁体   中英

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 fetch errors. My CUDA installation however, succeeded. How can I revert it back, so that I don't get errors when I update?

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 dpkg -l | grep armhf command

您需要从“/etc/dpkg/dpkg.cfg.d/multiarch”文件中删除条目“foreign-architecture armhf”。

first:

sudo apt-get remove --purge `dpkg --get-selections | grep armhf | awk '{print $1}'`

then

sudo dpkg --remove-architecture armhf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM