How many of us ran into a problem of how to easily install a package with dependencies, when you don’t have an internet connection or offline Ubuntu repository available.
To use the following technique, you will need an identical (or nearly identical system) with internet connection to allow automatic download of the required package along with all dependencies:
To download the package with dependencies use:
mkdir -p ~/temp/archives/partial
apt-get -d -o dir::cache=~/temp -o Debug::NoLocking=1 install <YOUR PACKAGE>
Copy all deb files from your ~/temp/archives to the target machine