Bug 386404 - Plasma-discover lists packages already intalled
Summary: Plasma-discover lists packages already intalled
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.10.5
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-31 21:45 UTC by emelenas
Modified: 2017-11-03 21:31 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description emelenas 2017-10-31 21:45:18 UTC
Plasma-discover eports 3000+packages to be updated while the system is up to date per command-line dnf

Steps to Reproduce:
1.Open a KDE session
2.wait for discover to look for packages

Actual results:
3000+ packages to be updated (all installed packages)

Expected results:
No packages to be updated

Additional info:
I can't disable plasma-discover. This is a portable computer that runs frequently on my phone's 4G mobile connection, and I really would like discover to stop looking for packages. It eats up my bandwidth and data plan.

I have unchecked the apper monitor in the settings->startup and shutdown->background services and have unsuccessfully tried to 
systemctl stop packagekit; systemctl disable packagekit


As an additional input, I tried to update the packages through discover, even knowing that they are already at their last version. plasma-discover complains and (a) refuses to update an already updated package, and (b) fails to remove that package from the list, keeping it flagged for update.

So, again, please, is there a way to clean the discover database (some equivalent to dnf clean all)? 

Thanks
Comment 1 Nicola Zanardi 2017-11-01 13:50:40 UTC
(In reply to emelenas from comment #0)
> Plasma-discover eports 3000+packages to be updated while the system is up to
> date per command-line dnf
> 
> Steps to Reproduce:
> 1.Open a KDE session
> 2.wait for discover to look for packages
> 
> Actual results:
> 3000+ packages to be updated (all installed packages)
> 
> Expected results:
> No packages to be updated
> 
> Additional info:
> I can't disable plasma-discover. This is a portable computer that runs
> frequently on my phone's 4G mobile connection, and I really would like
> discover to stop looking for packages. It eats up my bandwidth and data plan.
> 
> I have unchecked the apper monitor in the settings->startup and
> shutdown->background services and have unsuccessfully tried to 
> systemctl stop packagekit; systemctl disable packagekit
> 
> 
> As an additional input, I tried to update the packages through discover,
> even knowing that they are already at their last version. plasma-discover
> complains and (a) refuses to update an already updated package, and (b)
> fails to remove that package from the list, keeping it flagged for update.
> 
> So, again, please, is there a way to clean the discover database (some
> equivalent to dnf clean all)? 
> 
> Thanks

I am on Fedora 26 and I cannot replicate your bug. I usually update my software using the Software Updates applets, or via dnf. On my installation the applet, discover, and dnf are all synchronized and there are no updates duplicates.
Regarding the updates over 4g, right clicking on the updates applet, you can access some options regarding how often an in which conditions the updates will be retrieved.
Comment 2 emelenas 2017-11-01 14:06:47 UTC
Thank you so much for the response. 

Sure, I also have other computers running fedora 26 and none of them shows that behavior. That's why I ask how can I refresh discover cache or clean the database to get it in sync with dnf's database.

I was aware of the discover settings dialog. However, options there are only to select daily, weekly or monthly updates, not to disable them altogether. Besides, as I said, my connection is through my phone (shared wifi), so that it is not recognized as a 4G connection.

I believe that 
(a) There surely is a way to make discover sync with dnf, but I am unable to find it
(b) There should be a box to disable discover completely

Thanks
Comment 3 Rex Dieter 2017-11-02 13:24:28 UTC
pkcon refresh force

will refresh packagekit
Comment 4 emelenas 2017-11-03 21:31:51 UTC
(In reply to Rex Dieter from comment #3)
> pkcon refresh force
> 
> will refresh packagekit

This did not solve my problem, but a combination of 
pkcon refresh force
pkcon repair

and

rpm --rebuilddb

did.

Thank you