/srv/irclogs.ubuntu.com/2015/10/10/#ubuntu+1.txt

BluesKajHiyas all10:55
tsimonq2!info vlc12:10
ubottuvlc (source: vlc): multimedia player and streamer. In component universe, is optional. Version 2.2.1-3 (wily), package size 1461 kB, installed size 4450 kB12:10
tsimonq2so it IS a package12:10
tsimonq2when I do sudo apt-get install vlc, it says E: Unable to locate package vlc12:11
tsimonq2can anyone help?12:11
lordievadertsimonq2: Is the universe repo enabled?12:12
tsimonq2let me pastebinit my sources.list for ya12:13
tsimonq2lordievader: I am assuming it is, right? http://paste.ubuntu.com/12734317/12:14
lordievadertsimonq2: Universe is enabled, what does 'apt-cache search vlc' output?12:15
tsimonq2with sudo?12:15
lordievadertsimonq2: No need for sudo.12:15
tsimonq2the output: http://paste.ubuntu.com/12734335/12:16
lordievadertsimonq2: Interesting, what is the output of 'sudo apt-get update'?12:16
tsimonq2lordievader: http://paste.ubuntu.com/12734346/12:17
tsimonq2lordievader: and if it helps, I am running in i38612:18
lordievadertsimonq2: Now run the apt-cache search again.12:18
tsimonq2lordievader: http://paste.ubuntu.com/12734355/12:18
tsimonq2woah12:19
lordievaderThere we go, your sources were outdated.12:19
tsimonq2was it *really* the fact that I didn't update my repo list12:19
tsimonq2wow fail XD12:19
* tsimonq2 facepalms12:19
tsimonq2well thank you12:19
lordievaderNo problem ;)12:19
tsimonq2see you over in #kubuntu-offtopic ;)12:20
bcxHas been libreoffice-style-crystal removed from wily ?12:57
baizonhi, any troubles with 15.10?13:55
baizonor can i upgrade? :D13:55
bcxAnyone succeeded a wily luks-root ? I got KP trying in virtualbox.15:40
TJ-bcx: I use LUKS for /boot/ and for the root LVM VG15:45
bcxgreat, did you install with cd ot manual debootstrap ?15:46
bcxTJ:- i use deboostrap to build systems on virtualbox, when using cryptoroot initramfs hook I got KP related to innotek (virtualbox) input device (keyboard ?) ?15:48
TJ-I do it myself usually, but I tested the installer in a VM and it worked15:48
TJ-bcx: that sounds unrelated to LUKS; that sounds like a missing/bad module in the initrd15:49
bcxTJ-:  building without cryptoroot succeeds15:50
TJ-bcx: can you capture the output to a pastebin?15:50
TJ-bcx: do you get the systemd-cryptsetup prompt for the LUKS pass-phrase?15:51
bcxTJ-: I can use serial console on virtualbox15:51
TJ-bcx: I use a key-file so don't have to enter a pass-phrase15:51
bcxTJ-:  i love passwords15:52
bcxonly stored on my biological ram :)15:52
TJ-I only have to enter the passphrase for GRUB to unlock its root file-system15:52
bcxah ok15:53
bcxmy installer script supports prompting either in grub or initramfs, i remember that both failed but will retry15:54
bcxwill be back with logs in an hour or so, thanks TJ-15:55
* penguin42 wonders what gpu-manager is and wth it took 16s according to systemd-analyse16:17
TJ-It's the tool for trying to ensure the correct drivers are in place, especially when Optimus chipsets are present16:45
bcxTJ-: retried with serial console but I got interesting initramfs shell code on the real tty just before the KP, can it be redirected to serial ?16:49
bcxTJ-: https://paste.debian.net/315269/16:51
bcxon real tty i can see 'echo "Somtehing went badly wrong in the initramfs"', 'panic "please file a bug on initramfs-tools"'16:53
penguin42TJ-: Yes, but the interesting question is why it took 16s to figure out that my boring old intel doesnt16:55
TJ-bcx: "Spurious NAK" - suggests the Vbox devices are causing an issue16:55
TJ-penguin42: "/var/log/gpu-manager.log" maybe?16:55
bcxTJ-:  yes but here it talking about the serial link, not sure I get the same msg w/o serial console16:55
TJ-bcx: does the guest have some vbox 'guest extensions' installed?16:55
bcxTJ-:  not sure16:56
TJ-bcx: oh, you mean the serio0 is the Vbox serial console as seen from the guest?16:56
bcxi think so16:56
penguin42TJ-: Nothing incorrect in there16:58
TJ-penguin42: doesn't help there are no timestamps!16:58
bcxwhen i boot normally and use pause I can see a full shell script sources outputed on real tty16:59
TJ-bcx: you see the *source code* of a script?16:59
bcxand finally KP not syncing: Attempted to kill init16:59
bcxTJ-: yes16:59
TJ-bcx: is each line preceeded with "+" symbols?17:00
penguin42TJ-: Right, but there are timestamps in the journalctl -u   and that does show it taking 14 seconds17:00
TJ-penguin42: can you use those to determine which gpu-manager operation took most of the time?17:01
penguin42TJ-: No17:01
penguin42TJ-: There are 4 moans of /etc/modprobe.d is not a file17:02
TJ-penguin42: the biggest timestamp gap I see is after "Started Detect the available GPUs and deal with any system changes."17:02
TJ-penguin42: 6 seconds here17:02
penguin42TJ-: the other log mentioned grepping dmesg for 256=0  which sounds expensive17:02
* penguin42 would love to paste you the contents from mine, but konsole just doesn't want to do a copy today - sigh17:04
bcxTJ-: no it it is really sources, not set -x output17:04
TJ-penguin42: Personally I'd purge it: "gpu-manager -h" ==> "Segmentation fault (core dumped)"17:05
TJ-bcx: so something is bad with the initrd.img then, rebuild it, test again17:05
TJ-penguin42: apparently you can run it manually. maybe do that and see if it pauses between messages17:06
penguin42TJ-: Yeh, it shouldn't take 6 seconds for you either - this machine is a crusty old core2 so I can see it taking longer, but 6 seconds during boot is still insane17:07
TJ-penguin42: doesn't mean it is doing anything. It might be waiting from something to become available17:08
TJ-penguin42: running it manually there is no pause17:09
penguin42TJ-: That should be a dependency in the systemd config file for though shouldn't i17:09
penguin42TJ-: Yeh similarly it's under a second here from a running system17:09
TJ-penguin42: it starts when the DM is starting, so it is probably waiting for X or something17:10
penguin42ls17:14
penguin42oops17:14
penguin42TJ-: It's a bit grim; C file spawning off a dmesg|grep to grep for pci ids17:16
TJ-dmesg isn't large, so that shouldn't take a long time, unless dmesg is full of spam/errors17:19
penguin42yeh only 880 lines17:21
=== not_phunyguy is now known as phunyguy
bcxTJ-: is there a simple way to pipe initramfs output to serial ?21:10
bcxTJ-:  is there a simple way to debug initramfs other than adding 'set -x' in all scripts and 'read' for timing ?21:11
bcxTJ-: i'm not sure 'read' will receive stdin and interrupt execution21:12
TJ-bcx: no, but you can use the maybe_break XXXX hooks with break=XXXX to bisect which 2 points the problem stems from21:13
TJ-bcx: see "/usr/share/initramfs-tools/init" which is the /init script21:13
clivejohas mencoder been removed from wily?21:24
TJ-apparently21:29
clivejoTJ-: know why?21:29
TJ-It was removed for Utopic21:31
clivejofor why?21:32
TJ-No idea; from a browse on packages.ubuntu.com it looks like when mplayer was replaced by mplayer221:34
=== trism_ is now known as trism
=== trism is now known as trism_
=== trism_ is now known as trism
=== trism is now known as trism_
=== qengho_ is now known as CardinalFang
=== trism_ is now known as trism
=== Termana_ is now known as Termana
bcxTJ-:  as i said previously i get irfs' init output to screen instead of being executed21:48
TJ-bcx: that makes no sense at all. The only way I could imagine that happening would be for some strange kernel commandline or corrupted /init21:50
bcxi bet for the later21:51
penguin42if it's getting as starting systemd I think there's a command line option to debug it21:52
TJ-bcx: it sounds as if it is 'cat'ing itself21:52
bcxTJ-: i replaced all maybe_break calls with panic and cannot break in before21:52
bcxi can try to add an interrupt at the very top to check if init gets called21:53
TJ-bcx: replaced?21:53
bcxin the init script21:54
bcxso i don't think it's self-cating or if it does it's before the first maybe_break call21:55
TJ-bcx: I'm struggling to understand why you'd change those 'maybe_break XXX' lines21:56
bcxnow i will try with 'read -p hello' as init first line21:57
bcxTJ-: for debugging that way if the init file was executed i could figure out the script part causing this21:57
bcxbut as i said i don't think init gets executed21:58
TJ-bcx: if you're messing with the script directly theres likelyhood you've broken it.21:58
TJ-bcx: the kernel will execute "/init", see the she-bang in line 1, and load it via the shell21:59
bcxeach time i restart from the virtualbox snapshot with initial configuration21:59
TJ-the she-bang is a 'magic' that bintfmt recognises21:59
TJ-s/bintfmt/binfmt/22:00
bcxsame thing,22:02
bcxnow i will paste a very long recognizable pattern into the init file so i can catch it with pause22:03
bcxin case the irfs executed is not the one i debug22:03
TJ-bcx: the initrd name will be in the boot-loader entry22:04
bcxTJ-: can i customize the name to be sure ?22:06
TJ-bcx: it should be correctly set by update-grub if you use GRUB. the name will match the kernel version22:06
bcxas i have a unique kernel on this system I will use my simple technique: put 10k dash lines in the init file and catch it22:08
bcxcaught22:09
bcxso i can confirm my issue: i got init script output to the console instead of executed22:10
penguin42that's really weird22:10
bcxi use the same script to build ubuntu systems and it works flawlessly with trusty & vivid22:12
bcxit has nothing release specific except debootstrap --keyring=/etc/apt/trusted.gpg for wily22:13
bcxthis issue may come from grub22:14
bcxwhich i use like you with cryptomount  command22:14
TJ-bcx: "dd if=/boot/initrd.img-$VERSION count=1 | hexdump -C | pastebinit"22:16
bcxhttps://paste.debian.net/315296/22:20
TJ-bcx: that's not a valid initrd image22:21
bcxTJ-: lsinitramfs can parse it22:21
bcxwhat's the problem ?22:22
TJ-bcx: does it have a microcode header ?22:22
bcxi don't know what are you talking about22:22
TJ-initial ramdisk images can contain binary prefixes containing microcode updates the kernel needs to apply before the init system starts22:23
penguin42cool didn't know that22:23
penguin42TJ-: Is that just to cope with the transactional hack on haswell?22:24
bcxTJ-: how can i check/disable this ?22:25
TJ-penguin42: it's a generic mechanism, but is currently being used for such things22:26
TJ-bcx: The thing is, that should not cause what you are experiencing but I suspect it is. I compared your hexdump with one on my 4.2.x system and they look different22:26
TJ-bcx: I have a script I use to extract initrd images for inspection. Try it: https://iam.tj/projects/misc/initrd-extract.bash22:30
TJ-bcx: usage for a single initrd.img (not all installed) is initrd-extract /boot/initrd.img-$VERSION22:31
TJ-bcx: then hexdump the /init script again lets see if there are some bad magic bytes22:32
bcxpreviously i hexdumped the image not the script22:34
bcxTJ-:  sorry i don't understand22:35
bcxbtw you should add ' && [[ -n "$INITRD_LIST" ]]' to '[[ -z "$1" ]]' in case no image found in /boot22:38
bcxit would fail gracefully22:39
penguin42bcx: Did you say you've got a special kernel build?22:39
TJ-I've never needed it on a system that doesn't have initrd.img s :)22:40
bcxi use standard trusty livecd with zfs-native ppa modules22:40
bcxTJ-: i did ;)22:40
TJ-bcx: once the script has extracted the initrd correctly (to a directory under /tmp/) you can hexdump the /init script correctly so we can check the magic at the start of the file22:41
TJ-Processing 35551541 bytes of /boot/initrd.img-4.2.0-11-lowlatency22:42
TJ-Skipping 21504 bytes pre-pended early initramfs image (possibly CPU microcode)22:42
TJ-Creating /tmp/initrd.img.8844 for remaining 35530037 bytes22:42
TJ-Processing 35530037 bytes of /tmp/initrd.img.884422:42
TJ-Executing /bin/cat "/tmp/initrd.img.8844"  | /bin/zcat | /bin/cpio --extract --make-directories22:42
TJ-184924 blocks22:42
TJ-Extracted 1481 files to /tmp/initrd/4.2.0-11-lowlatency/22:42
* TJ- blows *raspberries* at the paste warning :)22:42
bcxbut the magic i pasted previously is from the image, not the script22:42
bcxso maybe you want to see the script's magic, instead of the image's one22:43
TJ-bcx: now I can do "hexdump -C /tmp/initrd/4.2.0-11-lowlatency/init | head22:44
TJ-00000000  23 21 2f 62 69 6e 2f 73  68 0a 0a 23 20 44 65 66  |#!/bin/sh..# Def|22:44
TJ-bcx: correct, and the script magic is the important thing we want to see22:44
bcxunderstood22:45
TJ-bcx: if that looks correct then it is possible the early-initramfs image is somehow breaking things22:45
TJ-bcx: how many bytes does my script report it skipping for the early initramfs image?22:46
bcxit's clean22:48
bcxhttps://paste.debian.net/315297/22:49
bcxTJ-: what/where is the "early" initramfs ? new to me22:50
penguin42bcx: You said you were using zfs; on which partitions?22:52
TJ-bcx: it is the first part of the initrd.img, an optional add-on used for loading microcode patches and other things the kernel needs before userspace starts22:52
TJ-bcx: what does this report "file /tmp/initrd/*/bin/{busybox,sh}"22:53
bcxsorry, zfs is not incriminated, i get the same results w/o zfs, here i test with ext4 and no zfs modules22:53
* TJ- suspects a 32-bit kernel and 64-bit userspace22:54
penguin42oh that would be fun22:54
bcxall 6422:55
TJ-It would explain in some weird way the script not being executed, although I have difficulty imagining how that would come about :)22:55
TJ-bcx: I have to suspect your build scripts at this point, something done/not done/done differently22:55
penguin42bcx: If you pass init=/bin/sh  on the command line do you get a shell?22:56
bcxgood test22:56
bcxno22:57
penguin42how does that fail?22:57
bcxsame KP Attempted to kill init22:58
penguin42what's before that line22:58
bcxcannot catch it22:58
penguin42really? That's normally right near the end22:58
bcxcan't see what is before the KP *block*22:58
TJ-penguin42: because that is executed at the termination of the initrd /init script, not in place of it22:59
penguin42oh yeh22:59
TJ-penguin42: the initrd /init script passes that parameter in its final switch_root22:59
penguin42bcx: Try adding boot_delay=50  it will cause all the text output during boot to slow down, maybe you can catch what happens easier?23:01
penguin42increase 50 to taste23:01
TJ-If the initrd /init script is being 'cat'-ed' not executed that suggests the /bin/sh (as in the she-bang magic) is faulty. /bin/sh is usually a multicall entry in a statically linked /bin/busybox23:01
bcxwow using init=/bin/sh i can see its binary code23:01
penguin42that's a weird failure mode23:02
bcxpenguin42: i have busybox-static package installed in my script23:02
penguin42bcx: What exactly is your script doing?23:03
bcxdebootstrap & miniman config with various advanced storage features zfs, crypto, fde23:04
bcxbut in this case no feature23:05
bcxTJ-: will try w/o busybox-static23:06
TJ-bcx: It shouldn't matter, but the usual busybox install is dynamically linked, for some reason23:06
TJ-bcx: can you execute the busybox that was extracted under /tmp/... by my script?23:07
bcxTJ-: no !23:11
penguin42and the error is?23:12
bcxhangs23:12
TJ-bcx: HAHA... so bin/sh will fail too. do "ldd bin/busybox" any missing libraries?23:12
bcx64bit dynamically linked23:12
penguin42you do have the dynamic linker - right?23:13
bcxhttps://paste.debian.net/315298/23:14
bcxshouldn't be static as the package is installed ?23:15
TJ-that pastebin looks to be cut-off early23:16
TJ-here's what I see on 14.04: http://paste.ubuntu.com/12745262/23:17
bcxsorry https://paste.debian.net/315299/23:17
bcxit's a wily system debootstrapped on trusty23:18
TJ-bcx: take a hash of the file in the initrd, compare to the hash of the file in the installed file-system23:18
bcxin the debootstrapped file system i got a static one23:19
bcxwhich i can run23:19
bcxdon't know where this dynamically linked one comes from23:20
TJ-sha1sum bin/busybox /usr/lib/initramfs-tools/bin/busybox23:20
TJ-dc3e621c72cde19593c42a7703e143fd3dad5320  bin/busybox23:20
TJ-dc3e621c72cde19593c42a7703e143fd3dad5320  /usr/lib/initramfs-tools/bin/busybox23:20
bcxhttps://paste.debian.net/315300/23:22
bcxwhere does it come from ?23:22
TJ-is the initrd one even valid?23:22
bcxi can run /mnt/target/usr/lib/initramfs-tools/bin/busybox23:23
TJ-bcx: my hashes came from 14.04; I'll check on 15.10 now23:23
TJ-bcx: so, that suggests the one in the initrd is bad/corrupt23:23
bcxof course23:24
bcxbravo TJ-23:24
TJ-$ sha1sum /tmp/initrd/4.2.0-11-lowlatency/bin/busybox /usr/lib/initramfs-tools/bin/busybox23:24
TJ-c90333979f56f38bbd41b81806015b0de502f3cc  /tmp/initrd/4.2.0-11-lowlatency/bin/busybox23:24
TJ-c90333979f56f38bbd41b81806015b0de502f3cc  /usr/lib/initramfs-tools/bin/busybox23:24
TJ-which matches you installed package, but not the initrd23:24
penguin42still, that sha matches another one23:28
penguin42https://wiki.strongswan.org/projects/strongswan/wiki/IMA/923:28
penguin42so it's apparently an old /bin/sh23:29
penguin42whether that's actually a busybox I don't know23:29
TJ-you're mixing them up. That is the 14.04 busybox23:29
TJ-the one that is corrupt is fce342dd3fce6e0e3ba88e4249cb7a210a42844a23:29
TJ-as listed at https://paste.debian.net/315300/23:29
penguin42oops yes23:30
bcxthe sha is preserved with update-initrd23:31
bcxupdate-initramfs i mean23:31
TJ-I'd best start winding down for sleep; I'm out to catch the last flight of the XH558 Vulcan tomorrow23:31
TJ-bcx: did you recreate the initrd, or update it?23:31
penguin42ah, I think I missed that here today since I didn't know it was around23:31
bcxthank you TJ-23:32
TJ-penguin42: I almost did but noticed it Friday night23:32
bcxpenguin42: -c -k all23:32
TJ-bcx, so is there some corruption being introduced? does adding '-v' to capture a verbose log show where that busybox is coming from?23:32
penguin42some junk under /etc/initramfs-tools or the like?23:33
bcxhttps://paste.debian.net/315300123:33
TJ-I still maintain the symptoms suggest that /init is being 'cat'-ed - what's that chance that sha1sum matches the hash for the /bin/cat ?23:34
penguin42so it does!23:34
bcxthen https://paste.debian.net/315300223:34
penguin42fce342dd3fce6e0e3ba88e4249cb7a210a42844a  /bin/cat23:34
TJ-HAHA! catch!23:35
* penguin42 blames it on caturday23:35
TJ-bcx: there you go; something in your config is putting /bin/cat in there23:35
TJ-LOL23:35
bcxzz-busybox-initramfs hook ? https://paste.debian.net/315300223:36
penguin42bad link23:37
TJ-no, he just types too many zeros in them :)23:38
TJ-bcx: add "set -x" to zz-busybox-initramfs23:39
penguin42oh23:39
TJ-bcx: I don't think its that because the script is doing links, but best to be sure23:39
bcxhttps://paste.debian.net/31530423:41
penguin42bcx: sha1sum /usr/lib/initramfs-tools/bin/busybox23:43
TJ-that looks fine, although I don't know why it uses symbolic links since cpio archives cannot preserve those, and end up adding 2 copies of the multicall binary23:43
TJ-penguin42: from earlier:23:44
TJ-root@ubuntu:~# sha1sum /mnt/target/usr/lib/initramfs-tools/bin/busybox23:44
TJ-c90333979f56f38bbd41b81806015b0de502f3cc  /mnt/target/usr/lib/initramfs-tools/bin/busybox23:44
TJ-in https://paste.debian.net/315300/23:44
penguin42hmm23:44
bcxwat is copy_exec23:44
TJ-bcx: a helper function23:45
bcxdefined where ?23:45
TJ-in the initramfs-tools hook script23:45
TJ-bcx: before we get sidetracked, have you checked both bin/sh and bin/busybox from the initrd?23:45
bcxhoolk-functions23:45
TJ-bcx: if bin/busybox --version works but bin/sh --version doesn't we know its not directly a zz-busybox-... issue23:46
TJ-bcx: here's a nice way to figure out if things changed: "ls -latr bin/" ... all the busybox tools should be identical in size to bin/busybox itself23:50
bcxhttps://paste.debian.net/315307 copy_exec with set -x  if $2==/bin/busybox23:51
TJ-bcx: that may reveal other executables aren't in fact from BB23:51
TJ-bcx: if bin/sh is actually /bin/cat then I reckon there's a script doing a complex shell replacement parameters operation that is failing and ending up doing "cp /bin/cat /target/.../bin/sh" instead of something like "cp $(...something...cat...) /target/.../bin/sh"23:54
bcx--version is ok23:54
bcxit's hanging when called with no arguments23:55
penguin42the thing is if they're all linked together because they're all busybox, how does cat end up being different23:55
penguin42oh it isn't, it's they're all cat23:55
bcxbusybox misinterprets $023:55
TJ-hooks/klibc:28:         cp -pL /usr/lib/klibc/bin/sh ${DESTDIR}/bin/sh23:56
bcxhttps://paste.debian.net/31530823:56
TJ-penguin42: they're not linked together, that's the point. cpio archives cannot represent symbolic links, so it ends up as a copy operation, so we have loads of supposed identical binaries with different names, except right now bin/sh is not the same binary as busybox, its /bin/cat23:57
TJ-bcx: it's looking like some other script is running AFTER zz-busybox23:58
TJ-bcx: klibc being the candidate23:58
bcxyes !23:58
bcxi have /etc/initramfs-tools/hooks/copy-cat.sh23:59
TJ-bcx: can you show us the entire log of update-initramfs, rather than an extract?23:59

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