Settings wont open in Ubuntu 20.4

I have Ubuntu installed on an iMac (Mid 2011) It has worked very well for 12 months or so.Now settings wont open. Tried to reinstall Gnome control centre and received the following message:

gnome-control-center: 
error while loading shared libraries: /lib/x86_64-linux-gnu/libopenjp2.so.7: 
invalid ELF header.

Any advice appreciated.


Solution 1:

You may have library file corruption. To reinstall its package use command below:

sudo apt-get update
sudo apt-get install --reinstall libopenjp2-7