Ubuntu – Missing date & time from top panel of Unity Desktop – Ubuntu 14.04

14.04indicatorunity

I'm using Ubuntu 14.04 an my machine and since the last upgrade from 13.10 to 14.04 the date&time is missing in the top panel of Unity. This machine was originally installed with Ubuntu 12.10. I upgraded it from 12.10→13.04, from 13.04→13.10 and last week from 13.10→14.04.

I tried every solution found in this question: Missing date & time from top panel of Unity Desktop. But nothing of all this works 🙁

I tried the following things:

  • reinstalling indicator-datetime
  • sudo apt-get remove --purge indicator-datetime and install it again
  • sudo dpkg-reconfigure --frontend noninteractive tzdata
  • sudo killall unity-panel-service

and of course log out/log in again and so on…

Where can I find log files for the indicator or where could help me otherwise with this problem?

Trying to debug:

$ locate indicator-datetime-service
/usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
$ /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
Indicator-Datetime-Message: indicator-datetime exiting; failed/lost bus ownership

Best Answer

Try reseting its configuration

dconf reset -f /com/canonical/indicator/datetime/ 

If it didn't show up try kill it, it should restart

pkill -f datetime

For similar cases, better to explain how you may get it:

  1. Check if it is running, if yes then possibly a configuration problem

    $ ps ax | grep -i indicator-datetime
     2863 ?        Ssl    0:00 /usr/lib/x86_64-linux-gnu/indicator-datetime/indicator-datetime-service
     4043 pts/0    S+     0:00 grep -i indicator-datetime
    
  2. Check for where is its configuration. Look for /etc/ or dconf in /usr/share/glib-2.0/schemas/. List package files using:

    $ dpkg -L indicator-datetime
    [...]
    /etc/xdg/autostart/indicator-datetime.desktop
    /usr
    /usr/share
    /usr/share/glib-2.0
    /usr/share/glib-2.0/schemas
    /usr/share/glib-2.0/schemas/com.canonical.indicator.datetime.gschema.xml
    [...]
    
  3. Locate its dconf path:

    $ grep path /usr/share/glib-2.0/schemas/com.canonical.indicator.datetime.gschema.xml
        <schema id="com.canonical.indicator.datetime" path="/com/canonical/indicator/datetime/" gettext-domain="indicator-datetime">
    
Related Question