How to update Sailfish OS from command line [not a question]
asked 2016-04-28 19:41:01 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
You know the feeling - you're really excited about the new version of Sailfish, but the official tool to update fails. Probably multiple times. It happened to me with the latest update. So here are steps to update to latest version anyway.
Step 1
Make sure you have developer mode enabled, it won't work without it.
If you never had developer mode enabled before, here are the steps, if you are familiar with developer mode, proceed to step 2.
Step 1.1
Go to Settings -> Developer tools
and enable first two options (Developer mode
and Remote connection
). Then you need to input some password and click save. Don't forget the password.
Step 2
Open Terminal app (which is installed automatically when you enable developer mode) and type these commands, one followed by another (each one is confirmed via enter):
devel-su
- after pressing enter a prompt will ask you for your password, it's the password you set up during enabling developer mode. Note: you won't see that you're typing your passwordssu release 2.0.1.11
- replace 2.0.1.11 by the version you want to install. You can see the newest version in the Sailfish update app in settingsversion --dup
- this will start the process of updating and will take several minutes to complete. You should never close the terminal when you're running this command. You will see some output and percents, it has three parts - refreshing repositories, downloading updates, installing updates, after these three parts are done, you will see message that advices you to reboot your phone, which you should do.
After rebooting your phone just check in Settings -> About product that you have the newest version.
Congratulations, you have the newest version.
I hope this little guide will help someone :)
It's not just that you are not in the early access program? (yes 2.0.1.11 is still early access)
attah ( 2016-04-28 20:17:00 +0200 )editThe reason this works when the normal way of updating fails is because it doesn't do the exact same things. That's also why you should only use this method when absolutely necessary.
nthn ( 2016-04-28 21:52:03 +0200 )editI am in early access, I clicked the Start optimizing (or something like that, I use localized version), when optimizing was done, nothing changed and I could only click Start optimizing again. Tried at least ten timed.
Rikudou_Sennin ( 2016-04-29 01:36:11 +0200 )editThen your btrfs in a bad state, and it's amazing luck you did update without problems.
coderus ( 2016-04-29 06:43:04 +0200 )editMy btrfs is in perfect state, checked it myself ;) the problem is somewhere else.
Rikudou_Sennin ( 2016-04-29 12:45:26 +0200 )edit