We have moved to a new Sailfish OS Forum. Please start new discussions there.
11

2.0.4 and 2.0.5 updates probably did not refresh cache properly [answered]

asked 2017-01-05 11:47:07 +0200

dyraig gravatar image

updated 2017-01-10 10:58:53 +0200

jovirkku gravatar image

On my Jolla 1, I recently noticed some missing dependencies when trying to install applications from OpenRepos. At first, I put that down to the OS not being at the latest version (the update to 2.0.4.14 apparently went without problems a while back - at least I did not notice anything out of the ordinary. Two days back, I finally updated my Jolla 1 from 2.0.4.14 to 2.0.5.6. Not only did this not fix the dependency problems I encountered - the problems actually got worse. I got many "dependency missing" messages for several applications I was trying to update/install.

I did some digging, experimented with disabling/enabling the OpenRepo repositories, checked with version --dup - all to no avail. What got me suspicious was that one app that was failing to install reported "qt5-plugin-geoservices-here" as missing depency. pkcon search name geoservices did indeed not find this package. Instead, it found"qt5-plugin-geoservices-nokia". Some searching showed that - according to the changelog of 2.0.5.6 - "qt5-plugin-geoservices-nokia" had been replaced by "qt5-plugin-geoservices-here" in 2.0.5.6, so the fact that pkcon still reported the older package was suspicious. Hence, I forced a refresh of the cache by using zypper ref -f. After that, everything finally went to normal - pkcon search name geoservices now finds the correct package and all apps I tried to install/update in Warehouse now installed normally.

To me, it looks as if the cache had not been refreshed properly either during the 2.0.4.14 update or during the 2.0.5.6 update or both - for whatever reasons.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by molan
close date 2018-05-01 15:25:47.829649

Comments

Thanks for confirming that. Did you try to reinstall Jolla Maps before looking for "qt5-plugin-geoservices-here"? Since it also uses this dependency, I'd be curious to see if it would have failed to install too.

Sthocs ( 2017-01-05 12:43:05 +0200 )edit

No - that did not occur to me, sorry. I was triggered by "Poor Maps" from OpenRepos, because it suddenly vanished from my apps after the upgrade to 2.0.5.6 - which prompted the search above.

dyraig ( 2017-01-05 13:05:26 +0200 )edit

pkcon refresh is your saviour. Sailfish OS is not refreshing 3rd party repositories automatically. You should do it yourself EVERY TIME BEFORE YOU WANT TO INSTALL ANYTHING FROM REPOSITORY! This is how this repository stuff work.

coderus ( 2017-01-05 20:57:44 +0200 )edit
1

@coderus - I never used pkcon before. I only ever use Warehouse to install third-party apps and up until 2.0.4.14, I never encountered any problems with this. Also, the repository affected was one of the official Jolla ones, not a third party one. That's what I find strange as I would expect the official update process to take care of this.

dyraig ( 2017-01-05 21:13:05 +0200 )edit

Okay let me rephrase my sentence: YOU SHOULD MANUALLY REFRESH REPOSITORIES EVERY TIME YOU MANUALLY INSTALLING PACKAGES NOT VIA JOLLA STORE.

coderus ( 2017-01-05 21:14:19 +0200 )edit

1 Answer

Sort by » oldest newest most voted
10

answered 2017-01-09 16:26:39 +0200

Keto gravatar image

updated 2017-01-09 16:27:30 +0200

System upgrade uses separate cache for isolating the system repos and 3rd party repos on the upgrade process. And when you install apps from the official store, it does cache refresh as needed. So that is why you need to do refresh when installing packages via other means.

But it would probably be a good thing to also clean/refresh the default repository cache on system upgrade. We'll take this into consideration.

edit flag offensive delete publish link more

Comments

Isn't the "jolla" repo an official repo?

Mohjive ( 2017-01-09 17:14:20 +0200 )edit

Yes, that is an official repo. But what I tried to explain is that system update uses it's own cache for the repository data and does not update the default cache.

Keto ( 2017-01-10 10:24:26 +0200 )edit

Question tools

Follow
5 followers

Stats

Asked: 2017-01-05 11:47:07 +0200

Seen: 712 times

Last updated: Jan 09 '17