利用dpkg -l 和 apt download
dpkg -l | awk ‘{print $2}’> /tmp/deblist
编辑deblist文件,去掉无用的行
mkdir all_deb cd all_deb cat /tmp/deblist | xargs apt download