View Single Post
Posts: 97 | Thanked: 318 times | Joined on Feb 2012 @ Switzerland
#366
Originally Posted by F0x123 View Post
Yes I have seen that. But I am new in this topic so I do not know how to start/use that script. I think somehow with the terminal in SFOS.
I would establish a ssh connection with your computer. You can do this in >Settings>'Developer mode'. It makes the upgrade process much easier. You can then connect to the phone with 'ssh nemo@<phone_ip>'.

The upgrade process is not a script, but a chain of different terminal commands. I suggest that you did not yet enable some 'openrepos' repositories.

First... Make sure that 'zypper' is installed
Code:
devel-su pkcon install zypper
Upgrade procedure

1. assign version to variable
Code:
RELEASE=2.0.5.6
2. put the device in release mode
Code:
ssu release $RELEASE
3. Add the Nexus 5 'adaptation0' repository
Code:
devel-su sed -i -e 's#^adaptation=.*$#adaptation=http://repo.merproject.org/obs/home:/RealJohnGalt:/testing:/hammerhead/sailfish_latest_armv7hl/#' \
/usr/share/ssu/repos.ini
4. delete/add/enable 'mw' repository (3 commands)
Code:
ssu dr mw
ssu ar mw http://repo.merproject.org/obs/nemo:/devel:/hw:/common/sailfish_latest_armv7hl/
ssu er mw
5. list repositories (check your changes)
Code:
ssu lr
6. clean/refresh database (2 commands)
Code:
devel-su zypper clean -a
devel-su zypper ref -f
7. start upgrade (That will take a long time. At least 1 hour or even more.)
Code:
version --dup
At some point, the upgrade will stop and 'hang'. Probably at a package similar to 'sociald-onedrive-signon' or so. The upgrade should be more than 80% done (that is my experience). Remember that package name... (write it down somewhere) and abort the installation with 'CTRL+C'.

8. sync/reboot (2 commands). You may have to force shutdown with a 'long press' on the power button.
Code:
sync
reboot
9. reinstall last package
Code:
devel-su zypper in -f <last package>
10. continue with 'version --dup' / sync / reboot
Code:
version --dup
sync
reboot
The upgrade should now be complete. In case the store is not working, disable the 'adaptation0' repository and refresh the database...
Code:
devel-su dr adaptation0
devel-su zypper ref
Update: I changed the procedure to match the indications of the first post in this thread.

Last edited by minimec; 2016-12-14 at 23:00.
 

The Following 10 Users Say Thank You to minimec For This Useful Post: