Re: NetworkManager "nmcli device" saying eth0 and wlan0 are "unavailable"

"Subhrajit Sain" ([email protected] via blfs-support Mailing List) <[email protected]> Mon, 27 Apr 2026 13:02:53 +0530
Newsgroups gmane.linux.lfs.beyond.support
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1777275193-1253-26592
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Hi Bruce,
I am very sorry for the trouble caused, the HTML formatting is done by my email client. I have switched and will stick to plain-text. Lets go step by step:

I have removed my S80dbus and S85networkmanager symbolic links from rcS.d.

My current rcS.d:
root@mrrpos:[ / ]# ls -n /etc/rc.d/rcS.d
total 0
lrwxrwxrwx 1 0 0 21 Jun 10  2025 S00mountvirtfs -> ../init.d/mountvirtfs
lrwxrwxrwx 1 0 0 14 Jun 10  2025 S05udev -> ../init.d/udev
lrwxrwxrwx 1 0 0 17 Jun 10  2025 S10modules -> ../init.d/modules
lrwxrwxrwx 1 0 0 14 Jun 10  2025 S20swap -> ../init.d/swap
lrwxrwxrwx 1 0 0 17 Jun 10  2025 S30checkfs -> ../init.d/checkfs
lrwxrwxrwx 1 0 0 17 Jun 10  2025 S40mountfs -> ../init.d/mountfs
lrwxrwxrwx 1 0 0 17 Jun 10  2025 S45cleanfs -> ../init.d/cleanfs
lrwxrwxrwx 1 0 0 20 Jun 10  2025 S50udev_retry -> ../init.d/udev_retry
lrwxrwxrwx 1 0 0 16 Jun 10  2025 S60sysctl -> ../init.d/sysctl
lrwxrwxrwx 1 0 0 17 Jun 10  2025 S70console -> ../init.d/console
lrwxrwxrwx 1 0 0 18 Jun 10  2025 S75localnet -> ../init.d/localnet

My rc3.d and rc5.d are shown below:
root@mrrpos:[ / ]# ls -n /etc/rc.d/rc3.d
total 4
lrwxrwxrwx 1 0 0  24 Nov 29 06:47 K70networkmanager -> ../init.d/networkmanager
lrwxrwxrwx 1 0 0  14 Nov 29 06:48 K80dbus -> ../init.d/dbus
-rwxr-xr-x 1 0 0 242 Jun 28  2025 S10fontface
lrwxrwxrwx 1 0 0  18 Jun 10  2025 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 0 0  18 Jun 26  2025 S19iptables -> ../init.d/iptables
lrwxrwxrwx 1 0 0  16 Jun 24  2025 S25random -> ../init.d/random
lrwxrwxrwx 1 0 0  14 Jun 27  2025 S28krb5 -> ../init.d/krb5
lrwxrwxrwx 1 0 0  14 Sep 13  2025 S29dbus -> ../init.d/dbus
lrwxrwxrwx 1 0 0  24 Nov 29 06:47 S30networkmanager -> ../init.d/networkmanager
lrwxrwxrwx 1 0 0  14 Jun 29  2025 S30sshd -> ../init.d/sshd
lrwxrwxrwx 1 0 0  24 Apr 26 08:52 S33networkmanager -> ../init.d/networkmanager
lrwxrwxrwx 1 0 0  13 Jun 27  2025 S70gpm -> ../init.d/gpm
root@mrrpos:[ / ]# ls -n /etc/rc.d/rc5.d
total 0
lrwxrwxrwx 1 0 0 24 Nov 29 06:47 K70networkmanager -> ../init.d/networkmanager
lrwxrwxrwx 1 0 0 14 Nov 29 06:48 K80dbus -> ../init.d/dbus
lrwxrwxrwx 1 0 0 18 Jun 10  2025 S10sysklogd -> ../init.d/sysklogd
lrwxrwxrwx 1 0 0 18 Jun 26  2025 S19iptables -> ../init.d/iptables
lrwxrwxrwx 1 0 0 16 Jun 24  2025 S25random -> ../init.d/random
lrwxrwxrwx 1 0 0 14 Jun 27  2025 S28krb5 -> ../init.d/krb5
lrwxrwxrwx 1 0 0 14 Sep 13  2025 S29dbus -> ../init.d/dbus
lrwxrwxrwx 1 0 0 24 Nov 29 06:47 S30networkmanager -> ../init.d/networkmanager
lrwxrwxrwx 1 0 0 14 Jun 29  2025 S30sshd -> ../init.d/sshd
lrwxrwxrwx 1 0 0 24 Apr 26 08:52 S33networkmanager -> ../init.d/networkmanager
lrwxrwxrwx 1 0 0 13 Jun 27  2025 S70gpm -> ../init.d/gpm

FYI, I had already removed my network symbolic links from both these directories. But the BLFS book 12.3 does not state to remove the symlinks, the note only states:
---
To automatically start the NetworkManager daemon when the
            system is rebooted, install the /etc/rc.d/init.d/networkmanager bootscript from
            the blfs-bootscripts-20250225 package.

 Note

If using Network Manager to
              manage an interface, any previous configuration for that
              interface should be removed, and the interface brought down
              prior to starting Network
              Manager.

make install-networkmanager
---
And that is about it, but I already removed the "network" symlink from both.

Devices shown in /sys/class/net:
root@mrrpos:[ / ]# ls /sys/class/net
eth0  lo  wlan0

NM Polkit rules:
root@mrrpos:[ / ]# cat /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules
polkit.addRule(function(action, subject) {
	if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 && subject.isInGroup("netdev")) {
		return polkit.Result.YES;
	}
});

