mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-06-22 08:46:38 +08:00
loong64配置容器时会安装签名以避免反复apt update
This commit is contained in:
@@ -26,9 +26,10 @@ fi
|
|||||||
if [[ $(dpkg --print-architecture) == "loong64" ]]; then
|
if [[ $(dpkg --print-architecture) == "loong64" ]]; then
|
||||||
echo "deb [trusted=true] https://packages.gxde.org/debian-loong64/ unreleased main" > /etc/apt/sources.list.d/debian-unreleased.list
|
echo "deb [trusted=true] https://packages.gxde.org/debian-loong64/ unreleased main" > /etc/apt/sources.list.d/debian-unreleased.list
|
||||||
fi
|
fi
|
||||||
|
apt install debian-ports-archive-keyring debian-archive-keyring -y
|
||||||
for i in {1..8};
|
for i in {1..8};
|
||||||
do
|
do
|
||||||
apt update -y
|
apt update -o Acquire::Check-Valid-Until=false -y
|
||||||
if [[ $? == 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user