omap install ends up with security.ubuntu.com urls in sources.list after install

Bug #566639 reported by Oliver Grawert
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-setup (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

after successful installation on a beagle C4 board security.ubuntu.com is used in the sources.list file instead of ports.ubuntu.com for the security updates.

ogra@beagleC4:~$ grep security /etc/apt/sources.list
# deb http://security.ubuntu.com/ubuntu lucid-security main restricted
## review or updates from the Ubuntu security team.
## security team.
## or updates from the Ubuntu security team.
deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

Tags: bitesize armel
Revision history for this message
Oliver Grawert (ogra) wrote :
tags: added: armel
Revision history for this message
Loïc Minier (lool) wrote :

Is this specific to beagle?

How did you install? which image

Revision history for this message
Paul Larson (pwlars) wrote :

I did an install on imx51 just a few days ago and did not see this bug there

Revision history for this message
Oliver Grawert (ogra) wrote :

looking at the apt-setup code i found the following in generators/91security:

# Awful Ubuntu-specific hack. *-security suites for ports architectures
# aren't available on security.ubuntu.com, only on ports.ubuntu.com.
if [ "$host" = security.ubuntu.com ]; then
        db_get mirror/protocol
        protocol="$RET"
        db_get mirror/$protocol/hostname
        if [ "$RET" = ports.ubuntu.com ]; then
                host="$RET"
                db_get mirror/$protocol/directory
                directory="$RET"
        fi
fi

my install was using a local mirror so ports.ubuntu.com can nowhere be matched in debconf data

Revision history for this message
Oliver Grawert (ogra) wrote :

probably using archdetect would be a better approach in this code snippet

Revision history for this message
Oliver Grawert (ogra) wrote :

@lool: i was following https://wiki.ubuntu.com/ARM/BeagleNetInstall (but with local mirror as mentioned)

Revision history for this message
Colin Watson (cjwatson) wrote :

Oh, local mirror. This is awkward because I don't want to hardcode the list of ports architectures in lots of different places. Can we defer this to Maverick please, since if you're using a local mirror then you can also preseed apt-setup/security_host and apt-setup/security_path?

Revision history for this message
Oliver Grawert (ogra) wrote :

heh, i definately didnt expect a fix for lucid, else i would have set severity and milestone :)

Revision history for this message
Loïc Minier (lool) wrote :

(I am personally fine deferring this to maverick)

Would it be an option to actually test whether the default security.ubuntu.com mirror supports the target arch to decide to enable it?

Revision history for this message
Colin Watson (cjwatson) wrote : Re: [Bug 566639] Re: omap install ends up with security.ubuntu.com urls in sources.list after install

I can see why you ask that, but it would make the code flow quite twisty
in this case. I would prefer to just have it hooked into
choose-mirror's architecture handling if possible.

Revision history for this message
Tobin Davis (gruemaster) wrote :

While we do not use this install method for currently supported armel images (omap), I can confirm this behavior still is present in natty. This should be addressed next cycle if we plan on supporting more systems.

Changed in apt-setup (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Tobin Davis (gruemaster)
tags: added: bitesize
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments