Lots of errors:
sudo apt-get remove --purge smb-app-osmc samba samba-*
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘samba-client’ for glob ‘samba-’
Note, selecting ‘samba-dev’ for glob 'samba-’
Note, selecting ‘samba-doc’ for glob ‘samba-’
Note, selecting ‘samba-dsdb-modules’ for glob 'samba-’
Note, selecting ‘samba-ad-dc’ for glob ‘samba-’
Note, selecting ‘samba-libs’ for glob 'samba-’
Note, selecting ‘samba-common’ for glob ‘samba-’
Note, selecting ‘samba-vfs-modules’ for glob 'samba-’
Note, selecting ‘samba-common-bin’ for glob ‘samba-’
Note, selecting ‘samba-tools’ for glob 'samba-’
Note, selecting ‘samba-testsuite’ for glob 'samba-’
Package ‘samba-doc’ is not installed, so not removed
Package ‘samba-tools’ is not installed, so not removed
Package ‘samba-ad-dc’ is not installed, so not removed
Note, selecting ‘smbclient’ instead of ‘samba-client’
Package ‘samba-dev’ is not installed, so not removed
Package ‘samba-dsdb-modules’ is not installed, so not removed
Package ‘samba-testsuite’ is not installed, so not removed
Package ‘samba-vfs-modules’ is not installed, so not removed
Package ‘smb-app-osmc’ is not installed, so not removed
The following packages were automatically installed and are no longer required:
armv7-bluez-osmc armv7-connman-osmc armv7-libass-osmc armv7-libbluray-osmc armv7-libnfs-osmc armv7-librtmp-osmc
armv7-libshairplay-osmc armv7-libsqlite-osmc curl fontconfig-config fonts-dejavu-core gir1.2-glib-2.0 iproute2
iptables libaacs0 libasound2 libasound2-data libavahi-compat-libdnssd1 libcap2-bin libcdio13 libcrossguid0 libcups2
libelf1 libenca0 libevdev2 libfile-copy-recursive-perl libfontconfig1 libfreetype6 libfribidi0 libfstrcmp0 libgif7
libgirepository-1.0-1 libgraphite2-3 libharfbuzz0b libinput-bin libinput10 libip6tc0 libiptc0 libiso9660-8 libjbig0
libjpeg62-turbo liblcms2-2 libldb1 liblzo2-2 libmad0 libmariadbclient18 libmicrohttpd12 libmnl0 libmtdev1
libnetfilter-conntrack3 libnfnetlink0 libnl-3-200 libnl-genl-3-200 libnss-myhostname libogg0 libpcrecpp0v5
libpcsclite1 libpkcs11-helper1 libplist3 libpopt0 libpython2.7 libsamplerate0 libssh-4 libtag1v5-vanilla libtalloc2
libtdb1 libtevent0 libtiff5 libtinyxml2.6.2v5 libvorbis0a libvorbisenc2 libwacom-common libwacom2 libwbclient0
libwebp6 libwebpdemux2 libwebpmux2 libxkbcommon0 libxslt1.1 libxtables12 libyajl2 mediacenter-addon-osmc
mediacenter-eventclients-common-osmc mediacenter-send-osmc mediacenter-skin-osmc mysql-common net-tools openvpn
python-chardet python-dbus python-dnspython python-gi python-gobject python-gobject-2 python-imaging python-ldb
python-pexpect python-pil python-pkg-resources python-ptyprocess python-requests python-six python-talloc python-tdb
python-unidecode python-urllib3 tdb-tools update-inetd vero3-libcec-osmc wget wireless-firmware-osmc wpasupplicant
xkb-data
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
armv7-network-osmc cifs-utils* libsmbclient* python-samba* samba* samba-common* samba-common-bin* samba-libs*
vero3-device-osmc* vero3-mediacenter-osmc*
0 upgraded, 0 newly installed, 10 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 307 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 33027 files and directories currently installed.)
Removing samba (2:4.5.16+dfsg-1+deb9u2) …
Removing vero3-device-osmc (1.4.2) …
WARNING: You have tried to remove a package that is essential to OSMC’s operation.
To undo these changes, run ‘sudo apt-get -f install’.
dpkg: error processing package vero3-device-osmc (–remove):
subprocess installed pre-removal script returned error exit status 1
Removing samba-common-bin (2:4.5.16+dfsg-1+deb9u2) …
Removing python-samba (2:4.5.16+dfsg-1+deb9u2) …
dpkg: vero3-mediacenter-osmc: dependency problems, but removing anyway as you requested:
vero3-device-osmc depends on vero3-mediacenter-osmc.
Removing vero3-mediacenter-osmc (18.2.0-12) …
Removing libsmbclient:armhf (2:4.5.16+dfsg-1+deb9u2) …
dpkg: samba-common: dependency problems, but removing anyway as you requested:
cifs-utils depends on samba-common.
Removing samba-common (2:4.5.16+dfsg-1+deb9u2) …
Removing samba-libs:armhf (2:4.5.16+dfsg-1+deb9u2) …
dpkg: armv7-network-osmc: dependency problems, but removing anyway as you requested:
vero3-device-osmc depends on armv7-network-osmc.
Removing armv7-network-osmc (1.7.6) …
WARNING: You have tried to remove a package that is essential to OSMC’s operation.
To undo these changes, run ‘sudo apt-get -f install’.
dpkg: error processing package armv7-network-osmc (–remove):
subprocess installed pre-removal script returned error exit status 1
dpkg: cifs-utils: dependency problems, but removing anyway as you requested:
armv7-network-osmc depends on cifs-utils.
Removing cifs-utils (2:6.7-1) …
Errors were encountered while processing:
vero3-device-osmc
armv7-network-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@osmc:~$ sudo apt-get autoremove
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:
armv7-network-osmc : Depends: cifs-utils but it is not installed
vero3-device-osmc : Depends: vero3-mediacenter-osmc but it is not installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
osmc@osmc:~$ sudo mv /etc/samba /etc/samba.old
mv: cannot stat ‘/etc/samba’: No such file or directory
osmc@osmc:~$ sudo apt-get install smb-app-osmc
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:
armv7-network-osmc : Depends: cifs-utils but it is not going to be installed
smb-app-osmc : PreDepends: samba but it is not going to be installed
vero3-device-osmc : Depends: vero3-mediacenter-osmc but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).