canonical / ubuntu-desktop-installer

Ubuntu Desktop Installer
GNU General Public License v3.0
536 stars 94 forks source link

Install fails when apt can't update #2349

Open jbicha opened 11 months ago

jbicha commented 11 months ago

What happened?

The install fails when the system has an IP Address through a network connection but the network connection does not actually include Internet access.

What was expected?

Checking whether the network has Internet connectivity may be a good idea.

However, it is possible for a machine to have Internet connectivity but still not be able to reach the apt repos. This should not fail the install; it should skip the steps that require an apt update or apt install of things not provided on the ISO.

Steps to reproduce

No response

Additional context

Originally reported with logs at https://launchpad.net/bugs/2037008

seb128 commented 11 months ago

subiquity is doing mirror probing to verify that the connection is working and if it's not it flags an error. The desktop frontend doesn't do anything today to handle those cases.

There was a discussion in 'FO088 - More robust APT mirrors management in Subiquity' about what we should do from the desktop installer perspective, our options are basically

I'm unsure what's best. My input on the spec at the time was to let the installation fail but that's not a nice user experience so in retrospect I wonder if we should just fallback to offline mode and let the installed system not match the selected options...

bittin commented 9 months ago

Had this issue earlier today too when trying to install the 1th December 2023 image and the apt mirror at ftp.acc.umu.se had not synced up yet discussed this with @jpnurmi some months ago in the Ubuntu Flutter Discord too so would be good if it can fallback to another mirror or use archive.ubuntu.org when the mirrors are not synced yet?