[Official announcement] Important steps to do before updating [not relevant]
Disabling openrepos before updating
If you are using OpenRepos, i.e. you have the Warehouse app installed, you need to follow those steps before updating, or you risk breaking your device:
- enable developer mode, if it's not enabled
- connect by SSH, or open the terminal
- list all repositories by typing
ssu lr
. Openrepos repositories are the ones starting with openrepos- - disable all openrepos repositories by typing
ssu dr repositoryname
for each of them. Do not touch any non-openrepos repository- for example, if you have a repository "openrepos-NielDK" you'd type
ssu dr openrepos-NielDK
- for example, if you have a repository "openrepos-NielDK" you'd type
- after disabling all openrepos repositories you can start the update
(there are instructions on how to disable repositories using the warehouse app instead of using a terminal in this post: https://together.jolla.com/question/33581/how-to-disable-openrepos-repositories/#post-id-33583)
Help! I didn't follow this, and now my device is broken!
- do you have developer mode enabled, and can SSH in? Follow the above instructions to disable all openrepos repositories, and manually update your device with
version --dup
- if you don't have developer mode enabled, try if you can open settings. If you can open settings, do a factory reset on your device. Note that this will delete all your data!
- if you can't open settings, boot your device into rescue mode, and select factory reset there.
See https://together.jolla.com/question/22079/howto-all-pc-users-recover-or-reset-a-device-that-is-stuck-in-boot-loop/ for instructions to get to the recovery mode.
This will delete all your data as well! - if unfortunately none of the above works, please contact jolla care at care@jolla.com.
Thanks for heads up!, however, some are reporting that their Jolla updated fine without openrepos being disabled. As I am halfway through the download of the update, I checked in my repos but it appears the download is updating as it goes and my connection is slow, so I'm loathe to stop now - I will see I guess!
Spam Hunter ( 2014-03-17 21:56:21 +0200 )editAlso did some screenshots on my to device to make a "how to disable openrepos from warehouse app". https://together.jolla.com/question/33581/how-to-disable-openrepos-repositories/#post-id-33583
Sailor ( 2014-03-17 21:57:32 +0200 )editThere are lot's of repositories in openrepos not breaking. However, if you happen to have the wrong ones you're screwed. As we're not testing with openrepos (and can't test with that) it's safer to disable all of them before updating.
Aard ( 2014-03-17 21:58:47 +0200 )editFeel free to also check this post: https://together.jolla.com/question/33581/how-to-disable-openrepos-repositories/
eric ( 2014-03-17 22:41:17 +0200 )editDisable all openrepos with this snippet as root
To Re-enable
dr_gogeta86 ( 2014-03-17 22:46:26 +0200 )editwooooohooooo!
ray-ven ( 2014-03-17 22:47:35 +0200 )editWhat is openrepo and how do I know do I have one?
PJH ( 2014-03-17 22:51:09 +0200 )edit@PJH Do you have a app called warehouse?
Sailor ( 2014-03-17 22:55:10 +0200 )editThanks, this did it. After updating from command line with "version --dup" I get announcement that version 1.0.3.8 is available. Anyone else having this problem? Does the cli version work differently than GUI version?
Mikko Koskelin ( 2014-03-17 22:56:07 +0200 )editToo late for me...
Anyone know which repository is the problem with this update ?
kaulian ( 2014-03-17 22:59:55 +0200 )editCorrect me if I am wrong:
As far as I understand, not all repositories, but only openrepos are a problem. Actually, the jolla.com repositories should be required to update Sailfish OS at all.
ssu lr
however lists all repos, including Jolla / Sailfish standard (required and enabled) global repos:Am I correct: Repos starting with the strings named above should not be disabled?
In addition, as disabled user repo is listed https://download.jollamobile.com/*, which probably should remain disabled.
jgr ( 2014-03-17 23:00:30 +0200 )editisn't there a way to manually mount your / and chroot into it, in the rescue mode? and fix it via there?
AL13N ( 2014-03-17 23:03:37 +0200 )edit@jgr I made the instructions more clear about what are openrepos repositories, and which ones to touch
Aard ( 2014-03-17 23:11:50 +0200 )editfor rep in
ssu lr | awk '/openrepos-.*/ { print $2 }'
; do ssu dr "${rep}" ; doneSorry i am not able make right formating .. grrr
Kaacz ( 2014-03-17 23:16:17 +0200 )editIf you are a regular user and only installed apps from Jolla and Yandex stores, then you may not have to worry about upgrading. Those who knows more and installed apps from external repositories with or without app called Warehouse (it is another app like Jolla Store app), are the ones needs to be concerned with this issue.
AbyZThomas ( 2014-03-17 23:16:56 +0200 )editAll openrepos repositories started with name "openrepos-" :)
Kaacz ( 2014-03-17 23:20:27 +0200 )edit@Aard: Thanks for clarification (preventing users from disabling too many repositories).
jgr ( 2014-03-17 23:23:03 +0200 )edit@Sailor No I don't have warehouse. Only normal Yandex and aptoide, where I'm trying to get some apps.
PJH ( 2014-03-17 23:36:35 +0200 )edit@PJH so you should not have problems when updating.
Sailor ( 2014-03-17 23:37:25 +0200 )editWhen I run ssu lr, I see in the disabled repos this line:
What this repo and it should be disabled ? Thanks
Schturman ( 2014-03-17 23:40:03 +0200 )editBack to 1.0.0.5 for me! Looks like some repos do cause problems. Oh well, it's going to be a long night!
Spam Hunter ( 2014-03-17 23:46:05 +0200 )editI also have this one disabled.. just posted a question
gsalone ( 2014-03-18 01:07:11 +0200 )editThis all worked for me, and the update is completed. But there are two things I don't understand:
- I can't connect through ssh anymore, not sure why
- Is it recommended to re-enable the same repositories again, through a similar command?
wcr ( 2014-03-18 01:21:37 +0200 )editSame here. No more connection to Jolla. No SSH + No USB IP... sshd simply won't start. (code=exited, ,status=255) I checked with
and tried
Any ideas, how to get back into my Jolla?
J4ZZ ( 2014-03-18 05:50:54 +0200 )editHi,
I updated without disabling any repo and it worked flawlessly. It may be only problematic with some specific repos.
lupastro ( 2014-03-18 09:09:53 +0200 )editCan confirm that manually disabling all openrepos repos per this question and then running "version --dup" with ssh connected device will successfully upgrade #SailfisOS to 1.0.4.20. Here is link to log showing packages it installs: http://twitter.com/jjaone/status/445694805641666560
foss4ever ( 2014-03-18 09:20:40 +0200 )editBut nothing reimported after the upgrade. for i in $(ssu lr 2>&1 | grep openre | cut -d" " -f3); do ssu er $i ; done
Where are now my dsiabled repos?
pizzulicchio ( 2014-03-18 11:02:41 +0200 )editCan we enable the openrepos after update to the new version ?
manu007 ( 2014-03-18 17:44:23 +0200 )editI have enabled back all 59 repos from openrepos. All works fine. FYI, I am not have installed Nielkdk's bash, but before upgrade i have installed ssl & tls update + some add libraries from Nieldk repository.
Kaacz ( 2014-03-18 18:08:45 +0200 )editWhy my suggestion was converted to comment ?? I mean, this is important suggestion for future..
Jolla please, use priorities in repos definitions. With better priority than other repositories isn't possible to OS was broken with normal update.
Thanks.
Kaacz ( 2014-03-18 19:00:40 +0200 )edit@Kaacz: I did convert your answers to comments because this is exactly where they belong to on this specific type of post. Note that your latest comment has disappeared because some community members rated it as offensive. Note that your input is still present above and as valuable as any other...
eric ( 2014-03-19 16:23:37 +0200 )editJust for those how had openssh, openssh-clients and openssh-server (6.5p1) installed from NielDK's repo. Have a look here -> sshd-connection-failed-likely-due-to-broken-openssh-package That will fix the ssh daemon and you can enter your Jolla again. See wcr's and my comments a few posts above.
The drawback, you will be back to openssh-5.6p1 (Jolla's default version). That's fine and ssh is working again. But if you want or need to have latest version from Niel, you need to manually reinstall openssh-6.5p1 again and you will need NielDK's openssl-1.0.1f-1 package first.
He told me that his repo is currently disabled in Warehouse as a temporary precaution. So you will always get an error when trying to install openssh that libcrypto.so.1.0.0 is needed. The easiest way seems to go to Settings and enable "Untrusted Software", then open Browser and go to NielDK's openrepo site. https://openrepos.net/user/500/programs Page 5 has the openssl package, now download openssl-1.0.1f-1.armv7hl.rpm click the download finished popup and in Transfers click the file and hit the install popup (like when adding an other half) Done.
Now download openssh, openssh-clients and openssh-server (6.5p1) open fingerterm and install them manually one by one with
rpm -i --force 'packagename'
Regards,
J4ZZ
J4ZZ ( 2014-03-19 18:03:40 +0200 )edit