You are not logged in.

#1 2021-07-26 12:31:37

arupy
Member
Registered: 2021-05-26
Posts: 6

[SOLVED] Systemd Failure after installing CUPS and AVAHI

Background

To set up my network printers, I installed CUPS and AVAHI following the instructions on https://wiki.archlinux.org/title/CUPS. Following editing the nsswitch.conf file, my wifi stopped working and then trying to restart the network service, I got the message that I was no longer in the sudoers file and unable to sudo. I restarted my laptop but now systemd fails to start Network, D-Bus, or User Login Services, so I am unable to boot.

Code

sudo pacman -S cups
sudo systemctl enable cups.service --now
sudo pacman -S  nss-mdms
sudo systemctl enable avahi-daemon.service --now
sudo nano /etc/nsswitch.conf

Last edited by arupy (2021-07-26 13:41:10)

Offline

#2 2021-07-26 12:49:07

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Systemd Failure after installing CUPS and AVAHI

What are the contents of /etc/nsswitch.conf?


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#3 2021-07-26 13:41:49

arupy
Member
Registered: 2021-05-26
Posts: 6

Re: [SOLVED] Systemd Failure after installing CUPS and AVAHI

Thank you. I found it; was a typo.

# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.

passwd: files systemd
group: files [SUCCESS=merge] systemd
shadow: files

publickey: files

hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return} resolve [!UNAVAIL=return] dns
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files
nsswitch.conf (END)

Offline

#4 2021-07-26 13:50:55

progandy
Member
Registered: 2012-05-17
Posts: 5,321

Re: [SOLVED] Systemd Failure after installing CUPS and AVAHI

That happens sometimes. One key off and the square bracket becomes curly.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

Board footer

Powered by FluxBB