First, the application scenario
Ubuntu You need to install the software or update the system when you are unable to access the Internet
Second, the offline installation package production
in a network that can be normal Ubuntu on the system, install the required packages
$sudo apt-get-d Install XXX
when the installation is complete, the software is downloaded to the /var/cache/apt/archives directory.
Build dependencies
New Catalog
$sudo Mkdir/root/offlinepackage
Copy Deb package to the new directory on
$sudo Cp-r/var/cache/apt/archives/root/offlinepackage
Modify folder permissions, readable writable executable
$sudo chmod 777-r/root/offlinepackage/
Establish Deb Package Dependencies
$sudo dpkg-scanpackages/root/ Offline package//dev/null |gzip >/root/ Offline package/packages.gz
Note: If prompted Sudo:dpkg-scanpackages:command NotFound, you need to install Dpkg-dev Tools
$sudo Apt-get Install Dpkg-dev
Packaged software becomes a compressed package
$tar zcvf/root/offlinepackage.tar.gz/root/offlinepackage/
Third, install the offline package
Copy the offline installation package (the offline package created above) to Root directory under
Configuring the installation Source
$sudo Mv/etc/apt/sources.list/etc/apt/sources.list.bak
Description: Backup installation Source Configuration
$sudo vi/etc/apt/sources.list
Add: Deb file:///root/OfflinePackage/ , save and exit.
Update the installation source
$sudo apt-get Update
Offline installation
$sudo Apt-get Install XXX
Iv. Summary
software compatibility issues, what is the system version of offline installation, what system is used to make the offline package, some software for Ubuntu Server and the Ubuntu Desktop version is not compatible.
This article from "Think you think, no no no" blog, please be sure to keep this source http://joket.blog.51cto.com/3504252/1913765
Ubuntu making an Offline installation package