1、问题1
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
ps afx|grep apt
kill PID
2、
apt-get update
sudo apt install -y debootstrap
3、
Debian9:
stretch
Debian10:
buster
Debian11:
bullseye
Debian12:
Bookworm
debootstrap --arch=arm64 bullseye rootfs http://mirrors.tuna.tsinghua.edu.cn/debian
I: Retrieving InRelease
I: Checking Release signature
E: Release signed by unknown key (key id 605C66F00D6C9793)
rm /usr/share/keyrings/*
sudo apt-get install debian-keyring debian-archive-keyring
4、http://mirrors.tuna.tsinghua.edu.cn/debian
5、
sudo debootstrap --foreign --verbose --arch=armhf buster rootfs http://ftp2.cn.debian.org/debian
sudo debootstrap --foreign --verbose --arch=arm64 buster rootfs http://ftp2.cn.debian.org/debian
debootstrap --arch=arm64 --keyring /usr/share/keyrings/debian-archive-keyring.gpg --variant=buildd --exclude=debfoster unstable debian-arm64 http://ftp.debian.org/debian
6、
mount --bind /dev rootfs/dev
7、
mount --bind /dev/pts rootfs/dev/pts
8、
mount --bind /proc rootfs/proc
9、
chroot rootfs bash
10、
echo