Cannot update from 17.6 to 18 nightly

When trying to upgrade my Vero to from 17.6.0-61 to the latest nightly of Leia I get the following error messages:

osmc@Vero:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gnome-bluetooth : Depends: bluez-obexd but it is not installed
 gnome-user-share : Depends: bluez-obexd but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
osmc@Vero:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  bluez-obexd
The following NEW packages will be installed:
  bluez-obexd
0 upgraded, 1 newly installed, 0 to remove and 35 not upgraded.
884 not fully installed or removed.
Need to get 0 B/177 kB of archives.
After this operation, 377 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 100621 files and directories currently installed.)
Preparing to unpack .../bluez-obexd_5.43-2+deb9u1_armhf.deb ...
Unpacking bluez-obexd (5.43-2+deb9u1) ...
dpkg: error processing archive /var/cache/apt/archives/bluez-obexd_5.43-2+deb9u1_armhf.deb (--unpack):
 trying to overwrite '/usr/share/dbus-1/services/org.bluez.obex.service', which is also in package armv7-bluez-osmc 5.43-3
Errors were encountered while processing:
 /var/cache/apt/archives/bluez-obexd_5.43-2+deb9u1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@Vero:~$

How can this be fixed?

Can you post debug logs:

https://osmc.tv/wiki/general/how-to-submit-a-useful-support-request/

What steps did you follow when trying to upgrade to the nightly?

I followed these instructions:

Enabled debug logging now and entered the following commands in SSH:
sudo apt-get update
sudo apt-get dist-upgrade

https://pastebin.com/6fdLepB2

Please upload full logs via My OSMC

Sorry…

https://paste.osmc.tv/asahuvuqey

Its not looking good. You installed:

Commandline: /usr/bin/apt-get-real install network-manager.openvpn gnome

Which then installed all sorts of other packages which caused the breakage. You could try removing gnome but its probably going to be faster just to reinstall from scratch.

I restored from an backup I’ve created before I tried openvpn, amazing…

Anyway, thanks for your hint, I will install from scratch now.