Score:0

When I opened the Software centre, I could not see any application. I am getting an error when I try to reinstall it

se flag

I could not see applications when I opened Software Center. When I tried to reinstall I got an error message:

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 8394 (apt-get)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

Please help me resolve the above issue.

guiverc avatar
cn flag
Check you haven't a terminal session open performing a package operation (esp. waiting for you to answer a question such as a Y to proceed)
Score:1
it flag

Explore with ps -fp8394. If process 8394 exists, you (or unattended-updates) are updating the packaging system elsewhere.

If process 8394 does not exist, the lock file may be left over from an update interrupted by a sudden reboot. If so, it should be deleted, BUT your packaging system may be in an inconsistent state.

Do

sudo apt update
sudo apt upgrade
  

and Read the Error Messages.

An alternative explanation for ps -fp8394 being empty may be that process 8394 has finished, and deleted the lock file.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.