this error occurs during installation of software when lock file is being modified
by some other process or when you are trying to install two different software at
the same time so get rid of this problem
1>install one software at a time
but the problem still persist then
run the following command
rm /var/lib/dpkg/lock
this command removes lock over lock file.location of the file may be different in
different linux operating system