Does not show up on Gnome Panel

Bug #38922 reported by RFennimore
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

Something has broken the update-notifier from displaying when updates are available. Not sure what.

The Sessions dialog box show it is currently running, and Apt/Synaptic shows 10 packages listed for update, but no update-notifier icon.

I have seen this on a few Dapper boxes now, although all have extra repositories enabled, and 3rd party apps installed, so this is likely the culprit, and if so, then I suppose not a bug in Dapper itself(?).

After certain updates that require a restart, the restart icon DOES appear. Strange.

Revision history for this message
Michael Vogt (mvo) wrote :

Could you please tell me the ouput of:
$ /usr/lib/update-notifier/apt-check
(run this in a terminal please)

Changed in update-notifier:
assignee: nobody → mvo
status: Unconfirmed → Needs Info
Revision history for this message
RFennimore (rfennimore) wrote : Re: [Bug 38922] Re: Does not show up on Gnome Panel

Hi Michael,

If I run the command as myself, I get the following outout:

rick@dapper:~$ /usr/lib/update-notifier/apt-check
None
Traceback (most recent call last):
  File "/usr/lib/update-notifier/apt-check", line 40, in ?
    cache = apt_pkg.GetCache()
SystemError: E:Opening /etc/apt/sources.list - ifstream::ifstream (13
Permission denied), E:The list of sources could not be read.
rick@dapper:~$

If I run it with sudo, I get this:

rick@dapper:~$ sudo /usr/lib/update-notifier/apt-check
Password:
None
Reading package lists... Done
Building dependency tree... Done
18rick@dapper:~$

Thanks.

- Rick

On 10/04/06, Michael Vogt <email address hidden> wrote:
>
> Could you please tell me the ouput of:
> $ /usr/lib/update-notifier/apt-check
> (run this in a terminal please)
>
> ** Changed in: update-notifier (Ubuntu)
> Assignee: (unassigned) => Michael Vogt
> Status: Unconfirmed => Needs Info
> --
> Does not show up on Gnome Panel
> https://launchpad.net/malone/bugs/38922
>

--
Richard G. Fennimore
=================
CompTIA Network+ Linux+

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks, can you please run:
$ ls -l /etc/apt/sources.list

It seems for some reason the permissions for the soures.list file are wrong.

Revision history for this message
RFennimore (rfennimore) wrote :

Hi Michael,

The permissions are as follows:

drwxr-xr-x 2 root root 4096 2006-04-08 01:10 apt.conf.d
-rw------- 1 root root 0 2006-01-26 18:15 secring.gpg
-rw------- 1 root root 1068 2006-03-30 16:12 sources.list
-rw-r--r-- 1 root root 1556 2006-01-27 17:06
sources.list_backup_200601271711
-rw-r--r-- 1 root root 2152 2006-01-27 17:11
sources.list_backup_200601271726
-rw------- 1 root root 1626 2006-02-10 18:20 sources.list.bak
-rw------- 1 root root 1714 2006-03-30 16:05 sources.list.bumps.03.30.06
drwxr-xr-x 2 root root 4096 2006-02-21 14:38 sources.list.d
-rw------- 1 root root 1068 2006-03-19 22:37 sources.list.save
-rw------- 1 root root 1200 2006-01-29 00:26 trustdb.gpg
-rw-r--r-- 1 root root 22647 2006-01-29 00:26 trusted.gpg
-rw-r--r-- 1 root root 22647 2006-01-29 00:26 trusted.gpg~

- Rick

On 11/04/06, Michael Vogt <email address hidden> wrote:
>
> Thanks, can you please run:
> $ ls -l /etc/apt/sources.list
>
> It seems for some reason the permissions for the soures.list file are
> wrong.
> --
> Does not show up on Gnome Panel
> https://launchpad.net/malone/bugs/38922
>

--
Richard G. Fennimore
=================
CompTIA Network+ Linux+

Revision history for this message
RFennimore (rfennimore) wrote :

I just did an update, and now the update-notifier icon apears. However, the
error is now:

E: Error: Opening the cache (E:Opening /etc/apt/sources.list -
ifstream::ifstream (13 Permission denied), E:The list of sources could not
be read.)

Not sure what would be causing the permissions error. I never changed the
permissions on /etc/apt/sources.list. I am assuming they
are correct.

- Rick

On 11/04/06, Michael Vogt <email address hidden> wrote:
>
> Thanks, can you please run:
> $ ls -l /etc/apt/sources.list
>
> It seems for some reason the permissions for the soures.list file are
> wrong.
> --
> Does not show up on Gnome Panel
> https://launchpad.net/malone/bugs/38922
>

--
Richard G. Fennimore
=================
CompTIA Network+ Linux+

Changed in update-notifier:
status: Needs Info → Unconfirmed
Revision history for this message
Michael Vogt (mvo) wrote :

Could you please run (from a terminal):
$ sudo chmod 644 /etc/apt/sources.list

This should fix the problem.

The interessting question is what application did this to the permissions ...

Thanks,
 Michael

Revision history for this message
Michael Vogt (mvo) wrote :

Oh, can you please send me the output of:
$ ls -l /etc/apt/sources.list
first, before you run chmod? To see what the persmission are currently?

Thanks,
 Michael

Revision history for this message
Michael Vogt (mvo) wrote :

Ignore my last comment, you already gave this information.

Revision history for this message
RFennimore (rfennimore) wrote :

It could possibly be Automatix, but I don't want to point any fingers :P
I have two copies of Dapper installed on this system now. One is an upgrade
from Breezy, and the other is a fresh install.
I will chroot into the upgrade box and 644 the sources.list file. Thanks.

-Rick

On 13/04/06, Michael Vogt <email address hidden> wrote:
>
> Ignore my last comment, you already gave this information.
> --
> Does not show up on Gnome Panel
> https://launchpad.net/malone/bugs/38922
>

--
Richard G. Fennimore
=================
CompTIA Network+ Linux+

Revision history for this message
Claudio André (claudioandre.br) wrote :

I noticed this too.

Since, i've not seeing updates on Gnome Panel for more than a week, i tried update-manager myself today. And there was 278 updates available, plus, an error message.
- Some updates require the removal of further software... (i have screenshots).

I've using Dapper everyday since flight 3, and nothing special happend one/two weeks ago.

I checked sessions, and update-notifier is there. I have no idea what broke it. If you need more information, please ask me.

claudio@claudioandre:~$ /usr/lib/update-notifier/apt-check
None
Reading package lists... Done
Building dependency tree... Done
Traceback (most recent call last):
  File "/usr/lib/update-notifier/apt-check", line 57, in ?
    saveDistUpgrade(depcache)
  File "/usr/lib/update-notifier/apt-check", line 20, in saveDistUpgrade
    clean(depcache)
  File "/usr/lib/update-notifier/apt-check", line 13, in clean
    for pkg in depcache:
TypeError: iteration over non-sequence

Revision history for this message
Claudio André (claudioandre.br) wrote : Cannot install all available updates

See my post for explanation.

Revision history for this message
Michael Vogt (mvo) wrote :

This problem is fixed in the current dapper version. Problems with the packaging system are reported properly now and the notification is displayed to make sure that the user runs one of the tools to correct it.

Changed in update-notifier:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.