非常不言自明:有人可以告诉我为什么会出现错误
$ 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 系统上工作正常吗?我该如何解决?
没关系,我想通了。你需要运行:
您可以通过以下方式查看添加的现有架构列表:
为什么他们认为用户最初一定是在开玩笑关于显式
:arm64
后缀是我无法理解的。这并不是说您不需要明确添加arm64
作为架构/etc/sources.list
...