From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: service 'dhcpv4-daemon' requires 'networking', which is not provided by any service Date: Fri, 5 Apr 2019 20:34:28 +0200 (CEST) Message-ID: References: <87zhp4wgg2.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7903_341373171.1554489268203" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:35983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCTgR-000537-9k for help-guix@gnu.org; Fri, 05 Apr 2019 14:35:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCTgA-0000CI-1J for help-guix@gnu.org; Fri, 05 Apr 2019 14:35:12 -0400 Received: from w1.tutanota.de ([81.3.6.162]:34892) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCTft-00083g-J7 for help-guix@gnu.org; Fri, 05 Apr 2019 14:35:05 -0400 In-Reply-To: <87zhp4wgg2.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: Help Guix ------=_Part_7903_341373171.1554489268203 Content-Type: multipart/alternative; boundary="----=_Part_7904_173318200.1554489268203" ------=_Part_7904_173318200.1554489268203 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, Ricardo Wurmus! I have rewrote my config, including all modifications into the one (modify-= services) function, I've added dhcp-client-service-type to (services) secti= on. But networking is not running after reconfigure. # guix system reconfigure /etc/config.scm ...console-font-tty3 console-font-tty4 console-font-tty5 console-font-tty6 = virtual-terminal dbus-system elogind upower-daemon wpa-supplicant xorg-serv= er networking... To complete the upgrade, run 'herd restart SERVICE' to stop, upgrade, and restart each service that was not automatically restarted. shepherd: Evaluating user expression (let* ((services (map primitive-load (= ?))) # ?) ?). shepherd: Service user-homes could not be started. shepherd: Service term-auto could not be started. shepherd: Service networking could not be started. bootloader successfully installed on '/dev/sda' # tail -n150 /var/log/messages ... Apr=C2=A0 5 21:17:18 localhost nscd: 335 monitored file `/etc/hosts` was de= leted, removing watch Apr=C2=A0 5 21:17:18 localhost nscd: 335 monitored file `/etc/hosts` was cr= eated, adding watch Apr=C2=A0 5 21:17:18 localhost nscd: 335 monitored file `/etc/services` was= deleted, removing watch Apr=C2=A0 5 21:17:18 localhost nscd: 335 monitored file `/etc/services` was= created, adding watch Apr=C2=A0 5 21:17:18 localhost shepherd[1]: Evaluating user expression (let= * ((services (map primitive-load (?))) # ?) ?).=20 Apr=C2=A0 5 21:17:19 localhost shepherd[1]: Service user-homes could not be= started.=20 Apr=C2=A0 5 21:17:19 localhost shepherd[1]: Service term-auto could not be = started.=20 Apr=C2=A0 5 21:17:19 localhost vmunix: [ 1821.593856] 0000:03:00.0: Missing= Free firmware (non-Free firmware loading is disabled) Apr=C2=A0 5 21:17:19 localhost vmunix: [ 1821.593895] r8169 0000:03:00.0 en= p3s0: unable to load firmware patch /*(DEBLOBBED)*/ (-2) Apr=C2=A0 5 21:17:19 localhost vmunix: [ 1821.594150] Generic PHY r8169-300= :00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=3Dr8169-300:00, ir= q=3DIGNORE) Apr=C2=A0 5 21:17:19 localhost vmunix: [ 1821.694129] r8169 0000:03:00.0 en= p3s0: Link is Down Apr=C2=A0 5 21:17:19 localhost dhclient: Unsupported device type 65534 for = "tun0" Apr=C2=A0 5 21:17:19 localhost dhclient:=20 Apr=C2=A0 5 21:17:19 localhost dhclient: If you think you have received thi= s message due to a bug rather Apr=C2=A0 5 21:17:19 localhost dhclient: than a configuration issue please = read the section on submitting Apr=C2=A0 5 21:17:19 localhost dhclient: bugs on either our web page at www= .isc.org or in the README file Apr=C2=A0 5 21:17:19 localhost dhclient: before submitting a bug.=C2=A0 The= se pages explain the proper Apr=C2=A0 5 21:17:19 localhost dhclient: process and the information we fin= d helpful for debugging. Apr=C2=A0 5 21:17:19 localhost dhclient:=20 Apr=C2=A0 5 21:17:19 localhost dhclient: exiting. Apr=C2=A0 5 21:17:19 localhost shepherd[1]: Service networking could not be= started. During boot I saw: rfkill: WLAN soft blocked, and after start up I've made = sure of it: # rfkill list 0: ideapad_wlan: Wireless LAN =C2=A0=C2=A0=C2=A0 Soft blocked: yes =C2=A0=C2=A0=C2=A0 Hard blocked: no 1: phy0: Wireless LAN =C2=A0=C2=A0=C2=A0 Soft blocked: yes =C2=A0=C2=A0=C2=A0 Hard blocked: no 2: ideapad_bluetooth: Bluetooth =C2=A0=C2=A0=C2=A0 Soft blocked: yes =C2=A0=C2=A0=C2=A0 Hard blocked: no I do not know how to overcome this soft blocking of wlan. In other distribu= tion I added to blacklist ideapad_laptop and it worked, but here when I add= ideapad_laptop to modprobe blacklist, ifconfig does not see any interface = but only phy0. I think this soft blocking happens because I have bluetooth = and wifi and may be they conflicts using one driver? I want to disable blue= tooth at all, but lines in my config do not help: (remove (lambda (service) (eq? (service-kind service) bluetooth-service)) Let me know if there is any way to solve all these troubles? Apr 5, 2019, 4:43 PM by rekado@elephly.net: > > znavko@tutanota.com > writes: > >> I am an anti-fan of NetworkManager. I need wpa_supplicant with dhcp, I >> try this config with dhcpcd. But it needs networking service. Please, >> how to add networking service without adding >> network-manager-service-type? >> > > Don=E2=80=99t setup a dhcp daemon then, but use dhcp-client-service-type.= Quoth > the manual: > > -- Scheme Variable: dhcp-client-service-type > This is the type of services that run DHCP, a Dynamic Host > Configuration Protocol (DHCP) client, on all the non-loopback > network interfaces. Its value is the DHCP client package to use, > =E2=80=98isc-dhcp=E2=80=99 by default. > > -- > Ricardo > ------=_Part_7904_173318200.1554489268203 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello, Ricardo Wurmus!
I have rewrote my config, including all modifica= tions into the one (modify-services) function, I've added dhcp-client-servi= ce-type to (services) section.

