How to install packages offline using ubuntu 14.04.3 kickstart

644 Views Asked by At

I am trying to install additional packages in ubuntu using kickstart (without internet). I am currently using dpkg -i /location/to/mydeb/*.deb . The installer runs but fails to install packages. If i run apt-get install -f (without internet) post installation of ubuntu, everything works. Any help would be appreciated.

I am following this tutorial with some changes - http://gyk.lt/ubuntu-14-04-desktop-unattended-installation/ and little help from here - https://jack6liu.wordpress.com/2014/12/28/how-to-customize-ubuntu-14-04-installation-c/

Only difference is i wanna install some packages offline, so i put them with iso and run dpkg -i /media/cdrom/mydeb/*.deb in the %post section of ks.cfg

My ks.cfg - https://pastebin.com/vLCcfN3d

1

There are 1 best solutions below

3
On
%post
dpkg -i /location/to/mydeb/*.deb
apt-get -f install
%end