I'm trying to set up a preseed configuration for Ubuntu 14.04 network installation from the example on the official documentation. I am affected by the proxy bug on choose-mirror. I'm using an
apt-cacher-ng proxy. Due to this, adding a local repository fails, as the key cannot be downloaded through the
apt-cacher-ng proxy. Usually I get an error about the key itself. Then I tried using a random gpg key from the mirror specified in
apt-cacher-ng backend (
in.archive.ubuntu.com, in this case). The error about the key vanished (at least the related prompt didn't appear), but the local repository was still not added, even though I had set:
d-i debian-installer/allow_unauthenticated boolean true
Using my campus mirror directly, thus avoiding the proxy, throws up an error about
grub-pc failing to install (perhaps due to some problem with the mirror?).
What can I do use both the cacher and the local repository together? I can think of the following possibilites:
apt-cacher-nghas an option to let some domains/urls slide, instead of outright rejecting them.
debian-installerhas a way to use the local repo without a key.
debian-installerhas a question for more specific proxy settings (e.g., only for
- Install one package by itself (which contains the key for the repository and a
d-istarts installing packages.
wgetthe key and the list entry directly and add it, do
apt-get updateand other package installation via script in post install.
- Find some way to fix the
grub-pcerror when using the local campus mirror directly.