# aptitude download
# dpkg --unpack *.deb
# rm -f /var/lib/dpkg/info/.postinst
# dpkg --configure
# apt-get install -yf
==== APT socks5 proxy ====
# cat /etc/apt/apt.conf
Acquire::http::proxy "socks5h://127.0.0.1:1080";
$ ssh -R 1080 server