Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get remove \*qemu\* \
- && sudo perl -pin -e "s/#* *deb-src/deb-src/" /etc/apt/sources.list \
- && sudo update \
- && sudo sudo apt build-dep -y qemu \
- && cd /tmp/ \
- && wget -c http://ports.ubuntu.com/pool/main/k/krb5/libkrb5support0_1.17-6ubuntu4.1_arm64.deb \
- http://ports.ubuntu.com/pool/main/k/krb5/libkrb5-3_1.17-6ubuntu4.1_arm64.deb \
- http://ports.ubuntu.com/pool/main/k/krb5/libgssapi-krb5-2_1.17-6ubuntu4.1_arm64.deb \
- http://ports.ubuntu.com/pool/main/libs/libssh/libssh-4_0.9.3-2ubuntu2.1_arm64.deb \
- http://ports.ubuntu.com/pool/main/libs/libssh/libssh-dev_0.9.3-2ubuntu2.1_arm64.deb \
- && sudo apt -y install ./libkrb5support0_1.17-6ubuntu4.1_arm64.deb \
- ./libkrb5-3_1.17-6ubuntu4.1_arm64.deb \
- ./libgssapi-krb5-2_1.17-6ubuntu4.1_arm64.deb \
- ./libssh-4_0.9.3-2ubuntu2.1_arm64.deb \
- ./libssh-dev_0.9.3-2ubuntu2.1_arm64.deb \
- && sudo apt -y install binfmt-support debootstrap binutils alien ubuntu-dev-tools fakeroot \
- && wget -c https://download.qemu.org/qemu-6.0.0.tar.xz \
- && tar xvJf qemu-6.0.0.tar.xz \
- && rm -rf qemu-6.0.0 \
- && cd qemu-6.0.0 \
- && ./configure --prefix="/usr" --static --disable-system --enable-linux-user \
- && make \
- && DESTDIR="$PWD"/dest make install \
- && pkgname="qemu-user-static" \
- && fakeroot tar czf "$pkgname.tgz" -C dest . \
- && rm -f *.deb \
- && fakeroot alien --version="1:2.11+dfsg-1ubuntu7.36-1" -k "$pkgname.tgz" \
- && rm -rf dest "$pkgname.tgz" \
- && unset DESTDIR pkgname \
- && sudo apt -y install ./*.deb \
- && sudo cp -a ./scripts/qemu-binfmt-conf.sh /usr/local/bin/ \
- && sudo qemu-binfmt-conf.sh --qemu-path="/usr/bin" --qemu-suffix="-static" \
- && cd /usr/bin/ \
- && sudo rm -f qemu-*-static \
- && for exe in qemu-*; do sudo ln "$exe" "$exe-static"; done \
- && cd /tmp/ \
- && apt source qemu-user-static \
- && sudo cp -a qemu*/debian/qemu-debootstrap /usr/local/bin/
Advertisement
Add Comment
Please, Sign In to add comment