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

How to update Sailfish OS from command line [not a question]

asked 2016-04-28 19:41:01 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2018-07-09 16:52:57 +0200

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 password
  • ssu 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 settings
  • version --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 :)

edit retag flag offensive reopen delete

The question has been closed for the following reason "not a real question" by molan
close date 2019-10-30 15:36:58.937707

Comments

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 )edit
3

The 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 )edit
2

I 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 )edit
2

Then your btrfs in a bad state, and it's amazing luck you did update without problems.

coderus ( 2016-04-29 06:43:04 +0200 )edit

My btrfs is in perfect state, checked it myself ;) the problem is somewhere else.

Rikudou_Sennin ( 2016-04-29 12:45:26 +0200 )edit

4 Answers

Sort by » oldest newest most voted
5

answered 2018-07-07 10:59:50 +0200

Samonitari gravatar image

updated 2018-07-07 11:01:33 +0200

This is mostly the same method as written by the "question": Manual update

However an important part is missing from "question", as displayed by the only "answer":

How to set back to normal updaye setting

To make the update check work again, and to clear to outdated notification about the already installed update, follow the Clean up instuctions:

Step 3.

  • Open Terminal
  • devel-su - root permissions again
  • rm -rf /home/nemo/.cache/store-client/os-info - as the command implies, clear the outdated version cache
  • pkill store-client - you can guess
  • Check for updates in "Settings/Sailfish OS Updates"
edit flag offensive delete publish link more
3

answered 2019-05-03 02:21:39 +0200

DrDweeb gravatar image

updated 2019-05-03 02:22:28 +0200

There is an app on OpenRepos that installs a script called sfos-upgrade that performs this task.

Disclaimer: I noticed this app today after having done yet another manual install, I haven't tried it yet

edit flag offensive delete publish link more

Comments

1

answered 2017-07-15 20:26:24 +0200

Twinklestar1792 gravatar image

How to set back to normal updaye setting

edit flag offensive delete publish link more

Comments

1

You don't have to. It works only one time, then updates work normal.

atlochowski ( 2017-07-15 20:44:53 +0200 )edit
1

Thank you for your reply. But after doing manual update(i have updated to 2.1.1.12) automatic update check is not happening properly.

Twinklestar1792 ( 2017-07-17 04:28:58 +0200 )edit

What you mean "automatic update check is not happening properly"? Is it trying to downgrade OS to the last official OS version?

atlochowski ( 2017-07-17 09:40:20 +0200 )edit

Yes Atlochowski. A Sailfish update notification is showing for v2.1.0.11. If i try to check for new os version, its start downloading it and in the updates screen it shows 2.1.0.11.

Twinklestar1792 ( 2017-07-22 04:40:52 +0200 )edit

Official jolla update failed for me with 2.1.2.23 for no obvious reasons. Then decided to apply them manually as instructed here. Update worked but update notification to 2.1.2.23 remained and settings insisted that I need to update to 2.1.2.23. Also all new updates were no longer detected.

I installed 2.1.3.7 again manually and worked. Setting was insisting to update to 2.1.2.23 but a new update check worked, it tried to update to 2.1.3.7, rebooted and things look ok. Settings version matches the real version.

So this manual update does break settings app update checks!

mcfrisk ( 2017-11-26 14:21:47 +0200 )edit
0

answered 2019-04-08 12:15:03 +0200

Artemys gravatar image

does this manual update also work with gemini?

edit flag offensive delete publish link more

Comments

Don't know, don't use Jolla anymore.

Rikudou_Sennin ( 2019-04-08 13:52:46 +0200 )edit

It should. I had to do it like this to update my XA2 because of bug https://together.jolla.com/question/202496/one-jolla-account-to-rule-them-all-not-working/

Piotr ( 2019-04-09 12:29:58 +0200 )edit

It sure does.

olf ( 2019-05-03 14:50:44 +0200 )edit

Question tools

Follow
23 followers

Stats

Asked: 2016-04-28 19:41:01 +0200

Seen: 13,058 times

Last updated: May 03 '19