How to install KeePass2 on Lubuntu

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

sudo rm /var/lib/dpkg/lock

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 
sudo dpkg --configure -a

dpkg: error: parsing file '/var/lib/dpkg/updates/0028' near line 0:
 newline in field name '#padding'

cd /var/lib/dpkg/updates && sudo rm -rf 0028

sudo apt-get install keepass2