0

I am trying to automate the install of Ubuntu Desktop, along with some packages (which will have dependencies that would also need to be included). The catch is that the target system will be offline, with no access to remote apt repositories. I created an unattended install of Ubuntu 18.04.1 Desktop, following this tutorial. Then, I tried to follow this tutorial to get a local apt repository baked into the .iso, with no luck - many steps seemed to be skipped in the tutorial. Has anyone had any luck doing something like this before, or would I be better off trying to clone an existing online ubuntu instance with all of the packages installed already?

  • Do you have any suggestions for cloning software? I am close to where I want to be with preseeding, but cannot seem to get the packages in /pool/extras to be visible to the OS. I followed the "Offline Installation" section here: https://askubuntu.com/questions/409607/how-to-create-a-customized-ubuntu-server-iso

    When I 'sudo apt install ', I get 'E: Package X has no installation candidate'

    – AWoodman Sep 11 '19 at 17:37
  • I discovered my issue. I needed to add my local repository to the /etc/apt/sources.list file like this:

    deb [trusted=yes] file:<path/to/local/repo> ./

    – AWoodman Sep 12 '19 at 15:14
  • Wonderful! You should add that as a real Answer (it is) so folks in the future can benefit. – user535733 Sep 12 '19 at 15:51

1 Answers1

0

I discovered my issue. I needed to add my local repository to the /etc/apt/sources.list file like this:

deb [trusted=yes] file:<path/to/local/repo> ./

The way to do this with preseeding was to add this to the preseed file:

d-i apt-setup/local0/repository string deb [trusted=yes] file:/opt/extras ./