diff -ruN apt-setup-0.151~deb10u1/generators/91security apt-setup-0.151~deb10u1-new/generators/91security
--- apt-setup-0.151~deb10u1/generators/91security	2019-07-12 16:16:20.000000000 +0800
+++ apt-setup-0.151~deb10u1-new/generators/91security	2021-09-04 14:38:15.716190167 +0800
@@ -29,7 +29,13 @@
 done
 
 # Don't test mirror if no network selected in netcfg
+
+archdetect=$(archdetect)
+if [ "${archdetect%/*}" != "loongarch64" ];
+then
 echo "deb http://$host/debian-security $codename/updates $dists" >> $file
+fi
+
 if db_get netcfg/dhcp_options && \
    [ "$RET" = "Do not configure the network at this time" ]; then
 	CODE=9
@@ -52,6 +58,9 @@
 	deb_src="# deb-src"
 fi
 
+if [ "${archdetect%/*}" != "loongarch64" ];
+then
 echo "$deb_src http://$host/debian-security $codename/updates $dists" >> $file
+fi
 
 exit $CODE
diff -ruN apt-setup-0.151~deb10u1/generators/92updates apt-setup-0.151~deb10u1-new/generators/92updates
--- apt-setup-0.151~deb10u1/generators/92updates	2017-04-18 03:59:04.000000000 +0800
+++ apt-setup-0.151~deb10u1-new/generators/92updates	2021-09-04 14:34:50.532438192 +0800
@@ -41,13 +41,13 @@
 echo "# ${codename}-updates, previously known as 'volatile'" >> $file
 
 if  [ -n "$protocol" ] && [ -n "$host" ]; then
-	echo "deb $protocol://${host}${directory} ${codename}-updates $dists" >> $file
+	echo "deb $protocol://${host}${directory} ${codename} $dists" >> $file
 else
 	echo "# A network mirror was not selected during install.  The following entries" >> $file
 	echo "# are provided as examples, but you should amend them as appropriate" >> $file
 	echo "# for your mirror of choice." >> $file
 	echo "#" >> $file
-	echo "# deb http://deb.debian.org/debian/ ${codename}-updates $dists" >> $file
+	echo "# deb http://pkg.loongnix.cn:8080/loongnix/ ${codename} $dists" >> $file
 fi
 if db_get netcfg/dhcp_options && \
    [ "$RET" = "Do not configure the network at this time" ]; then
@@ -76,9 +76,9 @@
 fi
 
 if [ -n "$protocol" ] && [ -n "$host" ]; then
-	echo "$deb_src $protocol://${host}${directory} ${codename}-updates $dists" >> $file
+	echo "$deb_src $protocol://${host}${directory} ${codename} $dists" >> $file
 else
-	echo "# deb-src http://deb.debian.org/debian/ ${codename}-updates $dists" >> $file
+	echo "# deb-src http://pkg.loongnix.cn:8080/debian/ ${codename} $dists" >> $file
 fi
 
 exit $CODE
diff -ruN apt-setup-0.151~deb10u1/generators/93backports apt-setup-0.151~deb10u1-new/generators/93backports
--- apt-setup-0.151~deb10u1/generators/93backports	2017-04-18 03:59:08.000000000 +0800
+++ apt-setup-0.151~deb10u1-new/generators/93backports	2021-09-04 14:35:08.983696545 +0800
@@ -47,7 +47,7 @@
 	echo "# are provided as examples, but you should amend them as appropriate" >> $file
 	echo "# for your mirror of choice." >> $file
 	echo "#" >> $file
-	echo "# deb http://deb.debian.org/debian/ ${codename}-backports $dists" >> $file
+	echo "# deb http://pkg.loongnix.cn:8080/loongnix ${codename} $dists" >> $file
 fi
 if db_get netcfg/dhcp_options && \
    [ "$RET" = "Do not configure the network at this time" ]; then
@@ -76,9 +76,9 @@
 fi
 
 if [ -n "$protocol" ] && [ -n "$host" ]; then
-	echo "$deb_src $protocol://${host}${directory} ${codename}-backports $dists" >> $file
+	echo "$deb_src $protocol://${host}${directory} ${codename} $dists" >> $file
 else
-	echo "# deb-src http://deb.debian.org/debian/ ${codename}-backports $dists" >> $file
+	echo "# deb-src http://pkg.loongnix.cn:8080/loongnix ${codename} $dists" >> $file
 fi
 
 exit $CODE
