MAVSDK: package architecture (amd64) does not match system (arm64)
Hello,
I am trying to install mavsdk library (without mavsdk server) on linux arm64. DPKG could not process the package as the architecture is different. To reproduce the error, the following docker file can be used.
FROM arm64v8/ubuntu:20.04
RUN apt-get -y clean --fix-missing && \
apt-get -y update --fix-missing && \
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential cmake git wget && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
WORKDIR /home/dep
RUN wget https://github.com/mavlink/MAVSDK/releases/download/v1.0.1/mavsdk_1.0.1_debian11_arm64.deb && \
dpkg -i mavsdk_1.0.1_debian11_arm64.deb
Building docker image using buildx
sudo docker buildx build --platform=linux/arm64 .
Error logs
#7 21.09 Get:15 http://ports.ubuntu.com/ubuntu-ports focal-security/restricted arm64 Packages [3300 B]
#7 21.09 Get:16 http://ports.ubuntu.com/ubuntu-ports focal-security/multiverse arm64 Packages [3232 B]
#7 21.09 Get:17 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages [931 kB]
#7 21.62 Get:18 http://ports.ubuntu.com/ubuntu-ports focal-security/universe arm64 Packages [775 kB]
#7 22.53 Fetched 17.3 MB in 14s (1226 kB/s)
#7 22.53 Reading package lists...
#7 25.96 dpkg: error processing archive mavsdk_1.0.1_debian11_arm64.deb (--install):
#7 25.96 package architecture (amd64) does not match system (arm64)
#7 25.99 Errors were encountered while processing:
#7 25.99 mavsdk_1.0.1_debian11_arm64.deb
------
error: failed to solve: executor failed running [/bin/sh -c wget https://github.com/mavlink/MAVSDK/releases/download/v1.0.1/mavsdk_1.0.1_debian11_arm64.deb && dpkg --add-architecture arm64 && apt-get -y update --fix-missing && dpkg -i mavsdk_1.0.1_debian11_arm64.deb]: exit code: 1
We can build mavsdk from the source using cmake. But using package would speed up our build process.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (4 by maintainers)
@JonasVautherin you’re right. let’s make it a dynamic build and require the dependencies.