Setting up armv6l-connman-osmc (1.3.3-1) ...crash

while updating PI2 via ssh i lost connection on putty.
the last command displayed was
Setting up armv6l-connman-osmc (1.3.3-1) …
Any idea?

when attempting to update via osmc menu, update never gets past 82%.

#frustrating

Because the network gets brought down.
If you don’t hammer any keys and wait for it to restart it will come back.

If you use dist-upgrade, we assume you know what you are doing and know that the network may go down.

You flatter me by saying i know what i’m doing,
key hammering i can do, learning from my mistakes is getting harder, brain suffering from memory read/write issues

Try SSH back in, separate Putty session.
Run sudo apt-get update && sudo apt-get dist-upgrade

All should be fine. If not, paste the output.

osmc@osmc:/$ sudo apt-get update
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://apt.osmc.tv jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Get:1 http://apt.osmc.tv jessie/main armhf Packages/DiffIndex [2023 B]
Ign http://apt.osmc.tv jessie/main Translation-en
Fetched 2023 B in 22s (88 B/s)
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
osmc@osmc:/$ sudo apt-get dist-upgrade
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
osmc@osmc:/$

sudo kill $(pidof dpkg)
sudo rm /var/lib/dpkg/lock
sudo apt-get update
sudo apt-get dist-upgrade

Install and use screen for terminal separation next time to play save

I have another suggestion.

Since apt-get is just a shell script wrapper for apt-get-real, it would be trivially easy to modify apt-get to include the nohup command.

Detach might be better suited as nohup has no output to terminal.
Also apt should not get killed by session disconnect anyway.

Guys, thank you all for your replies and suggestions.

Looks like the PI2 i bought from eBay was actually a PI 1. I put the correct .img on and it worked first time.

Just goes to show you should check the photos on eBay with care.