nm-applet does not work Ubuntu 14.04

28,834

Solution 1

nm-applet disappeared from the Unity menu bar on a recent install of Ubuntu 14.04.1 LTS. This may have happened after an apt-get upgrade and a reboot.

The solution that worked for me was mentioned in the comments of another post.

Some people resolved similar issues by installing/reinstalling libappindicator. I guess Unity moved from status icons to indicators. – mkayaalp Aug 16 '14 at 18:35

Wow, the solution was the one buried in the comments by @mkayaalp. What I did was to run: 'sudo apt-get install --reinstall libappindicator3-1' and 'sudo apt-get install --reinstall libappindicator1'. Then restart. – noisygecko Jan 8 at 16:25

Since it worked for me, I thought I would make a separate answer for it. I ran the below:

sudo apt-get install --reinstall libappindicator3-1 libappindicator1

Then I rebooted. It may be that only the first package re-installation is necessary.

Solution 2

I'm afraid both messages look unrelated to your problem with Mobile Broadband connection.

nm-applet-Message: using fallback from indicator to GtkStatusIcon

simply means that a Gnome Panel was not found and it is using the status icon instead.

nm-applet-WARNING **: Could not find ShellVersion property on org.gnome.Shell after 5 tries

This message means that it tried to get the version of the Gnome Shell from DBus but failed for 5 attempts. On my system, there is no org.gnome.Shell service. But you apparently have and there is something wrong with it.

One thing you might want to try is running it as:

nm-applet --shell-debug

This should remove that second message, but I doubt it will resolve the broadband issue.

EDIT: I should mention that both these messages are not errors.

The following means that SIGINT was delivered and applet is exiting, which is what happens when you hit Ctrl+C in the terminal.

nm-applet-Message: PID 0 (we are 6848) sent signal 2, shutting down...

For next message, see this bug. It is GLib warning and not an error. nm-applet gives the same messages on my system (except for the dbus related message) and it works.

(nm-applet:6848): GLib-CRITICAL **: Source ID 107 was not found when attempting to remove it

Since you say the same thing goes for psensors, I am convinced that your problem is not nm-applet. It looks like your systray is missing. Try to run the following minimal python script for creating a status icon and see if anything shows up:

#!/usr/bin/env python
import pygtk
import gtk

i = gtk.StatusIcon()
i.set_from_stock(gtk.STOCK_INFO)
i.set_visible(True)
gtk.main()

Put this in a file and name it test.py. Execute chmod +x test.py and ./test.py. You might need to install python-gtk package, if not installed.

Solution 3

Tried many possible solutions:

  • Starting nm-applet in terminal: message about using gtk fallback
  • Reinstall nm-applet
  • Reinstall ubuntu-desktop
  • Reinstall network-manager and network-manager-gnome
  • Reinstall indicator-applet-complete
  • Edit ~/.config/autostart/nm-applet.desktop to use Exec=/usr/bin/dbus-launch nm-applet
  • Stop NetworkManager, sudo rm /var/lib/NetworkManager/NetworkManager.state, Start NetworkManager

etc..

When searching for nm-applet on google, I found https://awesome.naquadah.org/wiki/Nm-applet. After adding my user to netdev group I'm able to start nm-applet in terminal and the icon appears.

Tried to reset the default nm-applet.desktop autostart and restarted, but nothing. Finally added a custom startup application to execute /usr/bin/nm-applet.

Hope this helps somebody.

Solution 4

What fixed the issue here (Mint 17, compatible with Ubuntu 14.04) was:

sudo apt-get install --reinstall network-manager

sudo apt-get install --reinstall network-manager-gnome

sudo service dbus restart

followed by a logout and then a login. In fact, many other notification area indicators were missing (not only nm-applet), and this fixed them all.

Solution 5

Change 'deny' to 'allow' in :

/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf

The network-manager or the nm-applet is the one which is found in the systray. I used this page https://help.ubuntu.com/community/NetworkManager#Installation and did the following :

sudo stop network-manager
sudo apt-get install network-manager
sudo apt-get install network-manager-gnome
sudo apt-get install network-manager-openvpn
sudo apt-get install network-manager-openvpn-gnome
sudo start network-manager

logged out, then logged back in and the icon in the systray shows and wifi and networks report.

To confirm network is connected, run :

/sbin/ifconfig -a
Share:
28,834

Related videos on Youtube

Colorless Photon
Author by

Colorless Photon

:)

Updated on September 18, 2022

Comments

  • Colorless Photon
    Colorless Photon over 1 year

    The network manager nm-applet has disappeared from the unity panel of my Ubuntu 14.04. When I try to run it from the commas line, I receive an error:

    $ nm-applet
    nm-applet-Message: using fallback from indicator to GtkStatusIcon
    
    (nm-applet:6409): nm-applet-WARNING **: Could not find ShellVersion property on org.gnome.Shell after 5 tries
    

    I do not know if it is directly related but ever since this, running System Settings-> Network does not display 'Mobile Broadband' even though the datacard is connected to the system. The datacard does not work any more.

    EDIT: The following command as suggested by user 'mkayaalp' also gives an error:

    $ nm-applet --shell-debug
    nm-applet-Message: using fallback from indicator to GtkStatusIcon
    
    (nm-applet:6848): nm-applet-WARNING **: Could not find ShellVersion property on org.gnome.Shell after 5 tries
    nm-applet-Message: PID 0 (we are 6848) sent signal 2, shutting down...
    
    (nm-applet:6848): GLib-CRITICAL **: Source ID 107 was not found when attempting to remove it
    

    EDIT2: The problem of the icon for nm-applet not appearing on the unity panel is not unique to it. This problem also persists for 'Psensors' even though in options it is set to show on the unity panel.

    P.S.: Searching on google and on askubuntu.com mainly brings up results regarding Lubuntu 14.04.

    • noleti
      noleti almost 10 years
      I have similar problems, sudo nm-applet is what I usually do to fix them.
    • JeanFI
      JeanFI almost 10 years
      FYI, psensor displays its appindicator (or use systray if appindicator support is not available) whatever is the settings. I guess you are talking about the 'unity launcher' option which is about to display the highest temperature as a badge in the launcher icon. It may help to run in a terminal psensor to see the error: killall -9 psensor; psensor -d3. You will have additional information in $HOME/.psensor/log. BTW in your case the error will probably be the same than for nm-applet.
    • MANI
      MANI almost 10 years
      Try another desktop environment like Gnome or whatever and see if the problem still persists.
  • Colorless Photon
    Colorless Photon almost 10 years
    For both commands, I get an error of 'E: Unable to locate package nm-applet'
  • Colorless Photon
    Colorless Photon almost 10 years
    The problem still persists after doing this.
  • Colorless Photon
    Colorless Photon almost 10 years
    Ran the little script as you mentioned. Nothing happened.
  • Colorless Photon
    Colorless Photon almost 10 years
    If the systray is indeed missing, how can I get it back?
  • Martin Thoma
    Martin Thoma over 9 years
    I still get nm-applet-Message: using fallback from indicator to GtkStatusIcon and don't see the network manager applet.
  • Martin Thoma
    Martin Thoma over 9 years
    @ColorlessPhoton Did you solve this problem?
  • Cerin
    Cerin over 9 years
    The dbus command caused gnome-shell to crash and not reload. I had to reboot my computer.
  • Meower68
    Meower68 about 9 years
    I'm doing an auto-login to my session (in VirtualBox) so the dbus did the same for me. rebooting got it working, though.
  • Alexey Shvechkov
    Alexey Shvechkov over 8 years
    this only worked for me when I also added 'nm-applet' as a command in start-up applications