You are not logged in.

#1 2017-09-21 21:30:44

aaronfranke0
Member
From: On The Internet
Registered: 2017-09-21
Posts: 5
Website

[SOLVED] Unit NetworkManager.service could not be found

I installed Arch a few months ago and it worked fine. Now, there's no network connection, and I can't even seem to start the network manager service.

https://bbs.archlinux.org/viewtopic.php?id=170524 suggests running these commands, and here's the output:

$ systemctl status NetworkManager
Unit NetworkManager.service could not be found
$ systemctl restart NetworkManager
Failed to restart NetworkManager.service: Unit NetworkManager.service not found
$ systemctl enable NetworkManager
Failed to enable unit: File NetworkManager.service: No such file or directory

Also, the config file /etc/NetworkManager/NetworkManager.conf mentioned in the wiki https://wiki.archlinux.org/index.php/Ne … orkManager doesn't seem to exist:

$ ls /etc/NetworkManager
dispatcher.d

The wiki also suggests "NetworkManager can be installed with the package networkmanager." But

sudo pacman -S networkmanager

fails because there's no network connection.

Last edited by aaronfranke0 (2017-09-22 01:51:24)


PC & Linux Enthusiast, Ubuntu user

Offline

#2 2017-09-21 21:33:43

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Unit NetworkManager.service could not be found

Please paste the output of `pacman -Q networkmanager linux && uname -r`


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-09-21 21:35:39

aaronfranke0
Member
From: On The Internet
Registered: 2017-09-21
Posts: 5
Website

Re: [SOLVED] Unit NetworkManager.service could not be found

$ pacman -Q networkmanager linux && uname -r
error: package 'networkmanager' was not found
linux 4.10.10-1

PC & Linux Enthusiast, Ubuntu user

Offline

#4 2017-09-21 21:37:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Unit NetworkManager.service could not be found

Please paste your full pacman.log


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-09-21 21:48:05

aaronfranke0
Member
From: On The Internet
Registered: 2017-09-21
Posts: 5
Website

Re: [SOLVED] Unit NetworkManager.service could not be found

Is it supposed to be nearly empty? This is also the only file in /var/log.

$ cat /var/log/pacman.log
[2017-09-21 16:29] [PACMAN] Running 'pacman -S networkmanager'

Pacman takes forever to fail to install networkmanager. It prints out this when I try:

$ sudo pacman -S networkmanager
[sudo] password for aaronfranke:
resolving dependencies...
looking for conflicting packages...

Packages (11) bluez-libs-5.44-1  gpm-1.20.7-7  libndp-1.6-1  libnewt-0.52.19-3
              libpgm-5.2.122-2  libsodium-1.0.12-1  libteam-1.26-1
              slang-2.3.1a-1  wpa_supplicant-1:2.6-4  zeromq-4.2.1-1
              networkmanager-1.6.2-3

Total Download Size: 4.89 MiB
Total Installed Size: 22.98 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
error: failed retrieving file 'wpa_supplicant-1:2.6-4-x86_64.pkg.tar.xz' from archlinux.polymorf.fr : Resolving timed out after 10522 milliseconds
^C
Interrupt signal received

I just ended it there because the process repeats a similar error for each package.

I hope that was all worth it lol, I had to type that out manually. Can't copy-paste to the forum from a VM with no internet connection sad


PC & Linux Enthusiast, Ubuntu user

Offline

#6 2017-09-21 21:51:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Unit NetworkManager.service could not be found

aaronfranke0 wrote:

Is it supposed to be nearly empty? This is also the only file in /var/log.

$ cat /var/log/pacman.log
[2017-09-21 16:29] [PACMAN] Running 'pacman -S networkmanager'

No. If that is it in it's entirety, something horrific has happened.


I had to type that out manually. Can't copy-paste to the forum from a VM with no internet connection sad

Copy it to the machine you are using.

We need the ability to see full logs. If you can't provide those, we can't help.

#edit: if NM was never installed, how were you managing your network? How did you install Arch?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2017-09-21 21:54:17

aaronfranke0
Member
From: On The Internet
Registered: 2017-09-21
Posts: 5
Website

Re: [SOLVED] Unit NetworkManager.service could not be found

That's all that comes up every time I try.

$ cd /var/log
$ ls
pacman.log
$ cat pacman.log
[2017-09-21 16:29] [PACMAN] Running 'pacman -S networkmanager'
[2017-09-21 16:41] [PACMAN] Running 'pacman -S networkmanager'
[2017-09-21 16:49] [PACMAN] Running 'pacman -S networkmanager'

PC & Linux Enthusiast, Ubuntu user

Offline

#8 2017-09-21 21:57:14

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Unit NetworkManager.service could not be found

Then read through your (and root's) shell history to see what you have done to cause this...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2017-09-21 22:51:23

aaronfranke0
Member
From: On The Internet
Registered: 2017-09-21
Posts: 5
Website

Re: [SOLVED] Unit NetworkManager.service could not be found

Hmm, I think I've managed to fix it myself. While NetworkManager wasn't installed, I was able to get an internet connection using

sudo systemctl stop dhcpcd
sudo systemctl start dhcpcd

Then I was able to sudo pacman -Syyu, install networkmanager, and run it.


PC & Linux Enthusiast, Ubuntu user

Offline

#10 2017-09-21 23:11:39

circleface
Member
Registered: 2012-05-26
Posts: 639

Re: [SOLVED] Unit NetworkManager.service could not be found

Make sure you remember to mark your thread as solved by prepending [SOLVED] to the title of the first post.

Offline

Board footer

Powered by FluxBB