你提到的 fetchdebian 可能是指下面几种情况之一,我分别说明:
fetch 或脚本从 Debian 仓库下载 .deb 包apt download(最推荐)sudo apt update
apt download 包名
例如:
apt download curl
会下载 curl_*.deb 到当前目录。
wget / curl 从 Debian 镜像下载先查包地址:
apt-cache madison 包名
然后:
wget http://deb.debian.org/debian/pool/main/c/curl/curl_*.deb
目前 Debian 官方并没有叫 fetchdebian 的标准工具,可能是:
debget(第三方工具)sudo apt install debget
debget 包名
apt-get download(本质同上)apt-get download 包名
例如用 JavaScript / Python:
import urllib.request
url = "http://deb.debian.org/debian/pool/main/c/curl/curl_7.88.1-10+deb12u5_amd64.deb"
urllib.request.urlretrieve(url, "curl.deb")
fetchdebian ≠ apt.deb 不在 GitHub release,而在 Debian pool 目录如果你能具体说:
我可以给你更精确的方法。