在Debian系统中,使用fetchdebian
可能会遇到一些常见问题,例如无法获取更新源、DNS解析问题等。以下是一些常见问题的解决方法:
更换镜像源:
sudo gedit /etc/apt/sources.list
或sudo vim /etc/apt/sources.list
deb http://ports.ubuntu.com/ubuntu-ports bionic main
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic multiversedeb
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic restricted
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic universe
sudo apt-get update
解决DNS解析问题:
/etc/hosts
。echo 127.0.0.2 github.com >> /etc/hosts
安装Curl:
sudo apt-get update -y && sudo apt-get install curl -y
刷新DNS缓存:
sudo /etc/init.d/network restart
ipconfig /flushdns
sudo killall -HUP mDNSResponder
希望这些方法能帮助你解决在Debian系统中使用fetchdebian
时遇到的问题。