mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-06-22 08:56:37 +08:00
修复有时因为update出问题导致无法正常构建的问题
This commit is contained in:
@@ -20,7 +20,14 @@ echo "deb [trusted=true] https://repo-gxde.gfdgdxi.top/gxde-os/bixie ./" >> /etc
|
|||||||
if [[ $1 == "loong64" ]]; then
|
if [[ $1 == "loong64" ]]; then
|
||||||
echo "deb [trusted=true] http://mirror.sjtu.edu.cn/debian-ports unreleased main" > /etc/apt/sources.list.d/debian-unreleased.list
|
echo "deb [trusted=true] http://mirror.sjtu.edu.cn/debian-ports unreleased main" > /etc/apt/sources.list.d/debian-unreleased.list
|
||||||
fi
|
fi
|
||||||
apt update
|
for i in {1..8};
|
||||||
|
do
|
||||||
|
apt update -y
|
||||||
|
if [[ $? == 0 ]]; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
apt install dpkg-dev sudo neofetch debian-ports-archive-keyring debian-archive-keyring -y
|
apt install dpkg-dev sudo neofetch debian-ports-archive-keyring debian-archive-keyring -y
|
||||||
neofetch
|
neofetch
|
||||||
#if [[ `arch` != "x86_64" ]]; then
|
#if [[ `arch` != "x86_64" ]]; then
|
||||||
@@ -44,5 +51,6 @@ do
|
|||||||
if [[ $? == 0 ]]; then
|
if [[ $? == 0 ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
sleep 1
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
Reference in New Issue
Block a user