View the native architecture and supported compatible architectures on ubuntu

Let me talk about the architecture problem. A compiled software is related to the type of operating system and cpu architecture. This architecture is the architecture of the cpu.

This command is used to display the architecture of the machine. The results I got on different machines are: arm64 or amd64

sudo dpkg  --print-architecture

This command is used to display the external architecture supported by the machine

sudo dpkg --print-foreign-architectures

 

Guess you like

Origin blog.csdn.net/jiabailong/article/details/105225602