libera/#devuan/ Thursday, 2024-02-22

coresgood evening. i installed devuan onto a virtualbox vm and after setting up i did "sudo apt install fluxbox" but apt is stuck on "Setting up xfonts-terminus" for about 10 minutes.04:41
coresis something broken or should i just kill it and retry? any ideas on how i can find the problem?04:41
coresdaedalus 5.004:41
coresthere doesn't appear to be a lot of network or cpu activity04:43
rwpIf it were me I would log in with another terminal and then "ps -efH | less" and look to see what the process tree looks like around apt.04:48
rwpIf it looks like it really is hung and not doing anything then yes I would kill it and restart it.  The apt state might be unfinished but it will resume and continue.04:49
coresgood idea. apt has a few child processes still going: '/usr/bin/dpkg --status-fd 16 --configure --pending' and '/bin/sh /var/lib/dpkg/info/xfonts-terminus.postinst configure' and 'xset fp rehash'04:52
rwpThat makes it appear that it is waiting for input.  Maybe?04:52
coresthose are a tree of processes, not all spawned by apt04:53
coreswaiting for input? hmm...04:53
coresit could be, but i don't see any place to put input04:54
rwpThe file /var/lib/dpkg/info/xfonts-terminus.postinst is simply a script that you can browse.  I often look.  Sometimes it is obvious what the postinst are doing.  Sometimes someone has programmed a nightmare into it and it is not possible to easily discern this.04:54
rwpIf interrupted then dpkg will record the state as failed and needs-configure.  Then any dpkg operation will trigger it to "dpkg --configure -a" and that will reconfigure all unconfigured packages.04:55
rwpOr one can "apt-get install -f" to run the dpkg --configure and also possibly try to fill any missing dependencies.  Same thing really but I do the dpkg --configure -a if I am resuming so I can see any messages dpkg is putting out in isolation.04:56
rwpIn this case it isn't fluxbox itself that is having a problem but xfonts-terminus, a font that I also have installed, no problem here.04:57
rwpMaybe the installation at that point became resource starved for memory?  In a VM without a lot of memory I could see that being a problem.  Is there swap configured?  Often configuring just a little swap can give just enough headroom to make all of the difference.04:58
coresweird, i did "view /var/lib/dpkg/info/xfongs-terminus.postinst" and that command didn't do anything04:58
rwps/fongs/fonts/ :-)04:58
coresright04:58
coresi can't copy/paste yet04:58
coresthe 'view' command is just sitting there, it's not showing me the file04:59
coresin terms of memory i'm at 1.3 GB used of 2 GB04:59
coresit's not a lot of memory, i know04:59
coresI should bump that04:59
rwpIt's crazy that 2GB might not be sufficient.  But I would suggest adding some swap to supplement.05:00
coresso 'view' didn't work, but 'vi' did05:00
rwpI looked at that postinst here and literally it has two commands in it.  "xset fp rehash" which I did not think would work without DISPLAY set so that's odd.05:01
rwpAnd "update-fonts-dir --x11r7-layout misc;update-fonts-alias --include /etc/X11/fonts/misc/xfonts-terminus.alias misc" which is actually doing the work.05:01
coresi have the same thing05:01
rwpWhen you get the spare moment you might run "update-alternatives --display view" to look to see what is providing the view command.05:01
coresit appears "xset fp rehash" is the thing that stuck05:01
rwpAlso let me tease you about using view when "less" is more than "more". :-)  (Hey, I am just joking because I emacs'd that file here to look.)05:03
cores"update-alternatives --display view returns a bunch of stuff, it starts with "view - auto mode" and "link best version is /usr/bin/mcview" which is a link to /usr/bin/mc05:04
rwpThat postinst script has <<if [ "$1" = "configure" -a -n "$DISPLAY" ]; then>> so it would only run that if DISPLAY is set.  And won't run it if it is not set.  I would unset DISPLAY!  At least for the run.  It does not need DISPLAY set to install the fonts.  That's just silly.05:04
rwpOn your system, and mine too as I look, view is set to midnight-commander.05:04
rwpBut mc should still work just fine.  It's a text-mode very mature program.05:05
rwpTIL that midnight-commander has a vi emulation mode.  I did not expect that one.05:05
coresok so kill the apt process, unset DISPLAY (even though I'm logged into X) then run the postinst script?05:05
rwpI would Control-C out of the install process.  Then simplest is: env -u DISPLAY dpkg --configure -a05:06
rwpAfter that completes, and I think it should complete okay, then repeat your previous apt-get install fluxbox command and it should finish doing everything.05:07
coreswow, Ctrl-C isn't working on this install process05:07
coresI guess I have to kill the terminal window05:07
rwpYou don't have any keyboard input into it?  It isn't responding?  You can find the process id in the other window and kill it by pid.05:08
rwpI would be worried that if you killed the window that it still would not be dead.  Better to kill it by pid and then it will return to the command line and you will see it.  Than to have to ps -ef|grep for it.05:09
coresi killed it using kill05:11
rwpI think that was your only reasonable choice.  I don't know why it would have hung.  I would review /var/log/syslog and see if any clues were logged there.05:12
rwpThere is also /var/log/dpkg.log and /var/log/apt/term.log too but I doubt there will be anything of note there beyond what you already know.05:13
coreswhat paste service should i use?05:14
rwpIf paste.debian.net is resolving for you then that one is good.  (It was having a dns problem earlier this weekend.)05:14
coresok starting firefox maybe blew my memory05:14
coresbasically i was going to paste the output from "sudo env -u DISPLAY dpkg --config -a"05:15
rwpA command line way to post things to a pastebin is: echo foo foo foo | nc termbin.com 999905:15
cores"dpkg: error: dpkg database was locked by another process..."05:15
rwpWaiting for a semaphore.  That would do it.  But why?  Some other process running.  Odd.05:15
rwpI would think based upon that information that you had run two commands to do something overlapping and one was waiting for input and the other was waiting for the first.05:16
rwpNo matter now.  Kill all of them.  Get to a state where none of them are running.  Then run the sequence I listed above.  All will be okay.05:16
coreshttps://termbin.com/cnw405:17
coresOk, let me try05:17
rwpOh good.  I see that https://dnsviz.net/d/snow-crash.org/dnssec/ (hosting paste.debian.net) fixed the DNS issues it was having this weekend.  (You can see the errors from this weekend at https://dnsviz.net/d/snow-crash.org/ZdKH7A/dnssec/)05:18
coreshttps://termbin.com/jt3305:19
coresmaybe that explains things? two commands for the same thing?05:19
rwpSince it says the other pid is 4575 you can look for it "ps -efH | less +/4575"05:19
coresmaybe i did it by accident05:19
coreskilled 457505:20
coresran "sudo env -u DISPLAY dpkg --config -a" and it's finished05:20
rwp\o/  Almost done then.05:20
coresthe apt progress bar is still at the bottom of the terminal, last line. lol05:20
rwpRepeat your original command to install fluxbox and let it finish.05:20
coreshttps://termbin.com/trfl05:22
coresi should have just irc'd in from the vm. that would have been easier05:22
rwpLooks good to me.  Give it a go!05:22
rwpSomewhere along the way you ended up with multiple dpkg programs running.  dpkg is the underlying engine that is handling package management under apt (and apt-get and aptitude and ...) and that caused it to block waiting for the semaphore as it is supposed to do.  Since you had lost connection to that install process killing it by pid made the most sense to clear all of those out of the way.05:24
coresi'm in fluxbox now :)05:24
rwpapt/dpkg is quite smart enough to understand when it gets interrupted and will have recorded the state correctly allowing it to continue on the next invocation and finish things off.05:24
rwpYay!  Good deal.  Glad to hear you have everything going. :-)05:25
coresrwp, you're a genius. thanks.05:25
rwpThere's a fine line between genius and insanity. I have erased this line. :-)05:26
coresoh one more thing, after i installed devuan i had to manually removme the cdrom from apt sources and add the deb.devuan.org05:27
coresnot a big deal, just didn't expect it since the rest of the install process went so smooth05:27
coresoh and firefox never launched, so i guess i need to bump the RAM05:27
rwpThat has always been an odd thing that the debian-installer leaves the cdrom line in the sources.list file.  I have never understood that either.  And I always delete that line too.  Cleaning up the sources.list to just what I need.  And usually adding non-free contrib as well.05:28
rwpIf you have the disk space then I would recommend adding at least 1GB of swap.  That does not mean it will be used.  But it will be counted in the available virtual memory and allow the kernel to avoid resource starvation in many cases that it would fail completely otherwise.05:29
coresyeah, i do have 1GB of swap05:29
rwpLook for OOM out-of-memory killer incidents logged to the /var/log/syslog file.05:29
coresnext time I will, I just got impatient and logged out of Gnome05:30
rwpGood.  People often have the mistaken idea that if they configure swap that the kernel is immediately going to start reading and writing it endlessly just because it is there.  And that's not how it works at all.05:30
coreswhat about adding random ubuntu launchpad ppas into my apt sources on devuan? is that a good idea?05:30
rwpMy advice is: https://wiki.debian.org/DontBreakDebian#Don.27t_make_a_FrankenDebian05:31
rwpUbuntu would be worse than mixing release suites in Debian.  Debian and Devuan *are* the same.  For all but about a hundred packages forked due to systemd all of the rest of the packages are verbatim Debian so no problem there.  But Ubuntu will depend upon a different libc just for the start of things.  And if not libc then one of the godzillian other libraries.05:32
coresSounds like good advice05:33
coresMy host environment is an Ubuntu laptop. I'm running devuan on a VM to see if it can do what I need.05:33
rwpIf there is something you want from Ubuntu I would ask here first because almost certainly someone will know what is the better answer.  If I were going to install from Ubuntu I would do so in a chroot container, but perhaps that is an advanced thing.  Compiling from source is not that hard and that would always be better too.  Do your own backport of the package.05:33
coresMy Ubuntu system has all sorts in the apt sources, it's a mile long05:33
coresBut I don't need all that stuff anyway. I need to cut down.05:34
rwpUbuntu's sources.list file has always been ten miles long.  It's a rather hectic collection of this and that which they assemble together.05:34
rwpMeanwhile my Devuan systems have three "deb" lines and the same number of matching deb-src lines.05:35
coresi can use chroot and/or build from sources05:36
coresi prefer not to usually05:36
coresi just want to enter one command and go05:36
coresthat's why i love my mac. as long as i don't try to get too clever, everything is super slick05:36
rwpFor the most part Ubuntu and Debian/Devuan will have a similar number of packages precompiled and available for immediate installation just the same as each other.05:37
coresright05:37
coresthat's what I expect05:37
coresi think that's enough fun for one evening05:37
coresthanks for your help05:37
rwpSure thing.  Good luck!  Enjoy!05:38
spine-o-saurusomg it's up and connecting now09:16
nemoso... we came up with another solution, but if it's ever a problem in the future19:42
nemowhat's the correct setup for accessing oldstable in devuan?19:42
nemois there a dedicated archive server for it like there is in debian?19:43
nemoor is it on the main apt server url.  or should I just use debian's archive server.19:43
gnarfaceafaik, oldstable and oldoldstable are both still in the main repos19:43
nemognarface: kk thanks.  I guess that makes the redirector easier for y'all19:44
gnarfacethere is an archives server url too, jessie is in there and maybe ascii too?19:44
gnarfacei forget the exact host name19:44
gnarfacemaybe just archive.devuan.org or something like that19:44
gnarfacebut yea, there's a devuan archive server, but oldstable is not old enough for it yet19:45
nemooh. I had to manually copy in tomcat init scripts from other machines again19:54
nemowhat was that process to see if the scripts were in that devuan package for maintaining scripts?19:54
nemoI mean, copying it was not a big deal but I'd rather do things correctly19:54
gnarfacei forget, there was a package somewhere....20:00
u-amarsh04gnarface orphan-init-scripts?20:14
u-amarsh04package orphan-sysvinit-scripts20:14
gnarfacesomething like that20:15
gnarfacewas it in proposed-updates or something too?20:15
gnarfaceoh, no i see it in main actually20:15
gnarfaceorphan-sysvinit-scripts - Orphaned System-V-like init scripts20:15
gnarfaceat least as of daedalus anyway20:15
nemognarface: so if I wanted to see if tomcat was in there now, I'd just try reinstalling it?20:22
nemohm. I guess I should move my manually added one out of the way before testing20:22
gnarfacenemo: no reason you'd have to actually install it. you can tell apt to just download and unpack it into a directory20:24
gnarfacenemo: or you could use apt-file to search it remotely20:24
gnarfacethat said, it may be that it just puts the missing scripts in /usr/share/doc/, i don't actually know20:30
nemognarface: welp. tomcat9 is in the changelog at least, but not tomcat1021:20
nemohttps://metadata.ftp-master.debian.org/changelogs//main/o/orphan-sysvinit-scripts/orphan-sysvinit-scripts_0.14_changelog21:20
nemoI'd swear 9 didn't add an init though21:20
nemo(I was installing 9 and 10)21:21
nemoyeah. no 10. boo.21:22
nemowow. 9 was added 3 years ago21:22
gnarfacenemo: didn't it turn out they were basically the same though?21:28
nemognarface: yeeeah. I just was hoping there was something more automated. I like having distros manage these things, and also it's awkward for the other half dozen coworkers I kinda snuck onto devuan by offering to let them clone my machine21:46
nemook, step 1, apt install tomcat9   step 2....21:46
nemobut. yes. I just did a diff and the one I "made" that seems to be working is simply a %s/tomcat9/tomcat10/g21:47
gnarfacenemo: yea, i understand. you might want to try bringing it up with fsmithred again, though i can also understand the apparent absurdity from a package manager's perspective of keeping two separate init scripts just for that one difference22:03
gnarface(it's foggy to me, but i seem to recall that being the stated justification for not including both last time, plus something else about the project's own docs maybe insisting they're identical despite the obvious actual difference?)22:04
gnarfacei dunno for sure, my imagination might be filling in empty blanks with nonsense22:05

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