Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a full ubuntu mirror located on the server

In my preseed.cfg file, I have the following d-i config for selecting my country mirror:

d-i mirror/country string manual 
d-i mirror/http/hostname string
d-i mirror/http/directory string /ubuntu
d-i mirror/http/mirror select

I can tail my access_log file to see that my preseed file is being retrieved from the installer, but nothing else. When I look at my network traffic, I am seeing that traffic is going to, and not my local mirror.

If I select "Manual mirror" and specify my mirror server during the guided install, it does use the local mirror, however, any attempt at trying to do this via preseed completely fails.

What should I be placing in my preseed file in order to get the installer to default to my local mirror?

share|improve this question

It seems that distro codename is not set. This is example from working preseed template:

d-i mirror/country string manual
d-i mirror/http/hostname string aptproxy.hostname.tld:3142
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
d-i mirror/codename string natty
d-i mirror/suite string natty

Also, you could pass DEBCONF_DEBUG=5 in kernel init parameters to enable debugging loglevel during preseeded installation. Messages in /var/log/syslog will be more verbose and you could find cause why it is happening.

share|improve this answer
I've changed my preseed config to be like the above, but, it's still using the remote repository. /var/log/syslog doesn't give me a lot of help in debugging it, but, I'll continue to look. – Ian Wilson Jan 22 '13 at 14:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.