2.0.4 and 2.0.5 updates probably did not refresh cache properly [answered]
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.
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 )editNo - 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 )editpkcon 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@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 )editOkay 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