LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 11-15-2011, 10:41 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Rep: Reputation: 73
Question Remove Network Manager?


I know this has been discussed before but my Debian Linux machine has an icon in the top right that indicates my LAN connection is disconnected when in fact I am connected just fine. I was told I need to remove / delete this Gnome application but I'm just getting clarification from you guys before I make any changes to my system that could break something.

When I hoover my mouse pointer over the icon in the top right, it tells me "no network connection" but when I check my configuration and network in CLI, everything checks out fine.

How should I remedy this?
 
Old 11-15-2011, 10:58 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, Slackware
Posts: 1,217

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
This is normal and it's because NetworkManager is not managing your connection, the interface has been brought up by init script when the system was booting up.

In Debian your connection is usually configured in the /etc/network/interfaces file. If you don't have a wireless connection you can leave it as it is and just purge NetworkManager and related dependencies. If you do have a wireless connection and you roam around, then you might find it useful to switch to using NetworkManager or Wicd as they are better at handling multiple (wireless) connections.
 
Old 11-15-2011, 11:44 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
When I try and remove this application, I get the following message that wants to remove Gnome and everything else under the sun...

Code:
carlos@ghost:~$ sudo apt-get remove --purge network-manager-gnome 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  gnome* gnome-core* gnome-desktop-environment* network-manager-gnome* task-gnome-desktop*
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 5,768 kB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
 
Old 11-15-2011, 03:01 PM   #4
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, Slackware
Posts: 1,217

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
There are different ways of dealing with that, personally I tend to go for the longer but cleaner route and just get rid of the meta-package causing the problem and then install back the bits I want.

Alternatively you can go for "aptitude keep-all" and then just remove the meta package(s) and network manager using "aptitude purge gnome network-manager-gnome". Read up on the keep-all option before proceeding however.
 
Old 11-15-2011, 11:32 PM   #5
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 481

Rep: Reputation: 108Reputation: 108
The package network-manager-gnome is only the applet on the gnome panel, and maybe that is the reason so many meta-packages depend on it.
Remove network-manager (package name) and it will probably remove the rest without hurting the gnome-* metapackages.
 
Old 11-16-2011, 02:25 AM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, Slackware
Posts: 1,217

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
Unfortunately as it's listed as a dependency of the gnome meta-package, that will still get removed. As network-manager is a dependency of network-manager-gnome, it will get removed along with it.
 
Old 11-16-2011, 11:26 AM   #7
odiseo77
Member
 
Registered: Dec 2004
Location: London, UK
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 947

Rep: Reputation: 273Reputation: 273Reputation: 273
You can always execute 'gnome-session-properties' and disable the nm-applet to load when Gnome starts. It will still be installed, but it won't show up in the notification area.
 
Old 11-17-2011, 11:27 AM   #8
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,896

Original Poster
Rep: Reputation: 73
Is this the same reason why every time I reboot my Debian Linux machine, it wipes out my /etc/resolv.conf configuration and I have no Internet? Every time I perform a simple reboot, I'm reminded how frustrating everything is because my DNS configuration is wiped out. I noticed this is Debian and Ubuntu. Is this related to the same application I can't get rid of?
 
Old 11-17-2011, 02:44 PM   #9
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 44
Quote:
Originally Posted by carlosinfl View Post
Is this the same reason why every time I reboot my Debian Linux machine, it wipes out my /etc/resolv.conf configuration and I have no Internet? Every time I perform a simple reboot, I'm reminded how frustrating everything is because my DNS configuration is wiped out. I noticed this is Debian and Ubuntu. Is this related to the same application I can't get rid of?

First you need to stop ' /etc/init.d/network-manager '. Then do ' aptitude search ~inetwork-manager ' If network-manager was automatically installed use aptitude to mark it as manually installed. Then ' aptitude purge ~inetwork-manager ' should work with out removing Gnome. You may want to use the ' -s ' option to test first.

Last edited by 62chevy; 11-17-2011 at 02:46 PM.
 
Old 11-19-2011, 03:37 AM   #10
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 258

Rep: Reputation: 42
I have never had a problem removing network-manager before installing wicd (when I chose to do such). But it's been a while since I've been using aptitude over apt-get. As soon as Debian installer is done I issue command: aptitude keep-all and never use apt-get after that. And aptitude is more likely to remove dependencies than apt-get, dpkg just complains if there are dependencies that need to go first.
What seems odd here are the commands you posters are using.
Quote:
sudo apt-get remove --purge network-manager-gnome
Try: apt-get purge network-manager
network-manager-gnome will go with it.
From caravel's first post:
Quote:
aptitude purge gnome network-manager-gnome
This is sure to remove most of the system as your suggestion is to purge gnome, (remove gnome desktop and all dependencies), and network-manager-gnome. You can remove network-manager-gnome, network-manager will still be installed. Example below:
Code:
jo@Willy:~$ sudo apt-get purge network-manager-kde
[sudo] password for jo: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnm-glib-vpn1 mobile-broadband-provider-info libjim0debian1 network-manager-pptp network-manager
  libnm-util2 libnetfilter-conntrack3 pptp-linux dnsmasq-base plasma-widget-networkmanagement
  network-manager-vpnc libnm-glib4 usb-modeswitch-data usb-modeswitch vpnc libpkcs11-helper1 openvpn
  modemmanager network-manager-openvpn
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  network-manager-kde*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 36.9 kB disk space will be freed.
Do you want to continue [Y/n]?
Code:
jo@Willy:~$ sudo aptitude purge network-manager
The following packages will be REMOVED:  
  network-manager{p} 
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 3,977 kB will be freed.
The following packages have unmet dependencies:
  plasma-widget-networkmanagement: Depends: network-manager (>= 0.9.0) but it is not going to be installed.
The following actions will resolve these dependencies:

     Remove the following packages:   
1)     network-manager-kde            
2)     plasma-widget-networkmanagement



Accept this solution? [Y/n/q/?]

Last edited by Brains; 11-19-2011 at 03:42 AM. Reason: corrected a command not pertinent to this thread
 
Old 11-19-2011, 05:57 PM   #11
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD, Slackware
Posts: 1,217

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
Quote:
Originally Posted by Brains View Post
From caravel's first post:

This is sure to remove most of the system as your suggestion is to purge gnome, (remove gnome desktop and all dependencies), and network-manager-gnome.
I will not claim to have posted a step by step guide, but you missed a bit
Quote:
Originally Posted by caravel
Alternatively you can go for "aptitude keep-all" and then just remove the meta package(s) and network manager using "aptitude purge gnome network-manager-gnome". Read up on the keep-all option before proceeding however.
And that was my second post.

You're right though in that it won't remove network manager itself, but only due to "keep-all" (otherwise it would have been automatically removed as a dependency).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do I switch the network manager from YAST back to the default network manager? skykooler Suse/Novell 7 03-09-2010 06:28 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Debian 5 05-29-2009 02:02 PM
Debian 5.0 Network-Manager interfers with vnet0 bridging to eth0 for virt-manager coolphive Linux - Newbie 2 05-28-2009 08:51 AM
Remove Power Manager from Startup varaonaid Linux - Software 2 07-08-2007 05:29 PM
How to Remove FreeBSD Boot Manager oxleyk *BSD 8 12-30-2005 04:01 PM


All times are GMT -5. The time now is 02:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration