I was try to install mono using the following command:
sudo apt-get install mono-*
I closed the terminal while it was installing. I restarted the install, and I got the error message:
Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
I so far tried running these commands:
sudo rm /var/lib/apt/lists/lock sudo rm /var/cache/apt/archives/lock
I am now getting the following error message:
dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
I then used
sudo dpkg --configure -a, but now i am getting the following error:
dpkg: error: parsing file '/var/lib/dpkg/updates/0001' near line 0: newline in field name `#padding'"**
I also tried
cd /var/lib/dpkg/updates && rm -rf 0045 and
sudo dpkg --configure -a , but that was no use.
how do i fix this one?