Comment 6 for bug 2004659

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote : Re: failed to install efi packages, not in pool, bad apt config

Wow amazing debugging. What a mess.

A little further digging shows that the crazy high metric is related to connectivity checking: networkmanager adds a 20000 "penalty" to interfaces until they have demonstrated connectivity by accessing http://connectivity-check.ubuntu.com./ successfully. It's unfortunate (and maybe slightly hilarious) that this approach runs straight into the libnl-route issue you found.

Your proposed change sounds reasonable. I guess we should ignore routes that have a metric over 20000.

I wonder how all this interacts with the changes ogayot is making around mirror checking. After all, when that is done we'll know if the configured archive is accessible, which is the most consequential decision hooked on the value of has_network today. I guess we probably don't even try to configure a mirror if has_network is false so we do want to get this right.