{"id":270,"date":"2018-11-22T09:18:25","date_gmt":"2018-11-22T14:18:25","guid":{"rendered":"http:\/\/www.mgreene.org\/?p=270"},"modified":"2018-11-22T09:18:25","modified_gmt":"2018-11-22T14:18:25","slug":"avahi-daemon-chroot-failed","status":"publish","type":"post","link":"https:\/\/www.mgreene.org\/?p=270","title":{"rendered":"avahi-daemon chroot failed"},"content":{"rendered":"<p>Another annoying journal error: <\/p>\n<p><code>avahi-daemon[301]: chroot.c: open() failed: No such file or directory<br \/>\navahi-daemon[285]: Failed to open \/etc\/resolv.conf: Invalid argument<\/code><\/p>\n<p>Copy avahi-daemon.service from \/lib\/systemd\/system to \/etc\/systemd\/system. Edit \/etc\/systemd\/system\/avahi-daemon.service and add the &#8220;After=systemd-resolved.service&#8221; line like below and restart. This should result in no error:<\/p>\n<p><code>avahi-daemon[364]: Successfully called chroot().<br \/>\navahi-daemon[364]: Successfully dropped remaining capabilities.<\/code><\/p>\n<p><code><br \/>\n# This file is part of avahi.<br \/>\n#<br \/>\n# avahi is free software; you can redistribute it and\/or modify it<br \/>\n# under the terms of the GNU Lesser General Public License as<br \/>\n# published by the Free Software Foundation; either version 2 of the<br \/>\n# License, or (at your option) any later version.<br \/>\n#<br \/>\n# avahi is distributed in the hope that it will be useful, but WITHOUT<br \/>\n# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY<br \/>\n# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public<br \/>\n# License for more details.<br \/>\n#<br \/>\n# You should have received a copy of the GNU Lesser General Public<br \/>\n# License along with avahi; if not, write to the Free Software<br \/>\n# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307<br \/>\n# USA.<\/p>\n<p>[Unit]<br \/>\nDescription=Avahi mDNS\/DNS-SD Stack<br \/>\nAfter=systemd-resolved.service<br \/>\nRequires=avahi-daemon.socket<\/p>\n<p>[Service]<br \/>\nType=dbus<br \/>\nBusName=org.freedesktop.Avahi<br \/>\nExecStart=\/usr\/sbin\/avahi-daemon -s<br \/>\nExecReload=\/usr\/sbin\/avahi-daemon -r<br \/>\nNotifyAccess=main<\/p>\n<p>[Install]<br \/>\nWantedBy=multi-user.target<br \/>\nAlso=avahi-daemon.socket<br \/>\nAlias=dbus-org.freedesktop.Avahi.service<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Another annoying journal error: avahi-daemon[301]: chroot.c: open() failed: No such file or directory avahi-daemon[285]: Failed to open \/etc\/resolv.conf: Invalid argument Copy avahi-daemon.service from \/lib\/systemd\/system to \/etc\/systemd\/system. Edit \/etc\/systemd\/system\/avahi-daemon.service and add [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[12,37],"tags":[57,74],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-systemd","tag-gentoo","tag-systemd"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":908,"url":"https:\/\/www.mgreene.org\/?p=908","url_meta":{"origin":270,"position":0},"title":"Darter Pro 10 Mic Mute","author":"Mike","date":"January 4, 2025","format":false,"excerpt":"As an update to the Fn-Mic (Mute\/Unmute Microphone) not working. I contacted the System76 support and Aaron Honeycutt pointed me in the right direction. It requires a systemd change to get working somewhat outlined in this Github issue. Create the following file: nano \/etc\/udev\/hwdb.d\/61-keyboard-local.hwdb Next, add the following: ########################################################### #\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":647,"url":"https:\/\/www.mgreene.org\/?p=647","url_meta":{"origin":270,"position":1},"title":"ReactOS as a 32bit Open Watcom Dev Environment","author":"Mike","date":"June 11, 2022","format":false,"excerpt":"I was having problems with the old Windows XP VM I use to compile Open Watcom (OW) boot projects. This VM is an image of my original XP Desktop install that I have IDA and a lot of unused junk, so I decided to build a barebones VM for just\u2026","rel":"","context":"In &quot;bootldr&quot;","block_context":{"text":"bootldr","link":"https:\/\/www.mgreene.org\/?cat=7"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2022\/06\/react2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":460,"url":"https:\/\/www.mgreene.org\/?p=460","url_meta":{"origin":270,"position":2},"title":"NUC7PJYH:  Gentoo UEFI Configure","author":"Mike","date":"February 20, 2021","format":false,"excerpt":"This is no fun exercise. I did this over a year ago with my Asrock system, but of course did not record the exact steps, so I had to learn all over again. The best start is to use the Gentoo Handbook example. I used a combination of fdisk and\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":859,"url":"https:\/\/www.mgreene.org\/?p=859","url_meta":{"origin":270,"position":3},"title":"New System76 Darter Pro 10 with Gentoo","author":"Mike","date":"December 28, 2024","format":false,"excerpt":"I decided to get a System76 Darter Pro 10. It was to replace my Thinkbook 14s which was over 5 years old. The Thinkbook had been a replacement for an IdeaPad Y470p purchased early in 2012. Before the IdeaPad and Thinkbook, there were Thinkpads of various types. I had a\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2024\/12\/system76_DP_spec.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2024\/12\/system76_DP_spec.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2024\/12\/system76_DP_spec.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":14,"url":"https:\/\/www.mgreene.org\/?p=14","url_meta":{"origin":270,"position":4},"title":"Gentoo and LibreOffice 3.4","author":"Mike","date":"June 8, 2011","format":false,"excerpt":"Updated my Gentoo systems to LibreOffice 3.4 and none of the components would start: Could not launch 'LibreOffice 3.4 [fill in component]'Failed to execute child process\"libreoffice3.4\" (No such file or directory)Looks like a Gentoo error. The desktop commands are installed (math as an example):libreoffice3.4 --math %Uwhen it should be:libreoffice --math\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":449,"url":"https:\/\/www.mgreene.org\/?p=449","url_meta":{"origin":270,"position":5},"title":"NUC7PJYH:  Installing Gentoo","author":"Mike","date":"January 3, 2021","format":false,"excerpt":"Start This project was a real rocky start. I was having a hard time booting off the USB and more trouble with a USB keyboard attached. However, when I could get the unit to boot, the chroot worked and I could compile. I was to the point think the unit\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270"}],"version-history":[{"count":0,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}