Skip to main content

offline install software on Debian (network-manager)

OS: Debian 8.6->testing

As I can't custom the WIFI DNS on Debian, I thought there are something wrong for network-manager & its settings. So, I uninstalled it with

sudo apt remove network-manager
sudo apt autoremove

It's really stupid to do it from current viewpoint as you are offline after then. You can't reinstall them from repository. 😣 Even I plugged the wired, no way.

After google, I used the 'dpkg' command to recover the network-manager from Debian archives as following:

sudo dpkg -i /var/cache/apt/archives/network-manager*.deb

After that, Debian prompts lack of dependency about libndp0 & libteamdct10. So, install them first with dpkg command:

sudo dpkg -i /var/cache/apt/archives/libndp*.deb
sudo dpkg -i /var/cache/apt/archives/libteamdct*.deb

Finally, repeat dpkg for network-manager*.deb, the problem solved. No need to reinstall.😂

Comments