ubuntu离线下载dep包,下载所有依赖包


  下载python 及所有依赖:
for i in $(apt-cache depends python | grep -E 'Depends|Recommends|Suggests' | cut -d ':' -f 2,3 | sed -e s/'<'/''/ -e s/'>'/''/); do
    sudo apt-get download $i 2>>errors.txt
done
安装:
sudo dpkg -i *

原文链接:https://blog.csdn.net/zgp210317/article/details/120586189