sudo apt-get update
sudo apt-get autoremove
sudo apt-get purge
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get autoremove --purge
增加国内镜像源 /etc/apt/sources.list
debian | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb <https://mirrors6.tuna.tsinghua.edu.cn/debian/> bookworm main contrib non-free non-free-firmware
# deb-src <https://mirrors6.tuna.tsinghua.edu.cn/debian/> bookworm main contrib non-free non-free-firmware
deb <https://mirrors6.tuna.tsinghua.edu.cn/debian/> bookworm-updates main contrib non-free non-free-firmware
# deb-src <https://mirrors6.tuna.tsinghua.edu.cn/debian/> bookworm-updates main contrib non-free non-free-firmware
deb <https://mirrors6.tuna.tsinghua.edu.cn/debian/> bookworm-backports main contrib non-free non-free-firmware
# deb-src <https://mirrors6.tuna.tsinghua.edu.cn/debian/> bookworm-backports main contrib non-free non-free-firmware
deb <https://security.debian.org/debian-security> bookworm-security main contrib non-free non-free-firmware
# deb-src <https://security.debian.org/debian-security> bookworm-security main contrib non-free non-free-firmware
服务内设置停止:
sudo gitlab-ctl stop
停止并删除服务
sudo systemctl disable gitlab-runsvdir
sudo rm -f /run/systemd/system/gitlab-runsvdir.service
sudo rm -f /lib/systemd/system/gitlab-runsvdir.service
sudo systemctl daemon-reload
systemctl list-units --type=service | grep gitlab
sudo reboot
sudo apt-get remove --purge gitlab-ee