reynhout / chrx

Chromebook Unix
419 stars 56 forks source link

A couple hiccups/glitches in the Ubuntu install process #83

Open dragon788 opened 4 years ago

dragon788 commented 4 years ago

I noticed that during the install there seems to be an issue installing Chrome occasionally. with a "Connection failed" to the http://dl.google.com/linux/chrome/deb stable InRelease. Actually now that I'm looking at it, most of the sources are using http://, it would be HIGHLY recommended to switch Apt to https:// for everything, as some of the sources (like Google's I'd imagine) actually require https due to HSTS or automatic connection upgrade rules in their server configs.

The other thing I noticed was that there are one or two cases where the steps upgrade a package from the version included in the initial tarball, and if the config has changed significantly between those versions it will prompt the user to make a decision, which breaks the flow of the process, especially if you step away knowing it will take quite some time to install.

To remedy this I'd suggest passing some Dconf options to apt to use the existing configs or replace them if they were the default config of the previous version.

export DEBIAN_FRONTEND=noninteractive ; apt-get install $pkgs -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"

reynhout commented 4 years ago

@dragon788 All good points! I'll test these recommendations and update with any findings. Thanks!