Errors were encountered while processing

Getting an error trying to sudo apt-get -y dist-upgrade

“Setting up install-info (5.2.0.dfsg.1-6) …

Not a directory: /usr/share/info.

dpkg: error processing package install-info (–configure):

subprocess installed post-installation script returned error exit status 1

Processing triggers for libc-bin (2.19-18+deb8u7) …

Errors were encountered while processing:


E: Sub-process /usr/bin/dpkg returned an error code (1)”

I found the best way to fix this is

sudo apt-get –purge remove install-info

sudo apt-get install install-info