linux - 由于 armhf 导致的 apt-get 更新错误

标签 linux cuda ubuntu-12.04

在 Ubuntu 上安装 CUDA 时,我在终端中运行了以下命令:

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

命令失败,当我执行 sudo apt-get update 时,它给我一大堆 failed to fetch 错误。然而,我的 CUDA 安装成功了。我怎样才能将其还原,以便在更新时不会出现错误?

最佳答案

就我而言,

sudo dpkg --remove-architecture armhf

如果你有烦人的dpkg: error: cannot remove architecture 'armhf' currently in use by the database,考虑删除你将从获得的armhf包>dpkg-l | grep armhf 命令

关于linux - 由于 armhf 导致的 apt-get 更新错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24451304/

相关文章:

ubuntu - 找不到 sudo pecl 命令

c++ - C 程序终止

performance - 为什么 CUDA 代码在 NVIDIA Visual Profiler 中运行得这么快?

linux - sem_post() 因有效信号量而失败

linux - nvcc 致命 : Unsupported gpu architecture 'compute_20' while compiling matlab

cuda - cuda 中的 float 与 int

c - Linux 控制台; CLS 未找到错误

ubuntu - 如何设置具体的GOPATH?

linux - "Linux 中的表达式计算为单引号

linux - 我们如何知道对 epoll_wait() 的调用是边缘触发还是电平触发?