问题:rpm is for architecture aarch64 ; the package cannot be built on this system

$ sudo alien --to-deb ./*.rpm
./libvirt-3.9.0-1.el7.centos.aarch64.rpm is for architecture aarch64 ; the package cannot be built on this system

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

ubuntu安装rpm时,提示我要安装在aarch64,但是我的环境就是aarch64,如下:

$ dpkg --print-architecture
arm64

$ lscpu
Architecture: aarch64
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
每个核的线程数:1
每个座的核数: 4
Socket(s): 4
NUMA 节点: 1
Model name: phytium FT1500a
BogoMIPS: 3594.24
NUMA node0 CPU(s): 0-15
Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32

 

解决方法:

1 sudo alien --to-deb ./*.rpm --target=arm64

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