Wrong Count for Available Upgrades

I really appreciate the ability of Webmin to handle all upgrades to the system from one simple location. When started up, it will check for available upgrades and then tell how many are available. However, it is always one off. If it says four, there are only three, and if it states three, there are only two.

While I am writing this, a pop-up message said there was one new update available. However, when I clicked on the message it took me to Software Package Updates and displayed "No packages available to be updated were found". Go figure.

Status: 
Active
Virtualmin version: 
N/A
Webmin version: 
1.974

Comments

Does it make any difference if you refresh the system information page?

No, it makes no difference. It also makes no difference if I log off and log back in. It also persists after other package updates.

Ilia's picture
Submitted by Ilia on Thu, 05/27/2021 - 13:43

Is command apt-show-versions installed? If not, will installing it fixes your problem?

No, neither was libapt-pkg-perl.

So I installed them and tried again.

Started Webmin on my remote system. Still showed a package available on the dashboard. Selected it and there was noting to install.

Tried refreshing the package list. It took a while to finish, and then stated that there was one possible update. But going back to the list still showed nothing.

Went back to dashboard and the notice was still that there was one update.

Went to server's command prompt and ran sudo apt update. It stated that there was one available, and then said: N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt buster-pgdg InRelease' doesn't support architecture 'armhf'

So it appears that Webmin does not know how to list the error message, and there is a problem in the postgresql repo.

Thanks.

Sent bug report to Postgres as well.

I'd be interested to see what output you get from the command apt list --upgradable

Sorry, I didn't think you needed that.

Sudo apt list --upgradable shows:

linux-libc-dev/testing 1:1.20210430-2 armhf [upgradable from: 4.18.120-2+rpi1]

N: There is 1 additional version. Please use the '-a' switch to see it

Doing so shows same line plus new line:

linux-libc-dev/stable.now 4.18.20-2+rpi1 armhf [installed, upgradable to: 1:1.20210430-2]

I think the issue for Webmin is to see that it did not display the error messages or explain what needed to be done. However, I think the underlying problem is with the source repo people for Postgresql.

Do you perhaps have multiple versions of linux-libc-dev installed? You can check by running :

dpkg --list linux-libc-dev

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig/aWait/Trig-pend

|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)

||/ Name Version Architecture Description

ii linux-libc-dev:armhf 4.18.20-2+rpi1 armhf Linux support headers for userspace development

That is confusing - I'm not sure where the recommendation to upgrade linux-libc-dev/testing 1:1.20210430-2 armhf comes from, since it doesn't appear to be installed?