I found a solution that works for me: By default in xenial documentation:
d-i apt-setup/local0/repository string http://local.server/ubuntu xenial main But only adding word "deb" before the URL it works: d-i apt-setup/local0/repository string deb http://local.server/ubuntu xenial main -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1566757 Title: preseed fails to add custom repos with apt-setup/local0/repository in xenial To manage notifications about this bug go to: https://bugs.launchpad.net/debian-installer/+bug/1566757/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs