Score:0

wifi problem on ubuntu 20.04 after upgrade

cn flag

I installed ubuntu LTS 20.04 server on Raspberry 4 Model B and I tested the wifi it works well,but when i upgraded ubuntu the wifi is not working after this upgrade, Have you any idea about this problem?

thank you in advance.

Minsky avatar
mx flag
Did you check the `journalctl -e | grep NetworkManager`? That's where the service writes logs to.
BELHAJ Mohammed avatar
cn flag
Nothing appears
Minsky avatar
mx flag
run `systemctl restart NetworkManager.service` or try `systemctl start NetworkManager.service` and see if it works
BELHAJ Mohammed avatar
cn flag
Failed to start NetworkManager.service ,Unit NetworkManager not found
Minsky avatar
mx flag
Ok you could try installing a file, but before that try rebooting pc, and running the command I wrote again
BELHAJ Mohammed avatar
cn flag
yep. I rebooted Raspberry Pi and I executed the commands you wrote but not working
Score:0
mx flag

This is what I would do:

  • ls /lib/systemd/system/NetworkManager.service

double check that the output it's not found

  • If the file is not there, add the service unit back
[Unit]
Description=Network Manager
Documentation=man:NetworkManager(8)
Wants=network.target
After=network-pre.target dbus.service
Before=network.target 

[Service]
Type=dbus
BusName=org.freedesktop.NetworkManager
ExecReload=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0
#ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/sbin/NetworkManager --no-daemon
Restart=on-failure
# NM doesn't want systemd to kill its children for it
KillMode=process
CapabilityBoundingSet=CAP_NET_ADMIN CAP_DAC_OVERRIDE CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_MODULE CAP_AUDIT_WRITE CAP_KILL CAP_SYS_CHROOT

ProtectSystem=true
ProtectHome=read-only

[Install]
WantedBy=multi-user.target
Also=NetworkManager-dispatcher.service

# We want to enable NetworkManager-wait-online.service whenever this service
# is enabled. NetworkManager-wait-online.service has
# WantedBy=network-online.target, so enabling it only has an effect if
# network-online.target itself is enabled or pulled in by some other unit.
Also=NetworkManager-wait-online.service

Save into NetworkManager.service

  • Run sudo mv NetworkManager.service /lib/systemd/system/
  • start the service using systemctl start NetworkManager.service

Then update and upgrade.

BELHAJ Mohammed avatar
cn flag
I created the file NetworkManager in the /lib/systemd/system/NetworkManager.service and and I did what you wrote sir but don't worked with me
Minsky avatar
mx flag
What is the output?
BELHAJ Mohammed avatar
cn flag
here is the output of the 2 commands :ubuntu@ubuntu:/lib/systemd/system$ sudo mv NetworkManager.service /lib/systemd/system/ mv: 'NetworkManager.service' and '/lib/systemd/system/NetworkManager.service' are the same file ubuntu@ubuntu:/lib/systemd/system$ systemctl start NetworkManager.service Job for NetworkManager.service failed because the control process exited with error code. See "systemctl status NetworkManager.service" and "journalctl -xe" for details.
Minsky avatar
mx flag
It's telling you to run `journalctl -xe` after the last command
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.