3

I have created a preseed automated installation on my Debian jessie 8, but after installing the base packages, it returns error message error it can not use the

mirror package, please enter hostname another mirror...

But if I select the option to ignore it continues, is there any way to do this automatically via a preseed file?

Thanks

Update: The solution

  • comment all lines referring to apt-setup and add this line

    d-i apt-setup/use_mirror boolean false

  • Obs: Don't remove lines referring to mirror...

    Example block mirror

    d-i mirror/country string manual
    d-i mirror/http/hostname string http.us.debian.org
    d-i mirror/http/directory string /debian
    d-i mirror/http/proxy string
    d-i apt-setup/use_mirror boolean false
2

Just a heads-up that all of the above suggestions do not work for any current Debian or Ubuntu preseeds. You will always be prompted for a mirror, unless you statically define one with something like the following:

d-i mirror/country string manual
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/directory string /ubuntu/
d-i mirror/http/proxy string

There is no combination of other options that will bypass the mirror dialog without choosing a mirror. I've tried hundreds of combinations without luck.

You either choose a mirror and define it statically, or you will be prompted.

1

Try putting this in the preseed.cfg:

d-i apt-setup/no_mirror boolean true

  • my preseed.cfg pastebin.com/4jMDim3M i have add line on the file, put the error persist, – Marcos Carraro Jul 16 '15 at 14:55
  • i have comented all line referente apt-setup and added this line d-i apt-setup/use_mirror boolean false all errors have gone... – Marcos Carraro Jul 16 '15 at 15:02
0

To disable mirrors, the only lines considering mirrors should be:

d-i apt-setup/use_mirror boolean false

And if you also don't want any updates (like security.debian.org), because You will configure those differently after installation and don't want to be interrupted during it if the network is down e.g. use:

d-i apt-setup/services-select multiselect

(without the default security, updates)

Of course you should use a DVD or CD for installation then. To prevent being bothered with dialogue to scan other DVDs, add:

d-i apt-setup/cdrom/set-first boolean false

This should do the trick.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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