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?
Asked
Active
Viewed 1,015 times
1 Answers
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 ./

AWoodman
- 1
When I 'sudo apt install', I get 'E: Package X has no installation candidate'
– AWoodman Sep 11 '19 at 17:37deb [trusted=yes] file:<path/to/local/repo> ./
– AWoodman Sep 12 '19 at 15:14