libera/#devuan/ Monday, 2022-10-17

ham5urgWhen I debootstrap a new system, many packages are marked as manual installed. AFAIK such a pkg X it is set to manual to not to be removed if no other package depends on X. So X will stay. Is there a way to change this? Any other pkg state I could change to for the first debootstraped packages?16:09
fsmithredham5urg, I don't think you can get rid of the packages that debootstrap installs. I think they are required.17:24
gnarfacethat's what i thought17:29
fsmithredaptitude search ~prequired\17:31
fsmithredwithout the final backslash!17:31
fsmithredaptitude search ~prequired17:31
fsmithredwill show you a list of required packages17:31
fsmithredok, I checked a coupld debootstrap installs here and it also installs important packages. You can remove those. e.g. apt will let me remove eudev without any other actions, but if I try to remove cron, it wants to install about 20 other things.17:40
u-amarsh04having trouble with a polkitd upgrade on unstable on i386, please excuse the 2 additional lines:18:46
u-amarsh04Failed to open 'polkitd.conf', ignoring: No such file or directory18:46
u-amarsh04dpkg: error processing package polkitd (--install):18:46
u-amarsh04 installed polkitd package post-installation script subprocess returned error exit status 118:46
u-amarsh04the machine tends to get updated every few days to a week or so apart, and the amd64 machine here had no such upgrade problems, but gets updated several times a day18:47
rwpham5urg, I have not seen debootstrap result in packages marked as manually installed but you can alter that with "apt-mark auto foopackage".18:51
rwpham5urg, You can list packages marked as manually installed with "apt-mark showmanual".18:51
rwpham5urg, A class of packages are registered as "essential" and essential packages are never removed without an explicit code phrase confirming action.18:52
rwpu-amarsh04, I do not have polkitd installed but in Unstable problems like that occur semi-frequently.18:54
rwpOften if you wait a day it problems will be resolved upstream.18:54
ham5urgrwp, yes, today I digged a bit in apt and dpkg package handling and was hoping for something like "pulled_in_by". In the end there are only "manual" and "automatic" marks.18:54
u-amarsh04rwp, I have reported the bug to the Devuan bug tracker, since it is with a Devuan-forked package: polkitd (121+compat0.1-6devuan1)18:56
rwpI don't know an easy to tell about dependencies other than "apt-get purge -s foopackage" with -s simulate and then see what it would remove.18:56
rwpu-amarsh04, Running Unstable it is good to also have Testing source.list so that when one hits these problems it is easy to return to the previous version still in Testing. https://wiki.debian.org/DebianUnstable#What_are_some_best_practices_for_testing.2Fsid_users.3F18:57
u-amarsh04I have found aptitude to be useful in seeing what will (potentially) be removed or installed and then using control-U to undo it18:57
rwpI never became comfortable with aptitude.   And aptitude is so very slow that I found it tedious.  But if you can get past that then that is good.18:58
rwpu-amarsh04, If the install error is only due to the missing conffile, and it is failing in a preinst or postinst script, then here are two more possible workarounds.18:59
rwpUse -o DPkg::Options::=--force-confmiss to force installing a missing conffile.19:00
rwpYears ago it was argued that removing a local conffile was a local modification and that it must be preserved by policy.  (Piffle!  That's a terrible result.)19:00
rwpAnd two, If the problem is an upgrade or remove/purge and the script is failing preventing a removal then editing the script to disable it works around those problems.19:01
rwpham5urg, If one looks in the /var/log/apt/history.log file one might find the install/upgrade which pulled in another package.19:02
u-amarsh04rwp I do have testing and stable also listed, there are other problems with the earlier version of the polkitd package, but thanks for your suggestions19:04
rwpGood luck!  If I have a little time I will try installing it to see if I can reproduce the problem.19:08
u-amarsh04rwp - difference between two systems - problem system had systemd-standalone-sysusers installed19:37
rwpThat's a new one for me.  However I recommend everyone install systemd-standalone-tmpfiles proactively to avoid systemd-tempfiles from getting pulled in.19:40
u-amarsh04package systemd-standalone-sysusers was required by package stunnel19:42
u-amarsh04removing package systemd-standalone-sysusers fixed the problem (all reported in a follow-up to the Devuan bug tracking system)19:52
rwpstunnel4 now requires this?  OMG!  (I have been a previous user of stunnel.)  WHY?!!  Sigh...19:56
rwpI see "systemd | systemd-standalone-sysusers | systemd-sysusers" now.  That's new.  In Chimaera it is not a dependency.  Sigh.19:58
rwpI don't see how systemd-standalone-sysusers interacts with polkitd though.  polkitd has "adduser | systemd-sysusers" but adduser should be there.20:01
rwpSeems like having systemd-standalone-sysusers should be okay.  Therefore I wonder at the root cause of the problem.20:01
u-amarsh04polkitd doesn't list systemd-standalone-sysusers but does use the binary /bin/systemd-sysusers if present20:02
u-amarsh04doesn't list systemd-standalone-sysusers as a dependency or suggests or enhanced by20:03
rwpGotcha.  polkitd opportunistically uses /bin/systemd-sysusers and if present you are seeing errors from it.  That's an unfortunate problem! :-(20:09
ham5urgWhat's the old way of configuring a keyboard? I'm looking at the net and find systemd and redhat ways of configuring. Neither can I use interactive configuring like keyboard-configuration. I need a scriptable way. I installed console-data, do I need more? Which config-files do I need to create? /etc/default/keyboard ?21:57
rrqham5urg: I'm using setxkbmap to toggle between us and se22:05
ham5urgThat's tough to change the layout regular :)22:06
rrqyeah; I need a special patch around sleep-resume screenlock, in case my password includes mapped keys22:14
fsmithredham5urg, dpkg-reconfigure keyboard-configuration22:25
fsmithredto script it, look at the config file and have the script edit it directly22:25
fsmithredin /etc/default/keyboard22:26
ham5urgfsmithred, can I circumvent calling dpkg-reconfigure?22:27
ham5urgI created /etc/default/keyboard but it looks like it is not used by the boot process.22:30
ham5urgAs long as keyboard-configuration is not installed22:32
ham5urgDo I have to link a keymap from /usr/share/keymaps/... to somewhere ?22:33
fsmithredI don't know about the links22:34
ham5urgloadkeys /usr/share/keymaps/i386/.../kmap.gz does the magic temporaly. But which script does invoke it at boot time? And how to configure?22:41
Centurion_DanHas there been much talk about thunderbird upgrades to v102.x.x breaking things?  I had to revert to v91 because it broke most of my extensions and a bunch of other integrations...22:43
ham5urghttps://manpages.ubuntu.com/manpages/bionic/en/man1/setupcon.1.html is using /etc/default/keyboard.22:46
fsmithredCenturion_Dan, not many people are using T'bird. 102.3 lost some of my filters.22:49
fsmithredI don't think I have any extensions in thunderbird.22:49
fsmithredham5urg, /etc/init.d/console-setup.sh runs setupcon22:56
fsmithreduh, it tests for setupcon. Doesn't look like it runs it.22:58
ham5urgfsmithred, thanks.23:23
ham5urgWhat I found is that console-setup is dependent on keyboard-configuration.23:24
fsmithredare you able to do what you want?23:24
ham5urgThis dependency is a minor bug in my eyes at this moment.23:24
ham5urgkeyboard-configuration is interactive which should be optional, at least in my case.23:25
ham5urgDEBIAN_FRONTEND=noninteractive apt install console-setup23:25
ham5urgdid the trick, even when it pulled in keyboard-configuration.23:25
ham5urgNevertheless deb-distributions are hard to script. Have you anytime used nix-os or guix?23:58
fsmithredall my scripting has been done in deb-based distros23:58
ham5urgThere are a number of interactive packages AFAIK.23:59

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