Software Updater doesn't update and returns : Package Operation Failed [duplicate]

Solution 1:

A solution to this locking problem is detailed in the wiki:

sudo fuser -v /var/cache/debconf/config.dat

Will show you what process is holding the lock:

                     USER        PID ACCESS COMMAND
/var/cache/debconf/config.dat:
                     root      18210 F.... dpkg-preconfigu

Then you simply need to note down the PID and kill it like so:

sudo kill PID
sudo kill -9 PID  # if the first doesn't work

Solution 2:

This is more simple one command

I just did:

sudo rm /var/cache/debconf/*.dat 

After I run the apt-get install and (I was installing curl ) and it worked restored the db manual pages.

PS: I removed something with apt-get and I did have this problem. but solved it simply thank also to @rajagenupula