Ubuntu Server 14.04
apt-get install <package>
produces the error:
E: Waited for /usr/sbin/dpkg-preconfigure --apt || true but it wasn't there E: Failure running script /usr/sbin/dpkg-preconfigure --apt || true
dpkg seems to be installed, see:
$ sudo apt-get install dpkg Reading package lists... Done Building dependency tree Reading state information... Done dpkg is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
How can I repair this package?
sudo apt-get install --reinstall dpkg
but of course this action produces the same error.