libera/#devuan/ Thursday, 2024-08-08

drizztHi guys !00:13
drizztI've bumpped into a pretty critical upgrade problem00:13
drizztI have many arm64 systems, most of them pretty old ones (up to 4 years old), all running devuan of course, ceres flavor00:14
gnarfaceceres and critical update problems go hand-in-hand, i hope you kept backups00:15
drizztbut a few days ago I had to install a new package on one of them, and it failed, because it's a pretty old one00:15
gnarfacepaste the error at paste.debian.net and i might be able to help you fix it, but no guarantees00:16
drizztgnarface: yep, no data lost00:16
gnarfacein general you should try to use the stable release to prevent this type of thing from happening00:16
gnarfacesometimes they literally break unstable on purpose00:16
gnarface(Debian that is, not Devuan)00:16
drizztlooks like this is the case, but only on arm6400:17
drizztso it may be more complicated00:17
drizzthttp://paste.debian.net/1325773/00:17
drizztI've tried **a lot** of scenarios, but all fail00:18
gnarfaceoh, this is the usrmerge thing00:18
drizztdebootstrap de ceres : fails00:18
drizztyep00:18
drizztdebootstrap excalibur : fails00:18
drizztdebootstrap daedalus : OK ... dist-upgrade to excalibur : fails00:18
gnarfaceso, there was some trick to this, but i'm not sure if it's too late to do it the easy way or not... i think you were supposed to install the "usrmerge" package before upgrading, but now you're gonna have to make a bunch of symlinks by hand00:19
gnarfacecurrent stable is the last release that won't force this on you00:20
golinux^^^ This . . .00:20
drizztI managed to install usrmerge on daedalus before dist-upgrade .. but it fails too00:20
gnarfacehmm00:20
drizztthe fail seems related to tar :00:20
gnarfacei've avoided it so far. there was a forum post... golinux do you have the link to the right forum thread?00:21
golinuxI think that there are posts on the forum about this. I am still safely on Chimaera. :D00:21
golinuxI can try to find it00:21
gnarfacedrizzt: if it's not clearly enough explained somewhere on the forum, there's at least some others around here who have managed to slog through fixing it manually. just stick around.00:22
drizzton a test machine I manages to get ar, allowing to split a .deb in control.tar.xz and data.tar.xz00:23
golinuxTry this: https://dev1galaxy.org/viewtopic.php?id=629000:23
drizztbut then tar fails at handling the archives00:23
drizztthough tar on an x86_64 machine is OK00:24
drizztI tried to uncompress only (xz) ... but xz returns saying it did the job (nothing printed and returned 0) though it did nothing00:25
gnarfacehmm00:25
golinuxAlso check out the dng mail list:00:26
golinuxhttps://lists.dyne.org/lurker/search/20380101.000000.00000000@ml:dng,usrmerge.en.html00:26
golinuxThere has been much hair-pulling over usrmerge . . .00:27
drizztyep, I already read some stuff about usrmerge some time ago00:27
drizztgolinux: sounds like another, older stuff which also triggered a lot of hair pulling ....00:28
drizztWell, I may have found a solution ...00:50
drizztI happen to share /var/cache/apt/archives/ amoung all my systems as I have a pretty slow internet connection00:50
drizztand it happens to hold two versions of usrmerge00:51
gnarfacehmm00:51
drizztusrmerge_38 and usrmerge_3900:51
drizztI tried to install the _38, which failed at first, because libc was too old00:51
drizztand the newer one wanted to update base_files, chich needs usrmerge, ... and so on00:52
drizztbut once again, I had older versions of libc (2.37-13) which does not require a base_files upgrade00:53
drizztthen install usrmerge_38, which succeeds (even with latest perl dependencies packages)00:54
drizztand now, upgrade of full system running (got to re-download all packages as this test machine is not allowed to NFS mount my "shared archive")00:57
drizztbut I already ran the "fix-broken" apt, which moved to libc 2.39.6 without problem00:59
drizztand full upgrade seems to run just fine too :)00:59
gnarfacedrizzt: so, problem solved then?01:00
drizztlooks like it is :)01:01
drizztupgrade ran fine (just finished)01:01
drizzt(automatic part, with about 40 packages kept, but that's already way better than what I had before !01:02
drizztgoing on with parts of the packages kept behind during automatic upgrade01:04
drizztgnarface: thanks for the support :)01:04
drizztgnarface: arf, no bumping in the "tar" problem once again :(01:08
gnarface:(01:08
rrqdrizzt: which debootsrap do you use?01:08
drizzthttp://paste.debian.net/1325775/01:08
drizztrrq: debootstrap on devuan01:09
rrqwhich version?01:09
drizztI tried daedalus, excalibur and ceres, tried to make a few modification of the liste of packages in /usr/share/debootstrap/scripts/ceres but only daedalus succeeds01:10
gnarfacedrizzt: what happens if you try to upgrade tar first?01:10
rrqsome debootstrap version(s) use -k argument for tar when it needs --keep-directory-symlink01:10
drizzt(tried without the modifications of /usr/share/debootstrap/scripts/ceres first of course)01:11
gnarfacedrizzt: oh, rrq probably knows more about this than me01:11
rrqI think that's in the "ceres" script for debootstrap01:11
drizztrrq: currently I'm not testing on a fresh debootstraped version, but on a backup of a ceres install from 202301:12
drizzt2023-03-3001:12
gnarfacehmm, when did daedalus go stable again? it might be easier to downgrade that one to daedalus...01:13
gnarface(and then upgrade cleanly through excalibur to ceres again, or just keep it as daedalus)01:13
rrqpossibly you can run debootstrap with EXTRACT_DEB_TAR_OPTIONS=--keep-directory-symlink01:15
rrq(that's an environment setting)01:17
drizztrrq : I'll try this if I need to restart from debootstrap, but this does not solve the latest problem (paste http://paste.debian.net/1325775/)01:17
drizztthere is something I don't get :01:20
drizztdebian packages moved to xz for data/control archives01:20
drizztbut dpkg/apt do not depend on xz-utils01:20
onefangDid you try mmdebstrap?01:20
drizztonefang: nope01:21
opvj01:21
onefangI haven't read all of this, too early in the morning.01:21
onefangNo idea if it'll help, but it's worth a try if you have tried other things.01:22
drizztcurrent problem is that apt/dpkg is unable to install new packages01:22
onefangOne of the good things is it actually uses apt and dpkg to do the install.  So if those are not working, you find out early.01:30
drizzttar xf data.tar.xz01:31
drizzttar: Child died with signal 1101:31
gnarfacewhat if you unxz it? error too?01:34
gnarfacethough, i think that would need to be tar xJf actually01:35
drizztunxz (xz) from xz-utils_5.6.2-2_arm64.deb segfaults01:35
gnarfaceoh, yikes01:35
drizztthe one from xz-utils_5.4.1-0.2_arm64.deb runs fine01:35
drizztbut when I put this running xz on the system I still have the problem01:36
gnarfacehmm, that's the daedalus version. it really may be easier to go to that last backup of this system and downgrade it to daedalus as a first step01:36
drizztas if depg is not using xz to unpack01:36
gnarfaceit's possible your backup is old enough that even though it's ceres, the daedalus versions were all still newer before you started attempting the upgrade01:36
drizztgnarface: I have a daedalus version, which I can run.01:37
gnarfaceit just might upgrade cleaner back to ceres if you're skipping over fewer versions01:37
drizztI'm trying to understand and solve the upgrade problem anyway, just to solve it01:37
gnarfacefair enough01:38
gnarfacei think part of the issue though is that you're running into normal issues associated with updating a very old ceres install that crossed stable release dates, which likely would have happened regardless of the usrmerge problem adding insult to injury01:39
drizztthis one is a march 2023 ceres01:39
drizztnot that old01:39
gnarfacegoogle says daedalus was only released on 2023-08-1501:40
drizztho01:40
gnarfaceand that xz version that works for you is the exact version currently in stable01:40
drizztthought it was older01:40
drizztbut I tried daedalus -> excalibur -> ceres and it fails too01:40
gnarfaceyou're probably confusing it with chimaera (2021-10-14)01:40
drizzt(on the usrmerge problem)01:40
gnarfaceyea, but if you're just going daedalus->excalibur->ceres, and install usrmerge first, it should work, or at least be much less problematic to get working01:41
drizzttried this : fails01:41
gnarfacethe failure might look superficially the same but actually be easier to fix at that point because you won't also be running into libc version incompatibilities01:42
drizztdaedalus -> usrmerge install -> excalibur -> ceres fails and dist-upgrade to excalibur01:43
drizzts/and/at/01:44
drizztalready tried this01:44
gnarfaceyea, i get that, but like i said you probably won't have issues with xz and tar segfaulting on you, so it's probably gonna be easier to fix01:44
drizztbut, yes, that a good point01:45
gnarfacewe have a few people here who have actually gone through it pedantically, they're just not awake right now01:45
drizztI'll go over it again with the new steps I used to get usrmerge/libc/base-files updated on ceres01:46
drizztbut I have to go to sleep on my side01:46
gnarfacetry it, and come back here with the errors before you do anything crazy01:46
gnarfacesomeone else might be able to help you more easily from that point01:46
drizztalmost 2am here, and have to wakeup at 7.3001:46
gnarfacealright, peace01:46
onefangWell I use a script that uses mmdebstrap to install daedalus, but it installs usrmerge as part of the mmdebstrap command.01:46
drizzthave fun :)01:47
onefangSleep well.01:47
drizztand thanks for the help !01:47
gnarfacewish i could have helped more01:47
drizzt(even if it's not fixed yet)01:47
gnarfacedon't give up though01:47
drizztgnarface: no problem, I need to be able to use ceres on some custommer embeded systems, so I really need to solve this issue !01:48
* rrq had to go out a bit...01:57
rrqyou've tried removing /var/cache/apt/archives/python3-minimal_3.12.4-1_arm64.deb I guess01:57
drizzt(back for a few seconds)02:04
drizztrrq: yes, but it's a freshly downloaded one02:05
rrqhmm I downloaded the deb file and it looks fine02:06
rrqcan yo truy installing individual packages from that list with --no-install-recommends02:08
rrqin particular the perl-* debs02:09
rrqperl-base perl-modules-5.3802:09
drizztrrq: yes, it looks fine here too on my x86_64 host02:09
drizztbut installation fails on the arm64 system02:10
drizztthe problem is not related to python3-minimal_3.12.4-1_arm64.deb02:10
rrqno I guess it's the unpacking that does'nt handle xz02:10
drizzta segfault is not related to what data is handled, but to a bug in the running programm02:11
drizztrrq: yep02:11
rrqI think the perl-* packages are quite important02:11
drizztbu why ?02:11
rrqthose are "framework level" the rest are "application level"02:12
rrqwell passwd is also important02:12
drizztrrq: apt (or dpkg) fails02:13
drizztit will fail the same on ANY package02:13
rrqeven just apt-get install --no-install-recommends perl-base perl-modules-5.3802:14
drizzt(and I already have "APT::Install-Recommends "false";" as permanent config)02:14
drizztdpkg: error processing archive /var/cache/apt/archives/perl-modules-5.38_5.38.2-5_all.deb (--unpack):02:14
drizzttar: This does not look like a tar archive02:15
rrqwhich dpkg are you using?02:15
drizztthe one installed ....02:15
drizztii  dpkg                           1.22.1102:16
rrqhmm: how about manual unacking?02:16
rrqcommand: ar p $DEB data.tar | tar xJf -02:17
rrqat the root of the filesystem02:17
drizztrrq : already tried :02:17
rrqthat complains the same?02:17
drizztar runs fine, but system misses xz02:17
rrqwhat does "ar l $DEB" say?02:18
drizztusing manually unpacked xz (old one) allows to "unxz" and then untar02:18
rrqok hmm so maybe your tar version ?02:19
drizzt1.35+dfsg-302:20
drizztgonna try an older one02:20
rrqmmm maybe next level is to strace the "apt-get install" .. but then you need strace installed02:24
drizztindeed02:25
rrqbtw you tried "apt-get -f install"02:25
drizztI already thought about it02:25
rrq?02:25
drizztbut I'm manually moving tar/xz/... to the system, so why not strace ...02:26
rrqcould work02:26
drizztwas worth the try, but does not solve the problem02:27
drizztfrom what I understand (as tar says "This does not look like a tar archive" the problem does not come from tar02:29
rrqtried (at FS root)?: dpkg -i -E /var/cache/apt/archives/*02:29
rrq dpkg -i -E /var/cache/apt/archives/*.deb02:30
drizztbut from the step before, as if dekg-deb was using something like "xz control.tar.xz | tar xf -"02:30
drizztbut xz does nothing02:30
drizztand that's what I get when running latest xz02:31
rrqshould be "cat"02:31
rrqno02:31
rrqxxzcat02:31
rrqashc xzcat02:31
drizztbut when replacing xz by an older "working" one, I still have the same problem02:31
drizztxzcat control.tar.xz |tar x02:33
drizztruns fine02:33
rrqdoes my dpkg -i -E command run into similar issue?02:34
rrqthat is supposed to install all deb that are of newer versions02:35
drizztsame02:35
drizzttar: This does not look like a tar archive02:35
drizzt dpkg-deb --control subprocess returned error exit status 202:36
drizztthe problem is not in the archives, or in what archive is being installed02:37
drizztbut rather in one of the tools of the "apt toolchain"02:37
drizztthe problem is to find in which02:37
rrqhmm what about: dpkg --unpack -R --no-triggers /var/cache/apt/archives02:38
drizztsame02:39
rrqcould you strace that to work out sub-programs?02:39
rrqmaybe a single .deb instead of having -R02:40
rrqstrace -f -o LOG -s 200 ...02:40
drizzthttp://www.nathael.net/Data/LOG02:55
drizzt15400 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x7fa6beffd0} ---02:59
drizztreally got to go get some sleep03:11
drizztGotta drive tomorow morning (in only 5 hours now)03:12
drizztI'll be back on monday03:12
drizztthanks for the help03:12
al1r4dabout wireplumber -> https://boards.4chan.org/g/thread/10176706419:44
watoHello, i'm having trouble installing Gparted on Devuan20:19
watoThe install is successful20:19
watobut the application is not loading into dmenu on i320:19
watoNevermind, it was installed on a folder that dmenu was not looking for20:20
watofixed by adding /usr/sbin to $PATH20:23

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!