How to copy network manager from 1 pc to another pc

Was für ein Dummkopf …
But to do that, he/she needed to have had admin rights.
Perhaps re-think whom you trust with these …

anyway:

the easiest is:
perhaps he/she just stopped the service (the program is still installed, but not active)
Then see @megavolt 's post to start and enable it again.

If it was uninstalled:
perhaps you can even save the step of having to reboot into a live system and using chroot like described
if you still have the package in the cache.
Then you’d simply need to do:

ls /var/cache/pacman/pkg/networkmanager*
to see if it is there - if there is more than one, use the one with the highest version in the next step:

sudo pacman -U /var/cache/pacman/pkg/networkmanager-xxx.pkg.tar.zst

which will install the package that was installed before - and then removed by the person - from the cache.

You should be able to use the TAB key to help you autocomplete the command and the name of the file so that no typo’s occur.

oh thanks

lol btw he is my kid

anyway another issue i cannot access internet unless i have go to terminal and type sudo dhcpcd
and everything working fine but after reboot network connection is working and connected but i have to go to terminal and type this command
what do you think what is the issue?

Thanks for try, but there was not pkg in my cache

Is the service running?

sudo systemctl status NetworkManager

Yes its running

Then please check the logs:

journalctl --boot 0 --unit NetworkManager.service --follow
hayan@hayan ~]$ journalctl --boot 0 --unit NetworkManager.service --follow
-- Journal begins at Fri 2021-11-12 19:54:10 PKT. --
Dec 06 01:14:58 hayan NetworkManager[371]: <info>  [1638735298.2887] device (wlp3s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Dec 06 01:14:58 hayan NetworkManager[371]: <info>  [1638735298.2894] manager: NetworkManager state is now CONNECTED_LOCAL
Dec 06 01:14:58 hayan NetworkManager[371]: <info>  [1638735298.2973] device (wlp3s0): Activation: successful, device activated.
Dec 06 01:15:00 hayan NetworkManager[371]: <info>  [1638735300.1718] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Dec 06 01:15:01 hayan NetworkManager[371]: <info>  [1638735301.1735] manager: startup complete
Dec 06 01:15:17 hayan NetworkManager[371]: <info>  [1638735317.7350] agent-manager: agent[bd137cadf90fbc61,:1.43/org.freedesktop.nm-applet/1000]: agent registered
Dec 06 01:15:45 hayan NetworkManager[371]: <warn>  [1638735345.0708] dhcp6 (wlp3s0): request timed out
Dec 06 01:15:45 hayan NetworkManager[371]: <info>  [1638735345.0709] dhcp6 (wlp3s0): state changed unknown -> timeout
Dec 06 01:15:45 hayan NetworkManager[371]: <info>  [1638735345.0710] dhcp6 (wlp3s0): canceled DHCP transaction
Dec 06 01:15:45 hayan NetworkManager[371]: <info>  [1638735345.0710] dhcp6 (wlp3s0): state changed timeout -> terminated

Thank You very much for your prompt response and warm welcome

1 Like

Well it tries to request a IPv6 address, but it timed out. I would rather say, it is because another service already requested a IP address.

dhcpcd is a different client than NetworkManager and therefore blocks it.

What should i do now, i mean, what do you suggest

Disconnect and try again to connect with the NetworkManager… it could take some time. Check the log…

how ? i mean straight just click on disconnect or with terminal

i think give me a command that can reconnect in terminal and i can watch logs as well then i will paste for you

reconnect the wifi:

sudo ip link set wlp3s0 down
sudo ip link set wlp3s0 up

Open the tui of NetworkManager

nmtui connect

Connect to the correct SSID…

done

and still if i ping manjaro.org it says ping: connect: Network is unreachable but my wifi is connected,
but no internet, if i will type dhcpcd it will start work again and whatever we disconnect it, it will automatically connect and start working
it will not work after reboot

but this works?

ping -4 116.203.91.91

No, its not working same Network is unreachable

You cannot run 2 dhcp client at the same time, they will block each other.

Sorry, cannot help your here… at least here are some useful links:

dhcpcd - ArchWiki
NetworkManager - ArchWiki

i am not sure i am running 2 DHCP client even if i force it to run its running but as you are expert i believe you :stuck_out_tongue:

how can i check which DHCP client i am running right now and how i can uninstall 1 of them

Thanks

First ask you lovely child, what he has done and if he installed something else. Otherwise, you have to check the services:

sudo systemctl

Here is a list of dhcp clients and networkmanagers: Network configuration - ArchWiki

Then stop and disable it like that:

sudo systemctl disable --now dhcpd4.service

Note: NetworkManager has its own dhcp client builtin.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.