7

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.

3
  • I have similar problems, sudo nm-applet is what I usually do to fix them.
    – noleti
    Aug 7, 2014 at 4:53
  • 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.
    – JeanFI
    Aug 10, 2014 at 20:49
  • Try another desktop environment like Gnome or whatever and see if the problem still persists. Aug 13, 2014 at 6:11

9 Answers 9

4
+25

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.

5
  • 2
    Ran the little script as you mentioned. Nothing happened. Aug 13, 2014 at 11:52
  • If the systray is indeed missing, how can I get it back? Aug 14, 2014 at 13:58
  • Some people resolved similar issues by installing/reinstalling libappindicator. I guess Unity moved from status icons to indicators.
    – mkayaalp
    Aug 16, 2014 at 18:35
  • @ColorlessPhoton Did you solve this problem? Nov 20, 2014 at 10:39
  • 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, 2015 at 16:25
4

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.

1
  • this only worked for me when I also added 'nm-applet' as a command in start-up applications
    – Amphibio
    Feb 25, 2016 at 12:07
2

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.

2
  • 1
    The dbus command caused gnome-shell to crash and not reload. I had to reboot my computer.
    – Cerin
    Jan 3, 2015 at 2:39
  • I'm doing an auto-login to my session (in VirtualBox) so the dbus did the same for me. rebooting got it working, though.
    – Meower68
    May 18, 2015 at 18:18
2

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.

1

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
0

I had this problem and I fixed it by reinstalling ubuntu-desktop

sudo apt-get install --reinstall ubuntu-desktop

Also, I got rid of the gnome staging and gnome next ppa(s).

1
  • The problem still persists after doing this. Aug 9, 2014 at 5:25
0

For Ubuntu 14.04 I reinstall network-manager, and everything now works fine.

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

1
  • I still get nm-applet-Message: using fallback from indicator to GtkStatusIcon and don't see the network manager applet. Nov 20, 2014 at 10:37
0

Add the notification area to your panel. You do so by right-clicking on the panel, "Add to Panel..." and choosing Notification Area:

enter image description here

This gives you the network manager applet (nm-applet), the sound / volume chooser and the battery indicator.

-4

Try reinstalling nm-applet:

sudo apt-get remove nm-applet

sudo apt-get install nm-applet
1
  • For both commands, I get an error of 'E: Unable to locate package nm-applet' Aug 8, 2014 at 7:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .