I installed some updates and after a restart the network manager thing in the taskbar said NetworkManager wasnt running so i tried to run it in terminal and it said i didnt have permission so i ran it with sudo and it worked. How do I get it to automatically start?

(I also posted this here: https://piefed.social/c/linux4noobs@programming.dev/p/2244265/networkmanager-doesn-t-run-on-startup)

UPDATE:
fixed with sudo apt install --reinstall network-manager

  • 0xKesh@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    13
    ·
    19 days ago

    I just want to preface this by saying this is completely off the top of my head, so I may be slightly off, please do your own research before running anything blindly.

    You may need to enable the service. Do a quick reboot, and then check the status of Network manager:

    sudo systemctl status NetworkManager

    If you see that is says Disabled (usually in red text) then you will indeed need to enable it. First start the service:

    sudo systemctl start NetworkManager

    And then so it starts when you boot in, we finally enable:

    sudo systemctl enable NetworkManager

    Once that’s done, test by rebooting again and hopefully it should be up and running :)

    • HelloRoot@lemy.lol
      link
      fedilink
      English
      arrow-up
      4
      ·
      19 days ago

      sudo systemctl start NetworkManager

      And then so it starts when you boot in, we finally enable:

      sudo systemctl enable NetworkManager

      also from the top of my head - you can combine the two by adding a flag

      sudo systemctl enable --now NetworkManager

      That will enable and start it.


      Also make sure no conflicting network service is running. Common culprits are dhcpcd, netctl, and systemd-networkd. If they’re active, NM might not start and you might stop and disable them before starting NM. Not sure if that would apply to kubuntu or your particular setup, but I wanted to mention it just in case.