Error while loading shared libraries: invalid ELF header

Hi, I am running Ubuntu Mate 16.04 on a Raspberry Pi2.

Mate-terminal and network-manager have stopped working after a power failure.

Attempting to start either gives the error:

error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/ invalid ELF header

Any idea how I can solve this ? Thanks.

I know this will sound painful, but maybe you can attempt to restore the libraries that are having trouble. since terminal is failing, you may need another terminal app to just help get you through the restore.
Or setup another sd card instance of 16 and hand copy what you need off.
Sorry I couldn't tell you the libraries but they may be mentioned in a system log, or Google may know where they are stored as a whole.

Hi, I can access the tty Terminal. And I haven't tried yet but Ethernet may work, I don't know.