But networking is not running after reconfigure.

# guix system reconfigure /= etc/config.scm
...console-font-tty3 console-font-tty4 console-font-tty5 console-= font-tty6 virtual-terminal dbus-system elogind upower-daemon wpa-supplicant= xorg-server networking...
To complete the upgrade, run 'herd restart SERVICE' to stop,
upgrade, and restart each service that = was not automatically restarted.
shepherd: Evaluating user expression (let* ((services (map primitive= -load (?))) # ?) ?).
sheph= erd: Service user-homes could not be started.
shepherd: Service term-auto could not be started.
shepherd: Service networking co= uld not be started.
bootlo= ader successfully installed on '/dev/sda'

# tail -n150 /var/log/messages
...
Apr  5 21:17:18 localhost nscd: 335 monitored file `/et= c/hosts` was deleted, removing watch
Apr  5 21:17:18 localhost nscd: 335 monitored file `/etc/ho= sts` was created, adding watch
Apr  5 21:17:18 localhost nscd: 335 monitored file `/etc/services= ` was deleted, removing watch
Apr  5 21:17:18 localhost nscd: 335 monitored file `/etc/services`= was created, adding watch
Apr  5 21:17:18 localhost shepherd[1]: Evaluating user expression (le= t* ((services (map primitive-load (?))) # ?) ?).
Apr  5 21:17:19 localhost shepherd[1]: Service= user-homes could not be started.
Apr  5 21:17:19 localhost shepherd[1]: Service term-auto cou= ld not be started.
Apr&nb= sp; 5 21:17:19 localhost vmunix: [ 1821.593856] 0000:03:00.0: Missing Free = firmware (non-Free firmware loading is disabled)
Apr  5 21:17:19 localhost vmunix: [ 1821.593895= ] r8169 0000:03:00.0 enp3s0: unable to load firmware patch /*(DEBLOBBED)*/ = (-2)
Apr  5 21:17:19 = localhost vmunix: [ 1821.594150] Generic PHY r8169-300:00: attached PHY dri= ver [Generic PHY] (mii_bus:phy_addr=3Dr8169-300:00, irq=3DIGNORE)
=
Apr  5 21:17:19 localhost vmun= ix: [ 1821.694129] r8169 0000:03:00.0 enp3s0: Link is Down
Apr  5 21:17:19 localhost dhclient: U= nsupported device type 65534 for "tun0"
Apr  5 21:17:19 localhost dhclient:
Apr  5 21:17:19 localhost dhclient: If y= ou think you have received this message due to a bug rather
Apr  5 21:17:19 localhost dhclient: = than a configuration issue please read the section on submitting
<= div style=3D"16px" text-align=3D"left">Apr  5 21:17:19 localhost dhcli= ent: bugs on either our web page at www.isc.org or in the README file
Apr  5 21:17:19 localhost = dhclient: before submitting a bug.  These pages explain the proper
=
Apr  5 21:17:19 localhos= t dhclient: process and the information we find helpful for debugging.
<= /div>
Apr  5 21:17:19 localhost= dhclient:
Apr  5 21= :17:19 localhost dhclient: exiting.
Apr  5 21:17:19 localhost shepherd[1]: Service networking co= uld not be started.

During boot I saw: rfkill: WLAN soft blocked, and after start up = I've made sure of it:
# rf= kill list
0: ideapad_wlan: Wireless LAN
    Soft block= ed: yes
    Hard blocked: no
1: phy0: Wireless LAN
=     Soft blocked: yes
    Hard blocked: no=
2: ideapad_bluetooth: Bluetooth
    Soft blocked: yes=
    Hard blocked: no

I do not kn= ow how to overcome this soft blocking of wlan. In other distribution I adde= d to blacklist ideapad_laptop and it worked, but here when I add ideapad_la= ptop to modprobe blacklist, ifconfig does not see any interface but only ph= y0. I think this soft blocking happens because I have bluetooth and wifi an= d may be they conflicts using one driver? I want to disable bluetooth at al= l, but lines in my config do not help:
(remove (lambda (service) (eq? (service-kind service) bluetoot= h-service))

Let me know if there is any way to solv= e all these troubles?

Apr 5, 2019, 4:43 PM by rekado@elephly.net:

I am an anti-fan of NetworkManager. I need wpa_supplicant with dh= cp, I
try this config with dhcpcd. But it need= s networking service. Please,
how to add netwo= rking service without adding
network-manager-s= ervice-type?

Don=E2=80=99t setup a dhcp daemon then, but use dhcp-client-servi= ce-type. Quoth
the manual:

-- Scheme Variable: dhcp-client-se= rvice-type
This is the type of services that r= un DHCP, a Dynamic Host
Configuration Protocol= (DHCP) client, on all the non-loopback
networ= k interfaces. Its value is the DHCP client package to use,
=E2=80=98isc-dhcp=E2=80=99 by default.

--
Ricard= o

------=_Part_7904_173318200.1554489268203-- ------=_Part_7903_341373171.1554489268203 Content-Type: application/octet-stream; name=config-wpa-dhclient.conf Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=config-wpa-dhclient.conf Ozt0aGlzIGlzIHpuYXZrbydzIGN1dGUgY29uZmlnCgoodXNlLW1vZHVsZXMgKGdudSkgKGdudSBz eXN0ZW0gbnNzKQogICAgICAgICAgICAgKGdudSBzeXN0ZW0gbG9jYWxlKSA7O2ZvciBsb2NhbGUt ZGVmaW5pdGlvbgogICAgICAgICAgICAgKGdudSBzZXJ2aWNlcyBkZXNrdG9wKQogICAgICAgICAg ICAgOzsoZ251IHNlcnZpY2VzIGRucykgOztmb3IgZG5zbWFzcQogICAgICAgICAgICAgKHNyZmkg c3JmaS0xKSA7O2ZvciByZW1vdmUgZnVuY3Rpb24KICAgICAgICAgICAgIChnbnUgc2VydmljZXMg bmV0d29ya2luZykgOztmb3IgcmVtb3ZlIG50cAogICAgICAgICAgICAgKGdudSBzZXJ2aWNlcyBh dmFoaSkgOztmb3IgcmVtb3ZlIGF2YWhpCiAgICAgICAgICAgICAoZ251IHNlcnZpY2VzIHhvcmcp CiAgICAgICAgICAgICA7OyhnbnUgc2VydmljZXMgZGF0YWJhc2VzKTs7Zm9yIHBvc3RncmVzCiAg ICAgICAgICAgICAoZ251IHBhY2thZ2VzIGFkbWluKSA7O2ZvciB3cGFfc3VwcGxpY2FudAopCih1 c2Utc2VydmljZS1tb2R1bGVzIGRlc2t0b3ApCih1c2UtcGFja2FnZS1tb2R1bGVzIGNlcnRzIGdu b21lKQoKKG9wZXJhdGluZy1zeXN0ZW0gKGhvc3QtbmFtZSAiYW50ZWxvcGUiKSAodGltZXpvbmUg IkV1cm9wZS9Nb3Njb3ciKSAobG9jYWxlICJlbl9VUy51dGY4IikKICAoYm9vdGxvYWRlciAoYm9v dGxvYWRlci1jb25maWd1cmF0aW9uCiAgICAgICAgICAgICAgICAoYm9vdGxvYWRlciBncnViLWJv b3Rsb2FkZXIpCiAgICAgICAgICAgICAgICAodGFyZ2V0ICIvZGV2L3NkYSIpKSkKICAoZmlsZS1z eXN0ZW1zIChjb25zIChmaWxlLXN5c3RlbQogICAgICAgICAgICAgICAgICAgICAgICAoZGV2aWNl ICIvZGV2L3NkYTEiKSAobW91bnQtcG9pbnQgIi8iKSAodHlwZSAiZXh0NCIpKQogICAgICAgICAg ICAgICAgICAgICAgJWJhc2UtZmlsZS1zeXN0ZW1zKSkKICAoc3dhcC1kZXZpY2VzICcoIi9kZXYv c2RhMiIpKQoKICAodXNlcnMgKGNvbnMqICh1c2VyLWFjY291bnQgKG5hbWUgImJvYiIpIChncm91 cCAidXNlcnMiKQogICAgICAgICAgICAgICAgKHN1cHBsZW1lbnRhcnktZ3JvdXBzICcoIndoZWVs IiAibmV0ZGV2IiAiYXVkaW8iICJ2aWRlbyIpKQogICAgICAgICAgICAgICAgKGhvbWUtZGlyZWN0 b3J5ICIvaG9tZS9ib2IiKSkKICAgICAgICAgICAgICAgICh1c2VyLWFjY291bnQgKG5hbWUgIm1v bSIpIChncm91cCAidXNlcnMiKQogICAgICAgICAgICAgICAgKHN1cHBsZW1lbnRhcnktZ3JvdXBz ICcoIndoZWVsIiAibmV0ZGV2IiAiYXVkaW8iICJ2aWRlbyIpKQogICAgICAgICAgICAgICAgKGhv bWUtZGlyZWN0b3J5ICIvaG9tZS9tb20iKSkKICAgICAgICAgICAgICAgJWJhc2UtdXNlci1hY2Nv dW50cykpCgogIDs7IFRoaXMgaXMgd2hlcmUgd2Ugc3BlY2lmeSBzeXN0ZW0td2lkZSBwYWNrYWdl cy4KICAocGFja2FnZXMgKGNvbnMqIG5zcy1jZXJ0cyAgICAgICAgIDtmb3IgSFRUUFMgYWNjZXNz CiAgICAgICAgICAgICAgICAgICBndmZzICAgICAgICAgICAgICA7Zm9yIHVzZXIgbW91bnRzCgkJ ICAgd3BhLXN1cHBsaWNhbnQKCQkgICBpc2MtZGhjcAogICAgICAgICAgICAgICAgICAgJWJhc2Ut cGFja2FnZXMpKQoKICAoc2VydmljZXMgKGNvbnMqICAKICAgICAgICAgICAgICA7OyhzZXJ2aWNl IHBvc3RncmVzcWwtc2VydmljZS10eXBlKQogICAgICAgICAgICAgIChzZXJ2aWNlIHhmY2UtZGVz a3RvcC1zZXJ2aWNlLXR5cGUpCgogICAgICAgICAgICAgIChzZXJ2aWNlIGRoY3AtY2xpZW50LXNl cnZpY2UtdHlwZSkKCiAgICAgICAgICAgICAgICAobW9kaWZ5LXNlcnZpY2VzICAgICAgCiAgICAg ICAgICAgICAgICAgIChyZW1vdmUgKGxhbWJkYSAoc2VydmljZSkKICAgICAgICAgICAgICAgICAg ICAoZXE/IChzZXJ2aWNlLWtpbmQgc2VydmljZSkgbnRwLXNlcnZpY2UtdHlwZSkpCiAgICAgICAg ICAgICAgICAgICAgKHJlbW92ZSAobGFtYmRhIChzZXJ2aWNlKQogICAgICAgICAgICAgICAgICAg ICAgKGVxPyAoc2VydmljZS1raW5kIHNlcnZpY2UpIGF2YWhpLXNlcnZpY2UtdHlwZSkpCiAgICAg ICAgICAgICAgICAgICAgICAocmVtb3ZlIChsYW1iZGEgKHNlcnZpY2UpCiAgICAgICAgICAgICAg ICAgICAgICAgIChlcT8gKHNlcnZpY2Uta2luZCBzZXJ2aWNlKSBibHVldG9vdGgtc2VydmljZSkp CgogICAgICAgICAgICAgICAgICAgICAgICAocmVtb3ZlIChsYW1iZGEgKHNlcnZpY2UpCiAgICAg ICAgICAgICAgICAgICAgICAgICAgKGVxPyAoc2VydmljZS1raW5kIHNlcnZpY2UpIG5ldHdvcmst bWFuYWdlci1zZXJ2aWNlLXR5cGUpKQoKICAgICAgICAgICAgICAgICAgICAgICAgICAgIChtb2Rp Znktc2VydmljZXMgJWRlc2t0b3Atc2VydmljZXMKICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKHNsaW0tc2VydmljZS10eXBlIGNvbmZpZyA9PgogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIChzbGltLWNvbmZpZ3VyYXRpb24KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICh4b3JnLWNvbmZpZ3VyYXRpb24KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgKHhvcmctY29uZmlndXJhdGlvbgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIChleHRyYS1jb25maWcgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgJygiU2VjdGlvbiBcIklucHV0Q2xhc3NcIgogICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICBJZGVudGlmaWVyIFwidG91Y2hwYWRcIgogICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBEcml2ZXIgXCJsaWJpbnB1dFwiCiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIE1hdGNoSXNUb3VjaHBhZCBcIm9u XCIKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgT3B0aW9uIFwi VGFwcGluZ1wiIFwib25cIgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICBFbmRTZWN0aW9uIikKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICkpKSkpCgog ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAod3BhLXN1cHBsaWNhbnQtc2VydmljZS10eXBl IGNvbmZpZyA9PgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICh3cGEtc3VwcGxpY2Fu dC1jb25maWd1cmF0aW9uCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoaW50ZXJm YWNlICJ3bHAyczAiKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNvbmZpZy1m aWxlICIvZXRjL3dwYV9zdXBwbGljYW50L3dwYV9zdXBwbGljYW50LmNvbmYiKSkpCgogICAgICAg ICAgICAgICAgICAgICAgICAgICAgICApICA7ZW5kIG9mIG1vZGlmeS1zZXJ2aWNlcyAybmQKCiAg ICAgICAgICAgICAgICAgICAgICAgICkgIDtlbmQgb2YgcmVtb3ZlIG5ldHdvcmstbWFuYWdlci1z ZXJ2aWNlLXR5cGUKICAgICAgICAgICAgICAgICAgICAgICkgIDtlbmQgb2YgcmVtb3ZlIGJsdWV0 b290aC1zZXJ2aWNlCiAgICAgICAgICAgICAgICAgICAgKSAgO2VuZCBvZiByZW1vdmUgYXZhaGkK ICAgICAgICAgICAgICAgICAgKSAgO2VuZCBvZiByZW1vdmUgbnRwCiAgICAgICAgICAgICAgICAg IChlbG9naW5kLXNlcnZpY2UtdHlwZQogICAgICAgICAgICAgICAgICAgIGMgPT4gKGVsb2dpbmQt Y29uZmlndXJhdGlvbiAoaGFuZGxlLWxpZC1zd2l0Y2ggJ2lnbm9yZSkpKQogICAgICAgICAgICAg ICAgKTs7ZW5kIG9mIG1vZGlmeS1zZXJ2aWNlcyAxc3QgZGVza3RvcC1zZXJ2aWNlcwogICkpOztl bmQgb2Ygc2VydmljZXMKCiAgOzsgQWxsb3cgcmVzb2x1dGlvbiBvZiAnLmxvY2FsJyBob3N0IG5h bWVzIHdpdGggbUROUy4KICAobmFtZS1zZXJ2aWNlLXN3aXRjaCAlbWRucy1ob3N0LWxvb2t1cC1u c3MpCgoKIChrZXJuZWwtYXJndW1lbnRzICcoIm1vZHByb2JlLmJsYWNrbGlzdD1wY3Nwa3Isc25k X3Bjc3Asd21pLGJsdWV0b290aCxwYXRhX2FjcGkiKSkKICAgICAgICAgICAgICAgICAgICAgOzsi bW9kcHJvYmUub3B0aW9ucy5hdGg5az1ub2h3Y3J5cHQiKSkKCik7O2VuZCBvZiBvcGVyYXRpbmct c3lzdGVtCgogIAoK ------=_Part_7903_341373171.1554489268203--