The list of updates is not correct

Bug #14245 reported by Paweł T. Jochym
8
Affects Status Importance Assigned to Milestone
update-notifier (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

The applet shows 2 or 4 updates even if there is nothing to be updated. When you
click on the icon the dialog shows "Your system is updated" message and there
are no new packages in the repo (checked with synaptic/aptitude/apt-get). This
is confusing. Specially for a novice user. This breakage showed up in last 3-4
days. Before thet it was perfect.

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

Thanks for your bugreport.

Can you please run (on a terminal):
$ /usr/lib/update-notifier/apt-check ; echo $?

and attach the output to this bugreport.

Does the icon does not update itself even after reboot/restart of the session?

Thanks,
 Michael

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

Please just relogin or restart update-notifier (kill `pidof update-notifier`;
update-notifier &) to fix this problem.

Revision history for this message
Paweł T. Jochym (jochym) wrote :

(In reply to comment #1)
> Thanks for your bugreport.
>
> Can you please run (on a terminal):
> $ /usr/lib/update-notifier/apt-check ; echo $?
>
> and attach the output to this bugreport.

Here is the output:

jochym@marvin:~ $ /usr/lib/update-notifier/apt-check ; echo $?
Reading Package Lists... Done
Building Dependency Tree... Done
4

But still no packages to be updated. Should I do anything more?

P.

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

Created an attachment (id=1776)
apt-update checker with verbose output

Can you please run the attached python script (as user) and send me the output?

And also the output of:
"apt-get -s -o Debug::NoLocking=true upgrade | grep ^Inst" ?

It may be interessting to know if you have any pin-settings
/etc/apt/preferences or /root/.synaptic/preferences too.

Thanks,
 Michael

Revision history for this message
Paweł T. Jochym (jochym) wrote :

(In reply to comment #4)
> Created an attachment (id=1776) [edit]
> apt-update checker with verbose output
>
> Can you please run the attached python script (as user) and send me the output?

jochym@marvin:~ $ python Desktop/apt-check
Reading Package Lists... Done
Building Dependency Tree... Done
Upgradable: libfaad2-0
Upgradable: libxvidcore4
Upgradable: mplayer-586
Upgradable: mplayer-686
Upgradable: mencoder-586
Upgradable: flashplayer-mozilla

>
>
> And also the output of:
> "apt-get -s -o Debug::NoLocking=true upgrade | grep ^Inst" ?

The output is empty.

>
> It may be interessting to know if you have any pin-settings
> /etc/apt/preferences or /root/.synaptic/preferences too.
>

Both are empty.

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

Created an attachment (id=1777)
Updated verbose apt-checker

Can you please run this updated version of the apt-checker and send me the
output and your sources.list file? I'll try to reproduce it here then.

Thanks,
 Michael

Revision history for this message
Paweł T. Jochym (jochym) wrote :

Created an attachment (id=1778)
/etc/apt/sources.list

Revision history for this message
Paweł T. Jochym (jochym) wrote :

(In reply to comment #6)
> Created an attachment (id=1777) [edit]
> Updated verbose apt-checker
>
> Can you please run this updated version of the apt-checker and send me the
> output and your sources.list file? I'll try to reproduce it here then.

Here is the output:

jochym@marvin:~ $ python Desktop/apt-check
Reading Package Lists... Done
Building Dependency Tree... Done
Upgradable: libfaad2-0
Upgradable: libxvidcore4
Keept back: mplayer-586
Upgradable: mplayer-686
Keept back: mencoder-586
Upgradable: flashplayer-mozilla

All the best, Paweł

Revision history for this message
Paweł T. Jochym (jochym) wrote :

It seams that the problem may be connected to the fact that I have used some
debian repositories in the past. But all are swittched off at the moment. I have
spotted the mplayer-686 package with the "unstable" marking in the properties
dialog (synaptic). Could this be of any help? But I still think this is a bug
since the program is not self-consistent. First there are upadtes, and next
moment in second window there are none. Very confusing.

Paweł

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

Created an attachment (id=1781)
another updated version of the apt-check script

I agree with you that it's a bug in update-notifier. It really should give you
the same result as update-manager and apt (and all the other applications).
That why I attached another update of the apt-check script to find out the root
of this problem :)

Can you please run it and send me the output? And also the output of:
"apt-get -s -o Debug::NoLocking=true upgrade"
(this time without the "grep").

Thanks,
 Michael

Revision history for this message
Paweł T. Jochym (jochym) wrote :

(In reply to comment #10)
> Created an attachment (id=1781) [edit]
> another updated version of the apt-check script
>
> I agree with you that it's a bug in update-notifier. It really should give you
> the same result as update-manager and apt (and all the other applications).
> That why I attached another update of the apt-check script to find out the root
> of this problem :)
>
> Can you please run it and send me the output? And also the output of:
> "apt-get -s -o Debug::NoLocking=true upgrade"
> (this time without the "grep").
>

jochym@marvin:~ $ export LANG=C ; apt-get -s -o Debug::NoLocking=true upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

The output of the apt-check is in the next attachment.

P.

Revision history for this message
Paweł T. Jochym (jochym) wrote :

Created an attachment (id=1790)
The output of the verbose apt-check

Still the same packages hang as upgradable...

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

Created an attachment (id=1798)
possible fixed apt-check

Can you please try this version of the apt-check script? Run it with:
$ python apt-check ; echo $?

and tell me the output. If it seems to produce correct output, please copy it
like this:
$ sudo cp apt-check /usr/lib/update-notifier/

and tell me if update-notifier now works correctly.

Thanks,
 Michael

Revision history for this message
Paweł T. Jochym (jochym) wrote :

(In reply to comment #13)
> Created an attachment (id=1798) [edit]
> possible fixed apt-check
>
> Can you please try this version of the apt-check script? Run it with:
> $ python apt-check ; echo $?
>
> and tell me the output. If it seems to produce correct output, please copy it
> like this:
> $ sudo cp apt-check /usr/lib/update-notifier/
>
> and tell me if update-notifier now works correctly.
>
> Thanks,
> Michael

Well, todays update fixed it it seams. Do you want me to do more tests?

P.

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

> (In reply to comment #13)
> Well, todays update fixed it it seams. Do you want me to do more tests?

If todays upgrade fixed it then everything is fine and no more tests are needed.
I included the proposed fix in the latest upload.

Thanks for your help, I close this bug now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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