忘记加apt配置文件了

This commit is contained in:
2024-10-12 23:07:35 +08:00
parent 5f7714a6c2
commit 5f4dafc817
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
Package: *
Pin: release n=bookworm-backports
Pin-Priority: 500
@@ -38,6 +38,8 @@ fi
sudo bash .github/workflows/pardus-chroot $bottlePath sudo bash .github/workflows/pardus-chroot $bottlePath
if [[ $6 == "backport" ]]; then if [[ $6 == "backport" ]]; then
sudo cp -rv .github/workflows/debian-backports.list $bottlePath/etc/apt/sources.list.d sudo cp -rv .github/workflows/debian-backports.list $bottlePath/etc/apt/sources.list.d
sudo mkdir -p $bottlePath/etc/apt/preferences.d/
sudo cp -rv .github/workflows/90bookworm-backports $bottlePath/etc/apt/preferences.d/
fi fi
# 配置 git # 配置 git
sudo chroot $bottlePath apt update sudo chroot $bottlePath apt update