preseed fails to add custom repos with apt-setup/local0/repository in xenial

Bug #1566757 reported by LoOoD
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
debian-installer
New
Undecided
Unassigned
debian-installer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The sources file is being written incorrectly during the preseed process. Its failing to prefix the last line in the sources.list file with "deb ".

This is what we have in our preseed for xenial

# Aptly Mirror / Custom Packages
d-i apt-setup/local0/repository string deb http://aptly.internal/internal/company/ xenial main
d-i apt-setup/local0/source boolean false
d-i apt-setup/local0/key string http://aptly.internal/internal/company.gpg
# Aptly Mirror / puppetlabs repos
d-i apt-setup/local1/repository string deb http://aptly.internal/internal/puppetlabs-xenial/ xenial main dependencies
d-i apt-setup/local1/source boolean false
d-i apt-setup/local1/key string http://aptly.internal/internal/company.gpg

LoOoD (gman)
affects: nsd (Ubuntu) → debian-installer (Ubuntu)
Revision history for this message
catsem (csc03) wrote :

I can confirm this bug. Happens to me if I try to preseed install Ubuntu Xenial (with Foreman). The bad news is, that the install fails because apt is unable update (with the error in sources.list) and so no packages for kernel etc. can be found. For me that means I cannot use Xenial at the moment (if I cannot use preseed install it makes no sense on an LTS release).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in debian-installer (Ubuntu):
status: New → Confirmed
Revision history for this message
catsem (csc03) wrote :

To say it clear once again... This issue disqualifies Ubuntu xenial from professional usage at the moment. Why is this Bug ignored? Could you please at least set an importance Level?

Revision history for this message
Octavi Pavon (octavi-t) wrote :

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

Revision history for this message
catsem (csc03) wrote :

@Octavi
Well, you found a workaround.
We are using a template based preseed file with the installation managment tool foreman (theforeman.org).
And we have different debian/ubuntu versions in our environment...
I don't wanna script a workaround for every new os version because of new nasty bugs...
A dev involved in this projekt would have fixed it in 10 mins. Maybe the one who broke it even faster ;-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.