Tried to find if this bug is already reported, but I failed. So here it goes:
On all my machines, the Webmin System Information page sometimes shows that there are software package updates. When I click on the link or go to the appropriate module, it shows there are no updates. Refreshing package lists does not help this. There are actual updates, but these can't be installed through webmin, must be done through ssh or other means.
Systems running Ubuntu 10.04, up to date. Browser is Firefox 3.6.28, but doubt this matters.
What are the packages that you had to update manually in this case?
This time it was 5 firefox and related updates IIRC. but this is unpredictable. I have another system where the system information page shows 9 updates but there are 38 updates in update-manager... On yet another, it shows these Firefox updates, which are not shown on the first system, etc.
Basically the system information page number of updates is inconsistent.
If you go to Webmin -> Webmin Configuration -> Background Status Collection, what is the "Collect system status in background?" field set to?
Collect system status in background? Every 5 minutes
Collect available package updates? Yes
Collect drive temperatures? Yes
I would be interested to see the output from :
apt-show-versions | grep xyz
where xyz is one of the missing packages, when this problem occurs..
I have a snapshot which is not updated, so I can try to reproduce it. However, what I'm going to attach, shows basically the opposite behaviour: showing 0 updates when there are 38 updates. But I believe this might have the same cause.
I'm gonna attach a screenshot, the full output of apt-show-versions, and a few greps on the packages in question. HTH.
screenshot in VBox
full output of apt-show-versions
some packages snipped from the full output
That's odd, the output from apt-show-versions seems different to what Webmin expects.
If you run "apt-show-versions -h" to show the version number, what does it output?
Apt-Show-Versions v.0.16 (c) Christoph Martin
When you ran "apt-show-versions" to get the output attached below, did you run it with the -a flag? Because the output looks like what you'd get when -a is used.
Yes I used -a because plain command didn't show version changes and I thought that's what you want to see.
However, I think I found something in this, what may be interesting. When I run apt-show versions, it does not display old and new versions until it re-fetches the actual package versions from the archives. after this, the output of the command changes. See attached screenshot.
Today the output of webmin also shows 89 updates, which is correct.
I attach another output from "apt-show-versions | grep firefox" (without -a switch).
What did you do to have apt-show-versions re-fetch the new package versions from the archives? Was just running "apt-get update" enough, or was something else required?
I did nothing. It refreshes the package lists with a cron.daily job. (there's an apt-show-versions and an apt command in the cron.daily)
Could you post the full contents of that daily cron scripts?
these are the daily scripts:
-rwxr-xr-x 1 root root 311 2010-03-05 03:29 0anacron
-rwxr-xr-x 1 root root 189 2010-04-19 10:56 apport
-rwxr-xr-x 1 root root 15914 2011-05-30 07:40 apt
-rwxr-xr-x 1 root root 314 2010-04-09 14:16 aptitude
-rwxr-xr-x 1 root root 77 2009-06-22 16:38 apt-show-versions
-rwxr-xr-x 1 root root 502 2009-11-10 17:12 bsdmainutils
-rwxr-xr-x 1 root root 2534 2010-03-29 17:04 cyrus22
-rwxr-xr-x 1 root root 256 2010-04-15 19:23 dpkg
-rwxr-xr-x 1 root root 338 2010-04-06 13:43 lighttpd
-rwxr-xr-x 1 root root 89 2010-03-07 04:00 logrotate
-rwxr-xr-x 1 root root 1327 2010-03-02 11:31 man-db
-rwxr-xr-x 1 root root 606 2010-03-24 11:16 mlocate
-rwxr-xr-x 1 root root 1154 2010-04-09 02:29 ntp
-rwxr-xr-x 1 root root 2149 2009-06-16 15:12 popularity-contest
-rwxr-xr-x 1 root root 383 2010-04-09 17:27 samba
-rwxr-xr-x 1 root root 3349 2010-04-15 01:29 standard
and the apt-show-versions script is this:
#!/bin/sh
[ -f /usr/bin/apt-show-versions ] || exit 0
apt-show-versions -i
Ok, I see what it is doing now.. In the next Webmin release, I will have it call "apt-show-versions -i" before calling apt-show-versions, which should fix this inconsistency..
Great, thanks!
(Can I re-open this bug somehow? Don't see it.)
Still have the same problem with Webmin 1.6.
It's showing 7 updates, while Update-manager is showing 10.
Did a apt-show-versions -i, but no avail.
Re-opening ..
bsh : what does apt-show-versions output on your system?