FetchDebian 的定位与用途
安装与准备
sudo apt-get update && sudo apt-get install fetchdebiansudo apt updateapt-cache show 包名常用下载与管理操作
fetchdebian 包名(默认下载到当前目录)fetchdebian 包1 包2fetchdebian 包名 -d /path/to/dir(部分版本也支持 -o /path/to/output)fetchdebian -s 包名fetchdebian -b 包名fetchdebian 包名=版本(如:fetchdebian vim=2:8.2.0875-1)fetchdebian 包名 --no-depsfetchdebian 包名 --proxy http://代理:端口fetchdebian 包名 --mirror http://镜像地址/debianfetchdebian -v 包名while read p; do fetchdebian "$p"; done < package_list.txt
fetchdebian --cache-dirfetchdebian -h 或手册页确认。安装与卸载软件的正确方式
sudo dpkg -i 包名.debsudo apt-get -f installapt search 关键词sudo apt install 包名sudo apt upgradesudo apt remove 包名sudo apt purge 包名实用建议与故障排查
apt-cache show 包名 核对版本与依赖,避免下错包或版本不匹配。dpkg -i 或配置本地 APT 源进行安装与升级。--mirror 指定更快的 Debian 镜像,或使用 --proxy 配置代理。dpkg -i 报缺依赖,执行 sudo apt-get -f install 自动补齐依赖;后续建议用 apt 统一管理。/etc/apt/preferences.d/hold.pref),避免被升级策略覆盖。