NM config files:
root@mrrpos:[ / ]# ls /etc/NetworkManager/conf.d
dhcp.conf  no-dns-update.conf.bak  polkit.conf

dhcp.conf:
root@mrrpos:[ / ]# cat /etc/NetworkManager/conf.d/dhcp.conf 
[main]
dhcp=dhcpcd

no-dns-update.conf.bak (renamed so that it does not run):
root@mrrpos:[ / ]# cat /etc/NetworkManager/conf.d/no-dns-update.conf.bak 
[main]
dns=none

polkit.conf:
root@mrrpos:[ / ]# cat /etc/NetworkManager/conf.d/polkit.conf            
[main]
auth-polkit=true

Additionally, /etc/resolv.conf:
root@mrrpos:[ / ]# cat /etc/resolv.conf
# Cloudflare and Google DNS
nameserver 1.1.1.1
nameserver 1.0.0.1
nameserver 8.8.8.8
nameserver 8.4.4.8


I will try to post only plain-text emails to the lists from now on.

Thank you,
Subhrajit Sain.
https://anw.is-a.dev


---


From: "Bruce Dubbs" ([email protected] via blfs-support Mailing List) <[email protected]>
To: <[email protected]>
Date: Mon, 27 Apr 2026 10:40:50 +0530
Subject: Re: [blfs-support] NetworkManager "nmcli device" saying eth0 and wlan0 are "unavailable"

 > On 4/26/26 7:11 AM, Subhrajit Sain ([email protected] via blfs-support Mailing List) 
 > wrote: 
 > > Hello BLFS Support Team, 
 > > I have been working on this BLFS system called MrrpOS (Book 12.3, SysV). This is my 
 > > second problem sent via email. Recently I have switched from manual wpa_supplicant 
 > > and dhcpcd init scripts to NetworkManager (1.50.0), but I am facing some trouble in 
 > > doing so. The loopback interface lo works (set up externally by an init script) but 
 > > eth0 and wlan0 are shown as unavailable. 
 > > 
 > > My device does not have Ethernet plugged in, that maybe the cause for eth0 being 
 > > unavailable. But, wlan0 is stated as unavailable as well. 
 > > 
 > > root@mrrpos:[ / ]# ls -n /etc/rc.d/rcS.d 
 > > total 0 
 > > lrwxrwxrwx 1 0 0 21 Jun 10  2025 S00mountvirtfs -> ../init.d/mountvirtfs 
 > > lrwxrwxrwx 1 0 0 14 Jun 10  2025 S05udev -> ../init.d/udev 
 > > lrwxrwxrwx 1 0 0 17 Jun 10  2025 S10modules -> ../init.d/modules 
 > > lrwxrwxrwx 1 0 0 14 Jun 10  2025 S20swap -> ../init.d/swap 
 > > lrwxrwxrwx 1 0 0 17 Jun 10  2025 S30checkfs -> ../init.d/checkfs 
 > > lrwxrwxrwx 1 0 0 17 Jun 10  2025 S40mountfs -> ../init.d/mountfs 
 > > lrwxrwxrwx 1 0 0 17 Jun 10  2025 S45cleanfs -> ../init.d/cleanfs 
 > > lrwxrwxrwx 1 0 0 20 Jun 10  2025 S50udev_retry -> ../init.d/udev_retry 
 > > lrwxrwxrwx 1 0 0 16 Jun 10  2025 S60sysctl -> ../init.d/sysctl 
 > > lrwxrwxrwx 1 0 0 17 Jun 10  2025 S70console -> ../init.d/console 
 > > lrwxrwxrwx 1 0 0 18 Jun 10  2025 S75localnet -> ../init.d/localnet 
 > > lrwxrwxrwx 1 0 0 21 Apr 26  2026 S80dbus -> /etc/rc.d/init.d/dbus 
 > > lrwxrwxrwx 1 0 0 31 Apr 26  2026 S85networkmanager -> /etc/rc.d/init.d/networkmanager 
 >  
 > If you are following LFS, the dbus and network manager boot scripts should not be in 
 > /etc/rc.d/rcS.d.  They should be in /etc/rc.d/rc3.d  and /etc/rc.d/rc5.d 
 >  
 > You do not show what is in rc3.d or rc5.d, but normally they will have 
 > S20network and S29dbus. 
 >  
 > That network line will interfere with networkmanager.  What we say in the 
 > networkmanager page in the book is: 
 >  
 > "If using Network Manager to manage an interface, any previous configuration for that 
 > interface should be removed, and the interface brought down prior to starting Network 
 > Manager. 
 >  
 > The easiest way to do this is to remove S20network from /etc/rc.d/rc3.d/ and 
 > /etc/rc.d/rc5.d/." 
 >  
 > I don't know if you did that or not. 
 >  
 > If that is done, the first thing to do troubleshooting is 
 > $ ls /sys/class/net 
 > eth0  lo  wlp6s0 
 >  
 > That will identify the interfaces the kernel recognizes. 
 >  
 > The second thing is to post what you have for 
 > /usr/share/polkit-1/rules.d/org.freedesktop.NetworkManager.rules and 
 > all the files in /etc/NetworkManager/conf.d. 
 >  
 > Also please try to post to the lists without html.  Your messages come across with 
 > very tiny fonts. It's also much easier for us to help if text is copied into the 
 > email instead of pictures. 
 >  
 >  -- Bruce 
 >  
 > -- 
 > http://lists.linuxfromscratch.org/sympa/info/blfs-support 
 > Unsubscribe: See the above information page 
 > 


------------=_1777275193-1253-26592
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-support
Unsubscribe: See the above information page

------------=_1777275193-1253-26592--