mkdir /debs/archives/
cp /var/cache/apt/archives/* /debs/archives/
cd /debs
apt-ftparchive packages archives >archives/Packages
cd archives/
gzip -c Packages > Packages.gz
touch release
apt-ftparchive release ./ >Release
修改sources.list文件
cp /etc/apt/sources.list /etc/apt/sources.list.ali
echo "deb [trusted=yes] file:/debs archives/ " >/etc/apt/sources.list
apt-get update
apt-get -f install -y #解决依赖关系