/srv/irclogs.ubuntu.com/2022/09/09/#ubuntu-server.txt

=== mmebsd is now known as linsux
=== BOWnbERTHA89 is now known as BOWnbERTHA8
=== scoobydoo_ is now known as scoobydoo
=== scoobydoo_ is now known as scoobydoo
=== OpenSource is now known as UNIX
jdarnleyI need help discovering what causes systemd to start a service name@multi-user when only name@0 and name@1 should be run.09:16
jdarnleyThey are also run but the multi-user one steals a resource needed by one of the expected ones.09:17
CatalinSThere is this output: https://pastebin.com/Z3CnzYnc following these commands being run by a provision script in packer inside ADO: https://pastebin.com/vQevNAyi09:37
CatalinSany idea what could be causing the file mentioned on the first link not to exist ?09:37
CatalinS2022-09-09T08:06:58.6917933Z [0;36m azure2: Get:48 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [508 B][0m09:38
CatalinS2022-09-09T08:07:05.1807751Z [1;31m==> azure2: E: Could not open file /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_focal_multiverse_cnf_Commands-amd64 - open (2: No such file or directory)[0m09:38
CatalinSand what can be done to fix this ?09:38
CatalinSit's Ubuntu 20.0409:42
ShellcatZero2Can anyone tell me where I can find the official grub source for Ubuntu 22.04? I have some custom patches that I going to apply. I'm also wondering what the (recommended) process would be for keeping grub up to date while persisting my patches in it.10:59
ShellcatZero2I'm anticipating that I would just need to watch a repo for changes, apply patches, recompile & install.11:00
rbasakShellcatZero2: officially, start from https://launchpad.net/ubuntu/+source/grub2 and you can grab the sources through  there (eg. go to "View full publishing history", then the version string, then the Downloads section.11:24
rbasakOr you can use a deb-src line via apt to automate the download from the client end.11:24
rbasakHowever, there's also an easy way of maintaining a PPA with custom patches against most source packages now, which is by using the git-ubuntu git branches. I should write up some documentation on this :-/11:25
rbasakYou can follow git repositories that mirror the official packages here: https://git.launchpad.net/ubuntu/+source/grub211:25
rbasakYou can push your own fork of some branch, and set up a PPA to build against a merge of that and your fork using a "build recipe". Then the PPA will automatically update with new changes except when there's a merge conflict that will need manually resolving.11:26
rbasakUnfortunately it's a little complicated to set up though11:26
ShellcatZero2Ok, thanks rbasak, I'll look into that. Can you elaborate at all (or provide docs) on how using deb-src could be leveraged in the case I mentioned? Surely it's not just as simple as adding the line(s) in sources.list, right? I've known about those entries in sources.list but never understood their use case, admittedly.11:40
rbasakdeb-src merely allows you to use apt to fetch the source of something that's also available to apt install.11:43
rbasakIt's limited in that it only gives you the source for the binaries you can install through apt *at that time*.11:43
rbasakOn the other hand looking at Launchpad directly will give you access to sources for all of history, so that might be preferable for your purposes.11:44
ShellcatZero2I see. Where does it pull those sources locally?11:45
ShellcatZero2Relatedly, I'm not sure if this applies to Ubuntu but I've just found this as well: https://wiki.debian.org/apt-src11:57
ShellcatZero2Ah, I think I understand the usage of deb-src now after reading this article: https://www.cyberciti.biz/faq/how-to-get-source-code-of-package-using-the-apt-command-on-debian-or-ubuntu/12:04
=== jgee1 is now known as jgee
j_darnleyI need help discovering what causes systemd to start a service name@multi-user when only name@0 and name@1 should be run.  They are also run but the multi-user one steals a resource needed by one of the expected ones.12:36
znfhave you systemctl disable'd name@multi-user? :)13:20
j_darnleyyes once or twice13:23
j_darnleyyes once or twice13:23
j_darnleysorry wrong window13:24
j_darnleyOperator error at some time.  `systemctl disable name@` worked13:31
guesswhatguys, any idea, how to strip last newline from socat command ? i am using /usr/bin/socat TCP-LISTEN:9946,crlf,reuseaddr,fork SYSTEM:'echo HTTP/1.0 200 OK; echo Content-Type\: text/plain;echo; socat - "UNIX-CONNECT:/run/zincati/public/metrics.promsock"' , but  socat - "UNIX-CONNECT:/run/zincati/public/metrics.promsock" will produce newline ( \r )13:50
guesswhatthanks13:50
guesswhatomg, i have clrf in first socat command :X13:59
kathynatedmorning. it seems trying to install libvirt-daemon-system wants to install X even on the server edition. How do I get libvirt installed without X so I can have a hypervisor without using snap?14:26
ahasenackhave you tried to install it with --no-install-recommends?14:55
tomreynapparently - still in 22.04 - link bonding in active-backup mode does not get configured properly by subiquity: https://askubuntu.com/questions/1085674/ubuntu-18-04-and-bonding/1428472#142847215:46
tomreynsubiquity does not add the "mii-monitor-interval: 100" line under "mode: active-backup" so link outages are not detected and failover does not take place. this was tested and reported by irc user 'dreamon' in #ubuntu-de - i have not tried to reproduce, thus can't file a bug report.15:49
tomreyn(i asked them to do so, but doubt they will)15:49
cryptodan_mobileHow does one disable dhcp on Ubuntu Server for both ipv6 and ipv4 using systemd-networkd15:53
rfmcryptodan_mobile, use netplan.  examples at http://netplan.io/examples16:07
cryptodan_mobileI have dhcp no in netplan but it ignores it 16:38
ahasenackdo you want to specify a static ip or what?16:44
cryptodan_mobileYes but I woke up to a new secondary ip address added to the interface16:45
ahasenackwhat's your netplan file like?16:47
cryptodan_mobilehttps://termbin.com/uf1416:47
cryptodan_mobileAnd ip addr https://termbin.com/a9kg16:49
ahasenackdid you run `netplan apply`?16:50
cryptodan_mobileYup16:50
cryptodan_mobileAnd no errors16:50
ahasenackand 192.168.1.151/24 showed up *later*? 16:51
ahasenackat some point, right after you ran netplan apply, it was fine?16:51
ahasenackif yes, I would check:16:52
ahasenack- other files in /etc/netplan/*16:52
ahasenack- networkd files in /etc/systemd and /run/systemd16:52
ahasenacknetplan ones are generated in /run/systemd/**16:52
cryptodan_mobileI deleted the ip I want gone and seconds later it showed up and netplan only has one file16:52
ahasenackthen I would look for other sources of systemd-networkd configuration, in those paths above16:53
cryptodan_mobileAnd networkd contains the right ip addr for eno2 16:53
ahasenackand look for the netplan generated config for networkd, that's in /run/systemd/** somewhere16:54
ahasenacksee if it matches the yaml file description16:54
cryptodan_mobileThe /etc/systemd is empty 16:54
ahasenackand if there isn't another one lying around, from previous efforts or attempts16:54
cryptodan_mobileHere's the only file in /run/systemd/network https://termbin.com/prr716:58
ahasenackI don't know then, sorry16:59
rfmcryptodan_mobile, is it possible you have NetworkManager running and managing that connection too?  Maybe "nmcli c" to check?17:01
cryptodan_mobileIt's freaking frustrating 17:01
ahasenackcould be that, or a cron job running dhclient, or you have dhclient running already, etc17:01
ahasenackat some point I would fire up tcpdump to see if it's actually dhcp17:01
cryptodan_mobileNetwork Manager isn't installed17:01
cryptodan_mobileI think it was dhcpcd running17:21
=== justache is now known as justJingo

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