Skip to content

Instantly share code, notes, and snippets.

@junka
Created April 10, 2024 06:54
Show Gist options
  • Save junka/6859f3216206d0497f3307f371929fab to your computer and use it in GitHub Desktop.
Save junka/6859f3216206d0497f3307f371929fab to your computer and use it in GitHub Desktop.
docker multiarch下arm64的路径报错问题 /usr/local/sbin/dpkg-deb: No such file or directory
丑陋的解法是
```
RUN ln -s /usr/bin/dpkg-split /usr/sbin/dpkg-split
RUN ln -s /usr/bin/dpkg-deb /usr/sbin/dpkg-deb
RUN ln -s /bin/tar /usr/sbin/tar
```
真实原因是qemu跑的arm模拟器的问题
host安装一次qemu解决问题。。。。
sudo apt-get install -y qemu-user-static
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment