/srv/irclogs.ubuntu.com/2022/02/11/#ubuntu-server.txt

cpaelzergood morning05:52
cpaelzersquid openssl3 fix migrated to -release \o/06:07
mirespacegood morning07:28
=== kmt_ is now known as hornbill
athosgood morning!09:01
cpaelzerhi athos09:09
athos\o09:09
mirespacehi athos09:14
utkarsh2102hey09:36
utkarsh2102is mysql-server installed by default?09:37
utkarsh2102that's very weird if it is09:37
mirespaceahasenack: it seems all test passed for rsync :)09:39
=== MJCD is now known as MJCDbbl
=== MJCDbbl is now known as ErrMurrJurrCurrD
=== genii-core is now known as genii
=== ErrMurrJurrCurrD is now known as ErrantEg0
Odd_Blokeahasenack: Artifactory's Debian repo type handles generating the indices for the debs you upload: it needs to read the debs for (at least) name and version to do so.17:36
Odd_BlokeSo if you're mirroring zstd debs or uploading your own debs built with a dpkg that uses zstd by default, they'll never show up in your repositories from apt's POV.17:37
ahasenackah, it generates a repo17:38
ahasenackok17:38
ahasenackOdd_Bloke: and is there an update for artifactory? Or this repo type is dead in the water regarding debs that use zstd?17:39
Odd_BlokeThere's been no public communication about them doing anything to support zstd.17:39
Odd_Bloke(And it's closed-source, so no way of knowing if they're working on it or what. ¬.¬)17:40
sdezielthere must be more than just the name and version that is extract because otherwise, that's doable simply by looking at the filename17:40
Odd_BlokeEpochs, e.g., are not represented in the filename.17:41
sdezielright :)17:42
Odd_BlokeYeah, I had some naive code to parse name/version and ended up having to bin it because of things like that.17:43
Odd_BlokeSo I'm only a couple of weeks ahead of you on discovering that. ;)17:43
Odd_Bloke(And, also, there's no restriction on naming in Artifactory, and anyone with upload perms can PUT.  So it can't assume that the filename will match a pattern, or is even accurate to the actual contents.)17:44
=== ErrantEg0 is now known as MJCD
znfso, dumb question20:17
znfI have 2 x Ubuntu 20.04 machines20:18
znfI'm having an issue where one of them only recognizes 2 x DVB cards (with 4 installed), while the other one has 3 installed and they are all working20:18
znffirst I thought it was the hardware itself, as it's a low-end Ryzen 20:18
znfwe swapped mobo/cpu, had the ame issue 20:19
znfI wanted to rule out the OS, so I booted up Windows, all DVB cards were present and accounted for20:19
znfThe 'new' machine with 4 cards was throwing up an error about not being able to register cards 20:20
znfso out of 16 adapters (4 cards x 4 inputs each), it was only registering 8 20:20
znfthe 'new' machine was running 5.13, the 'old' one is running 5.8.0-40-generic #45~20.04.1-Ubuntu20:21
znfso, obviously, because all multimedia stuff is picky, I just install the same kernel that I have running 20:22
znfI reboot, boot into the same kernel, same issue20:23
znfcan't register adapters 20:23
znfI go on and compare modules with modinfo20:23
=== pizza is now known as pizzaiolo
znfand, surprise, the same path has different sigvers20:23
shibbolethcards or dongles?20:24
znfshibboleth, cards20:24
znfhttps://i.imgur.com/7DPyeVH.png20:24
znfleft side was modinfo from the 'working' one, right side was the one with issues20:24
znfbetter screenshot: https://i.imgur.com/qir9fuM.png20:25
shibbolethdunno, how many pcie lanes (not slots, pcie lanes between the cpu and mobo) do each of the systems have?20:26
znfnot relevant, let me finish, sorry for the long story telling20:26
shibbolethalso, the cards show up in windows but are missing in action with linux on the same hw? missing from lspci -vn and lshw?20:27
shibbolethnot relevant?20:27
shibbolethwrong20:27
znflet me finish :)20:27
znfso, at this point, because I'm otherwise out of ideas, I say screw it, I rsync the module tree from the 'old' working machine to the 'new' one 20:28
znfreboot20:28
znfworks20:28
znfall 16 adapters are registered20:28
shibbolethas in /lib/modules? are the cards supported by the mainline kernel or built manually?20:31
znfthey're supported by the mainline kernel 20:31
znfyes, I rsync'd /lib/modules/5.8.0-40-generic/20:31
shibbolethdid you keep the old folder?20:32
znfno20:32
shibbolethwell, it'd be i interesting to compare hashes20:32
znfor, well, kinda yes 20:32
znfI mean, I just rsync'd over20:32
shibbolethwhich wouldn't have actually done anything if the folders/files had the same timestamps and checksums20:33
znfyeah, but they didn't20:33
znfhence why I'm even more baffled20:33
znfthe driver for the tuner is cx23885.ko 20:33
=== pizzaiolo is now known as piz
znfhttps://www.kernel.org/doc/html/v4.9/media/v4l-drivers/cx23885-cardlist.html20:34
znfthe cards are Hauppauge WinTV-QuadHD-DVB20:34
shibbolethwell, obviously one instance was corrupt20:34
znfthe "new" instance... I just installed today 20:34
shibbolethinstance of the module tree20:34
znfye20:34
znfthe 'old' one has been installed months ago20:34
shibbolethrsync wouldn't have done anything if the contents were identical20:35
znfI usually apt mark hold these kind of systems (the kernel modules/versions), because of their fragile nature20:35
shibbolethwas to how, maybe fs/drive corruption. can't really do anything but speculate20:35
shibbolethas to20:35
znfit's probably not -- here's what puzzles me:20:35
znfwhy do the /new/ modules downloaded/installed today have a signature?20:36
znfbut the old ones don't?20:36
shibbolethsecureboot20:37
shibbolethwon't load tampered or otherwise non-signed/corrupted modules20:38
znfhm20:39
znfshouldn't the kernel package be different then?20:39
brycehutkarsh2102, we have php-psr-cache 3 from experimental, and php-psr-container 2 also from experimental, but for php-psr-log we have version 1 from unstable.  Thinking maybe we want php-psr-log 3 from experimental, to go with the others.20:40
shibbolethno, if secureboot is enabled grub must be signed by microsoft and the kernel must be signed by whoever had microsoft sign that grub20:40
brycehwe've got a bunch of psr-related migration issues, e.g. https://launchpad.net/ubuntu/+source/php-doctrine-data-fixtures/1.5.2-1/+build/23092515, and wonder if it might fix that.  WDYT?20:41
shibbolethand the modules must be signed by whoever signed the kernel or enrolled their own keys in uefi20:41
znfthe 'old' box is running in Legacy/BIOS mode20:41
shibbolethwhich is the one that was already working?20:42
znfthe 'new' box is running in EFI mode, but mokutil --sb-state says it's running with SecureBoot disabled20:42
znfthe Legacy/BIOS one20:42
znfalso, /boot/vmlinuz-5.8* has the same md5sum20:42
znfonly the modules downloaded by the 'new' box are different 20:43
shibbolethok, install a previous kernel on both boxes, content of lib/modules for that version should match20:44
znfhere's another fun part20:44
znfroot@dtv1:~/kernel# md5sum /lib/modules/5.8.0-40-generic/kernel/drivers/media/pci/cx23885/cx23885.ko ./lib/modules/5.8.0-40-generic/kernel/drivers/media/pci/cx23885/cx23885.ko20:45
znfe82697446b9a7eaf113719a23bc0ac6f  /lib/modules/5.8.0-40-generic/kernel/drivers/media/pci/cx23885/cx23885.ko20:45
znfc310f5cdda50394e0778270e0fde7328  ./lib/modules/5.8.0-40-generic/kernel/drivers/media/pci/cx23885/cx23885.ko20:45
znf'dtv1' is the "old" one running in legacy20:45
znfit has "linux-modules-extra-5.8.0-40" installed already20:45
znfI apt download linux-modules-extra-5.8.0-40 -> unpack -> md5sums are different20:46
shibbolethsame arch?20:46
znfyes20:46
shibbolethalso linux-signed-generic and linux-generic will have diff contents20:46
shibbolethsince one will have signed components20:47
znfboth my systems report:20:47
znfii  linux-modules-extra-5.8.0-40-generic                        5.8.0-40.45~20.04.1                   amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP20:47
znfii  linux-modules-extra-5.8.0-40-generic   5.8.0-40.45~20.04.1                   amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP20:47
znfunless I'm incredibly blind, I don't see any actual version or any hint that one is signed, the other is not 20:48
shibbolethsome of the modules are embedded in the kernel image20:48
shibbolethhence linux-modules-extra20:49
znfcx23885.ko is in -extra20:49
znfbut the no-extra package is also the same:20:49
znfii  linux-modules-5.8.0-40-generic                              5.8.0-40.45~20.04.1                   amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP20:49
znfii  linux-modules-5.8.0-40-generic         5.8.0-40.45~20.04.1                   amd64        Linux kernel extra modules for version 5.8.0 on 64 bit x86 SMP20:49
shibbolethstill, some are extracted from the kernel image20:50
znfhttps://pastie.dev/ff6UIV.yaml20:50
znfnew one on top, old one at the bottom20:50
shibbolethtry deleting /lib/modules/foo and reboot, some of it will still... " be there"20:50
znfthe only difference is the virtual package linux-image-generic-hwe-20.04 20:51
znfor, rather, not a virtual, but dpkg -S only reports that it has a changelog.gz and a copyright 20:51
shibbolethand where do you suppose vmlinuz-foo comes frome?20:52
shibbolethanyway, you wanna do your thing, don't let me stop you20:53
znf/boot/vmlinuz* comes from linux-image-5.8.0-40-generic 20:53
znfroot@dtv1:~# dpkg -S /boot/vmlinuz-5.8.0-40-generic20:54
znflinux-image-5.8.0-40-generic: /boot/vmlinuz-5.8.0-40-generic20:54
shibbolethyes?20:54
shibbolethdpkg -l | grep linux20:55
shibbolethlemme guess, one box has -signed, the other doesn't?20:55
znfI'm just trying to find an explanation as to why the same package -- linux-modules-extra-5.8.0-40-generic -- has different checksums on 2 different sistems20:55
znfthey both have "linux-image-5.8.0-40-generic" 20:56
znfwhich claims to be signed20:56
znfand both have the same md5sum 20:56
znfso that package is identical on both systems 20:56
shibbolethok, unpack the .deb from /var/cache/apt/archives/20:57
znffor which? :)20:57
shibbolethboth20:57
znfI obviously no longer have the cache on the old system 20:57
shibboleththe .deb is signed, otherwise apt would've refused to process it20:58
sarnoldI think apt only checks that when *saving* the download20:58
sarnolddpkg doesn't re-check the package is fine when it reads it from disk to unpack it20:58
znf5.8.0-40.45 is from January 2021, so there's 0 chances I'd have that cache anymore :P20:58
shibbolethdoesn't mean you still can't get it20:59
shibbolethanyway, this is going off on oh so many tangents20:59
sarnoldso a package that is corrupted between the download and the time that dpkg reads it back again won't be caught by signatures; if you're lucky you'll trip an error in the decompression routines and get an error message there. I think we see one or two of these bugs in launchpad every year20:59
sarnoldbut I have to imagine some disk somewhere, or bad memory, could flip things in a way that it'd just decompress garbage21:00
znfshibboleth, apt download on the OLD system brought me the same package that the NEW system also downloaded21:00
shibbolethsarnold, apt won't hand it over to dpkg if corrupted21:01
shibbolethbut yes, you can manually dpkg a corrupted/tampered package21:01
sarnoldshibboleth: that's the thing, though, I think apt only checks what it gets over the wire, it doesn't check the file from cache again..21:01

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