Update problem - var/lib/pacman/db.lck

If you remove the lck while it is running, you can potentially have two pacman processes running concurrently.

1 Like

I think people will read the entire thread, it’s not that long, but you’re right I guess. :thinking: :grin:

1 Like

I stopped it first.

Now I really got to run.

Thanks again everybody!

That I do realize. But if the update manager is just checking for the updates, it is only accessing the data, not changing anything… Probably will check it out myself in a VM and see what happens.

1 Like

Some of the update checkers actually refresh the local databases.

1 Like

As we all know pacman can’t do partial updates and when the pacman command runs to check for updates we are also dealing with cached files. Databases corrupt easily for various reasons. Sometimes the db.lck happens because of corrupted cached files as the process gets interrupted and doesn’t complete.

That’s my theory and I’m sticking to it! :wink:

1 Like

Well, the only downside so far is that the KDE update notifier is stuck on blue, as if there are updates, even if there aren’t any. I also can’t update the non-existing update using the notifier. Go figure.

I’m leaning towards it being a Plasma thing… :stuck_out_tongue_winking_eye:

Yeah, I might be wrong.

Is it kde update notifier or discover’s update notifier? Pamac update notifier?

1 Like

Oh sorry, Discover. My mix up.

:smile: Remove discover…install pamac-tray-appindicator It just gives you an update notification with a tray icon. It seems it’s popular now it’s downloads are up 27%.

2 Likes

there is also a arch update plasmoid … is also a nice thing :slight_smile:

https://aur.archlinux.org/packages/plasma5-applets-kde-arch-update-notifier-git/

2 Likes

Best suggestions ever!

I’ll look in to it.

Thanks!

1 Like

and for gnome users :slight_smile: https://aur.archlinux.org/packages/gnome-shell-extension-arch-update/

and for Xfce alternative not really a notifier but can for some usefull…

Xfce4 got a genmon plugin for the panel you can use it with : https://github.com/Mortal/genmon-pacman
if there is a update it shows right up… one side is a pitty in the past there was a xfce plugin but is now deathmeat :slight_smile:

but why db.lck happend everytime is strange i dont have it personally… is just more then one packagemanager uses libalmp or some fail, even pamac is sensitive since it also loads intoo boot proces to index the mirror to put it faster up. if the proces have a bit of fail or double to use the same lib you can get a db.lck offcourse

3 Likes

Just FYI, the updater is functioning again. It had to do with the Arch mirrors as reported here:

1 Like