Problems with libdbus-1-dev in Rust container

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Tim,

Thank you for reaching out with your question. It seems like you’re encountering issues with installing libdbus-1-dev and pkg-config for the ARM64 architecture in your Rust container. This is likely due to the way the packages are specified in your Dockerfile.

Here are some steps you can take to resolve this:

  1. Remove Architecture Suffixes: In your Dockerfile, try removing the architecture-specific suffixes from the package names. Instead of pkg-config:arm64 and libdbus-1-dev:arm64, simply use pkg-config and libdbus-1-dev. The package manager should automatically handle the architecture based on the environment.

  2. Verify Base Image Compatibility: Ensure that the base image you are using (rust:${SDK_BASE_VERSION}) supports the ARM64 architecture. If it doesn’t, consider using a multi-architecture base image or a Torizon base image that is already configured for ARM64.

  3. Check Package Availability: Make sure that the packages you are trying to install are available for the ARM64 architecture in the Debian repositories. You can verify this by checking the package lists or using a tool like apt-cache.

By following these steps, you should be able to resolve the package installation issues in your Rust container. If you have any further questions, feel free to ask.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

What images to use for wayland with GPU support for verdin imx8mp?.