很容易解释:有人能告诉我为什么我会得到这个错误吗
$ sudo apt-get install gcc-6-base:arm64
dpkg: error processing archive /var/cache/apt/archives/gcc-6-base_6.0.1-0ubuntu1_arm64.deb (--unpack):
package architecture (arm64) does not match system (amd64)
Errors were encountered while processing:
/var/cache/apt/archives/gcc-6-base_6.0.1-0ubuntu1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
什么时候
$ sudo apt-get install gcc-6-base:armhf
Selecting previously unselected package gcc-6-base:armhf.
(Reading database ... 219445 files and directories currently installed.)
Preparing to unpack .../gcc-6-base_6.0.1-0ubuntu1_armhf.deb ...
Unpacking gcc-6-base:armhf (6.0.1-0ubuntu1) ...
Setting up gcc-6-base:armhf (6.0.1-0ubuntu1) ...
在我的 AMD64 系统上工作正常?我该如何修复这个问题?
答案1
没关系,我已经想通了。你需要运行:
sudo dpkg --add-architecture arm64
您可以通过以下方式查看添加的现有架构列表:
sudo dpkg --print-foreign-architectures
我不明白为什么他们认为用户一开始一定是在开玩笑,因为显式:arm64
后缀。这并不是说您不需要arm64
在架构中显式添加/etc/sources.list
...