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/linuxquestions@lemmy.zip/p/2244268/networkmanager-on-kubuntu-doesn-t-run-on-startup)

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

you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 3 months ago (4 children)

sudo systemctl enable NetworkManager

In a terminal should just add it to start up when the service is enabled.

  • source
  • hideshow 4 child comments
  • [–] [S] 3 points 3 months ago (3 children)

    I get an error:

    Failed to enable unit: Unit NetworkManager.service does not exist

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 3 months ago* (last edited 3 months ago) (1 child)

    Oof,

    sudo apt install --reinstall network-manager

    Thats what I'd do instead of recrafting the service or whatever. Kubuntu ships with network manager so it seems broken to me but maybe someone who actually uses Kubuntu can be more insightful.

    Edit: wait I am dumb, you can't get to the internet huh?

    If you can't get to the internet, at least grep for the package

    dpkg -l | grep network-manager

    to see if it didnt get nuked somehow. If it prints to the console its there.

    Then you need to check the services in etc/systemd/system/ for one called NetworkManager. Its probably not there.

  • source
  • parent
  • hideshow 1 child comment