/srv/irclogs.ubuntu.com/2016/06/22/#ubuntu-installer.txt

fish_hi09:11
fish_having some trouble with our ubuntu installer.. it fails when running apt-install to add a dkms module. in general it seems like however I call apt-install, it always return with code 1 and prints a bunch of whitespaces09:12
fish_phew, finally got strace on that box..09:25
fish_looks like it's reading bunch of cdebconf/ files, like questions.dat09:28
fish_then some "/etc/newt/palette" related things.. sounds like a terminal control issue09:29
cjwatsonCan you post the entire script that calls apt-install here?09:34
cjwatsonTerminal control is a red herring.09:34
fish_iit's just apt-install pm80xx-dkms09:35
cjwatson(An understandable one, but still.)  That's just the effect of apt-install using the debconf confmodule.09:35
cjwatsonI need more context.09:35
cjwatsonLike, where is that script being run?09:35
fish_same on a interactive shell09:35
fish_it's a custom partitioner09:35
fish_but how might that be related? it looks like apt-install always fails with 1 and those empty lines at stdout09:36
cjwatsonBut that's not a failure.09:36
cjwatson(Well, except for the exit code, but that's arguable either way.)09:36
fish_it's expected to print those empty lines?09:37
cjwatsonYes.09:37
cjwatsonThe debconf confmodule clears the screen on startup.09:37
cjwatsonAnyway, red herring!09:37
fish_ah got it09:37
cjwatsonYou're in the partitioner, and apt-install's purpose is to install packages into the target system.  In a partitioner, you don't *have* a target system yet, so apt-install instead queues the package for later installation.09:37
cjwatsonAnd it exits 1 to indicate (a bit crudely) that the package isn't ready for use yet.09:38
cjwatsonYou should see that it has appended the package name to /var/lib/apt-install/queue.09:38
fish_yeah.. I have to say it's not my partitioner but supposently it was working before :)09:38
fish_yep09:38
cjwatsonYou probably just need to do "apt-install pm80xx-dkms || true".09:38
fish_that's true09:38
cjwatsonMaybe something started checking exit codes a bit harder.09:39
fish_hrmm yeah possibly.. but would be interested to know why it's returning 109:39
cjwatsonWell, it's right there in the shell script.09:39
cjwatson        exit 1 # Return error as the package is not ready to be used yet.09:39
fish_oh09:39
fish_well yeah.. that explains it.. interesting breakage though.. pretty sure others ran into this as well09:39
cjwatsonNow, it could be argued either way, but it's pretty established; that code dates back to 2004.09:40
fish_but yes, that happened first time after I upgraded the installer to fix another issue (segfauling wget)09:40
fish_but as you said, some recent change makes something more strict when it comes to checking return codes09:41
cjwatsonNot sure what that would have been, but anyway, apt-install's exit status has always needed to be ignored when run before the target system has an /etc/apt/sources.list.09:41
cjwatsonIf it worked before it was luck :)09:41
fish_it definitely worked before09:42
cjwatsonDepends how the custom partitioner was hooked in, I guess.09:42
fish_but since my former co-worker just added the kernel and initrd as blob to our repo, I have no clue which version it used before ;)09:42
fish_*sigh* such a NIH syndrom project.. this 'custom partitioner' has even it's own partitioning configuration file, similar to partman just a tiny bit easier to understand09:48
fish_cjwatson: but you where totally right. looks like this error checking was introduced on our side09:49
cjwatsonAha!09:49
cjwatsonThat would explain it. :-)09:49
cjwatsonI couldn't think of anything other than main-menu that could possibly have been relevant on our side, and it's hardly changed at all in years.09:50
fish_yeah, it explicitly dies.. just a coincidence that I upgraded the installer yesterday and today saw it the first time.. but we probably haven't reinstalled systems since when this was introduced09:54
fish_which shows nicely why you shouldn't introduce things without testing them..09:55
blutI am looking at the https://wiki.ubuntu.com/Installer/Development/ToDo right now12:21
blutfunny, that I just modified the initrd to set up my network and to run a custom partitioning12:22
blutI was unable to make kickstart and d-i do the work12:22
blutfor the network e.g. I need a dhcp ip and from that one I determine a second IP and only then set up the gateway12:23
blutI will write a documentation on how to do that12:23
flexiondotorgcyphermox, Could you take a look at a merge proposal for me please - https://code.launchpad.net/~ubuntu-mate-dev/ubiquity/mate-compatibility/+merge/29718016:29
flexiondotorgYou might remember that Ubuntu MATE has not been following recommends. Well, I've unpicked that but there is some fallout ;-)16:30
flexiondotorgcyphermox, And this https://code.launchpad.net/~ubuntu-mate-dev/livecd-rootfs/mate-compatbility/+merge/29721916:32
cyphermoxyeah I saw the changes for flipping that16:32
flexiondotorgcyphermox, And also this https://code.launchpad.net/~ubuntu-mate-dev/debian-cd/mate-compatbility/+merge/29722216:32
cyphermoxhrm, firefox is slow when there's so much stuff running at once :)16:33
flexiondotorgBecause cloudtop is not required now.16:33
flexiondotorgChromium.16:33
cyphermoxcloudtop?16:33
cyphermoxoh, I see yeah ok16:33
cyphermoxare you sure for ltsp you don't want to keep cloudtop?16:34
flexiondotorgcloudtop was so similar to desktop.16:34
flexiondotorgAnd desktop and now much smaller.16:35
flexiondotorgIt was for an integrator and they've requested the change.16:35
flexiondotorgSo desktop and cloutop (their term) installs are consistent.16:35
cyphermoxthe ubiquity change looks off, it should already have been working16:35
cyphermox(what I mean by that is this leads to questioning why u-s-d gets pulled in to your images)16:36
flexiondotorgcyphermox, Because authentication plugins eventually require u-s-d.16:36
cyphermoxwell, they should probably grow an alternate depends instead16:37
flexiondotorgAnd having u-s-d on the image is fine.16:37
flexiondotorgI just don't want it to run in ubiquity-dm for the MATE images, because the desktop/font settings are all weird.16:37
cyphermoxwell, if it's unnecessary and doesn't run...16:37
flexiondotorgu-s-d does run.16:38
cyphermoxah?16:38
flexiondotorgBut I don't want it to.16:38
cyphermoxright, that's what I mean16:38
cyphermoxif it's not to be running on the image, why include it?16:38
cyphermoxie. the fact that there is a change needed in ubiquity points to that there may be an issue elsewhere.16:39
flexiondotorgcyphermox, Because the authentication plugins require it. And there is no alternative to satisfy that dependency.16:39
cyphermoxwhat are these authentication plugins?16:40
flexiondotorglibaccount-plugin-1.0-016:42
flexiondotorgWhich Recommends: Recommends: unity-control-center-signon16:43
flexiondotorgWhich Depends: unity-control-center16:43
flexiondotorgI have temporarily removed the packages (plugins for shotwell) from the seeds and meta packages to prevent this happening.16:44
cyphermoxok16:44
flexiondotorgAnd I also have this merge proposal - https://code.launchpad.net/~ubuntu-mate-dev/indicator-session/mate-compatibility/+merge/29718316:45
cyphermoxwhat pulls in libaccount-plugin-1.0-0?16:45
flexiondotorgaccount-plugin-facebook -> libaccount-plugin-generic-oauth -> libaccount-plugin-1.0-016:46
flexiondotorgAnd other account-plugin-* packages do the same.16:46
cyphermoxand what pulls in account-plugin-facebook?16:47
flexiondotorgShotwell suggests it.16:48
flexiondotorgAnd if included allow photo to be uploaded to your Facebook account.16:48
cyphermoxwhat I'm getting at here is that the who dependency chain looks odd -- all these account-plugin-* are Ubuntu Online Account things that probably don't belong at all (and won't work) if you don't install u-s-d16:48
flexiondotorgWhich I'd like to include because, as far as my wife is concerned, Internet ~= Facebook16:49
flexiondotorgRight, I do want u-s-d installed. Because as you say without it, those plugins don't work.16:49
cyphermoxwell you don't really need to care about things shotwell recommends16:49
flexiondotorgThere is no UI for Shotwell to authenticate with "whatever"16:49
cyphermoxflexiondotorg: if it's not *running*, I'm doubtful they will work any better.16:49
flexiondotorgBy seeding account-plugin-facebook, u-s-d is on the live image.16:50
cyphermoxyes, I know that16:50
flexiondotorgAnd when ubiquity-dm starts, it prefers u-s-d.16:50
cyphermoxit doesn't matter16:50
cyphermoxif u-s-d isn't running on the installed system, I don't think you'll be able to login to facebook to push photos from shotwell16:51
cyphermoxbut it looks like sufficient justification for the ubiquity change, I'm not here to dictate what you can or can't or shouldn't have on your image, just to plant the seed of doubt and make sure a ubiquity change isn't pure crack ;)16:52
cyphermoxI will leave debian-cd to infinity to review, or someone else on the ubuntu-cdimage team.16:54
flexiondotorgcyphermox, OK, thanks.16:54
=== slashd is now known as slashd|brb
=== slashd|brb is now known as slashd
=== danjared_ is now known as danjared

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!