|
|
|
|
@ -5,36 +5,23 @@ export DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
|
|
dpkg --add-architecture arm64
|
|
|
|
|
|
|
|
|
|
# focal 上使用传统 sources.list 写法,兼容性更好。
|
|
|
|
|
rm -rf /etc/apt/sources.list.d/*
|
|
|
|
|
rm -f /etc/apt/sources.list
|
|
|
|
|
cat > /etc/apt/sources.list <<'EOF'
|
|
|
|
|
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
|
|
|
|
|
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
|
|
|
|
|
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
|
|
|
|
|
deb [arch=amd64] http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse
|
|
|
|
|
|
|
|
|
|
cat > /etc/apt/sources.list.d/ubuntu.sources <<'EOF'
|
|
|
|
|
Types: deb
|
|
|
|
|
URIs: http://archive.ubuntu.com/ubuntu/
|
|
|
|
|
Suites: focal focal-updates focal-backports
|
|
|
|
|
Components: main restricted universe multiverse
|
|
|
|
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
|
|
|
|
Architectures: amd64
|
|
|
|
|
|
|
|
|
|
Types: deb
|
|
|
|
|
URIs: http://security.ubuntu.com/ubuntu
|
|
|
|
|
Suites: focal-security
|
|
|
|
|
Components: main restricted universe multiverse
|
|
|
|
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
|
|
|
|
Architectures: amd64
|
|
|
|
|
|
|
|
|
|
Types: deb
|
|
|
|
|
URIs: http://ports.ubuntu.com/ubuntu-ports/
|
|
|
|
|
Suites: focal focal-updates focal-backports focal-security
|
|
|
|
|
Components: main restricted universe multiverse
|
|
|
|
|
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
|
|
|
|
Architectures: arm64
|
|
|
|
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
|
|
|
|
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
|
|
|
|
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-backports main restricted universe multiverse
|
|
|
|
|
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
apt-get update
|
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
|
ca-certificates curl gnupg git ubuntu-keyring \
|
|
|
|
|
python3:amd64 python3-importlib-metadata:amd64 python3-markdown:amd64
|
|
|
|
|
ca-certificates curl gnupg git ubuntu-keyring python3
|
|
|
|
|
|
|
|
|
|
# 本机构建 amd64
|
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
|
|