error in sudo apt-get update

Dear users,

I am getting the following error,while updating sudo apt-get update
E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure -a’ to correct the problem.

So, 

I am unable to install octave ,g++, gfortran 

If any bady knows please help me
thank you

please respect that fact that this is a mailing list and forum for
discussing LAMMPS. yours is a ubuntu / debian question. please ask in
the appropriate forum or ask colleagues with experience administrating
such machines. there should be plenty of them at a place like yours.

thanks for your understanding,
     axel.