Score:-1

Help! Trying to install gnome tweaks for the first time

my flag

I'm trying to install gnome tweaks on pop_os with the command:

sudo apt install gnome-tweaks

after running the command I stumbled with this prompt:

Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is heWaiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 1102 (packagekitd)

Is there something I should be doing before this? online videos are not really specific about this.

Nmath avatar
ng flag
It means another process is using dpkg. You need to wait until that finishes. You need to run `sudo apt update` before you run anything else in `apt` and if you're going to add or remove software, you should also make sure everything is up-to-date with `sudo apt upgrade`. Otherwise you're increasing the chance that you're going to break something. FYI: Pop!OS is off topic here.
karel avatar
sa flag
Does this answer your question? [Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?](https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process)
Score:-2
ru flag

Sounds like you have another process or maybe another window also trying to do an install. Do you have the software center or something open? Are you doing another install in a different terminal window? If all else fails, maybe reboot?

Ballooncities 8 avatar
my flag
I think I DID click an install update notification, which opened the pop_shop into the installed tab. could that be the cause?
Bovine avatar
ru flag
I am not familiar with Pop, so cannot really say. Process 1102 is what has the file locked. You can run `ps 1102` to see what is running in that process.
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.