tegwilym@Tom-Ubuntu:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
astrometry.net libastrometry0 libcfitsio-bin liberfa1 libindidriver1 libkf5bookmarks-data libkf5bookmarks5 libkf5kiofilewidgets5 linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic
linux-image-4.4.0-101-generic linux-image-extra-4.4.0-101-generic python-astrometry python-astropy sextractor
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libindi1
The following packages will be upgraded:
libindi1
1 upgraded, 0 newly installed, 0 to remove and 166 not upgraded.
4 not fully installed or removed.
Need to get 0 B/289 kB of archives.
After this operation, 1,048 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 520193 files and directories currently installed.)
Preparing to unpack .../libindi1_1.6.2+r3729~201801140557~ubuntu16.04.1_amd64.deb ...
Unpacking libindi1:amd64 (1.6.2+r3729~201801140557~ubuntu16.04.1) over (1.1.0-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libindi1_1.6.2+r3729~201801140557~ubuntu16.04.1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libindidriver.so.1', which is also in package libindidriver1:amd64 1.1.0-1ubuntu1
Processing triggers for libc-bin (2.23-0ubuntu9) ...
/sbin/ldconfig.real: /usr/lib/nvidia-375/libEGL.so.1 is not a symbolic link
/sbin/ldconfig.real: /usr/lib32/nvidia-375/libEGL.so.1 is not a symbolic link
Errors were encountered while processing:
/var/cache/apt/archives/libindi1_1.6.2+r3729~201801140557~ubuntu16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
tegwilym@Tom-Ubuntu:~$
Tried that too. It's just stuck in there and can't uninstall.
tegwilym@Tom-Ubuntu:~$ sudo apt-get remove libindi1
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
indi-aagcloudwatcher : Depends: libindi1 but it is not going to be installed
indi-apogee : Depends: libindi1 but it is not going to be installed
indi-asi : Depends: libindi1 but it is not going to be installed
indi-bin : Depends: libindi1 but it is not going to be installed
indi-dsi : Depends: libindi1 but it is not going to be installed
indi-duino : Depends: libindi1 but it is not going to be installed
indi-eqmod : Depends: libindi1 but it is not going to be installed
indi-ffmv : Depends: libindi1 but it is not going to be installed
indi-fishcamp : Depends: libindi1 but it is not going to be installed
indi-fli : Depends: libindi1 but it is not going to be installed
indi-full : Depends: libindi1 (>= 1.2) but it is not going to be installed
indi-gphoto : Depends: libindi1 but it is not going to be installed
indi-gpsd : Depends: libindi1 but it is not going to be installed
indi-gpsnmea : Depends: libindi1 but it is not going to be installed
indi-maxdomeii : Depends: libindi1 but it is not going to be installed
indi-mi : Depends: libindi1 but it is not going to be installed
indi-nexdome : Depends: libindi1 but it is not going to be installed
indi-nexstarevo : Depends: libindi1 but it is not going to be installed
indi-qhy : Depends: libindi1 but it is not going to be installed
indi-qsi : Depends: libindi1 but it is not going to be installed
indi-sbig : Depends: libindi1 but it is not going to be installed
indi-sx : Depends: libindi1 but it is not going to be installed
kstars-bleeding : Depends: libindi1 but it is not going to be installed
libindi-dev : Depends: libindi1 (= 1.6.2+r3729~201801140557~ubuntu16.04.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
tegwilym@Tom-Ubuntu:~$
All working again. I gave up and did a full reinstall of 16.04. Fortunately, a Linux reinstall is just a fairly quick thing to do - unlike Windows where you need to clear out a whole day to fix!