在 Debian 下 apt / fetchDebian 下载慢,通常是镜像源太远或被墙/限速导致的。可以按下面思路解决:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo nano /etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free
注意:把
bookworm换成你的版本(如bullseye)
sudo apt update
sudo apt upgrade
sudo apt install apt-fast
之后用:
sudo apt-fast update
sudo apt-fast install xxx
ping mirrors.tuna.tsinghua.edu.cn
如果你有代理:
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
223.5.5.5)apt-get 代替图形工具如果你能说一下:
apt 还是 fetchDebian 工具我可以给你更精确的配置。