Artix Linux Forum

Artix Linux => Package management => Topic started by: cat herders of linux on 12 January 2025, 13:21:21

Title: so there's a minor blip that means little regarding pacman db.lck file
Post by: cat herders of linux on 12 January 2025, 13:21:21
Code: [Select]
-> /var/lib/pacman/db.lck is present.
-> There may be another Pacman instance running. Waiting...


i been getting this a lot.  no biggie  sudo rm /var/lib/pacman/db.lck takes care of that.
but then as the update progresses i am now getting errors later in the upgrade process that upgrade is not possible because, you guessed it, /var/lib/pacman/db.lck is not present.  lol.  again not a big deal just rerun the update and it all sorts itself out.  so i am just wondering what causes the issue though.  is it my use of yay -Syu to run the upgrade that's the issue.  is it because i'm using pamac-flatpak as a tool to notify me when updates become available.  yes i am def running updates and installs from the terminal everytime.  is it the use of flatpaks in general?  Mostly it's just a curiosity on my part anyway.
Title: Re: so there's a minor blip that means little regarding pacman db.lck file
Post by: ####### on 12 January 2025, 22:28:38
Looks like an outstanding yay bug:
https://github.com/Jguer/yay/issues/2123 (https://github.com/Jguer/yay/issues/2123)

The message seems to come from yay:
https://github.com/Jguer/yay/commit/a565544712f599ec892765b37be97a1776c861ab (https://github.com/Jguer/yay/commit/a565544712f599ec892765b37be97a1776c861ab)

You could add your results to that bug, or try an alternative aur helper. According to the bug it has been tagged as help needed and good first issue, so you could even try and fix it yourself if you wanted.  ;)
Title: Re: so there's a minor blip that means little regarding pacman db.lck file
Post by: cat herders of linux on 13 January 2025, 01:36:53
Looks like an outstanding yay bug:
https://github.com/Jguer/yay/issues/2123 (https://github.com/Jguer/yay/issues/2123)

The message seems to come from yay:
https://github.com/Jguer/yay/commit/a565544712f599ec892765b37be97a1776c861ab (https://github.com/Jguer/yay/commit/a565544712f599ec892765b37be97a1776c861ab)

You could add your results to that bug, or try an alternative aur helper. According to the bug it has been tagged as help needed and good first issue, so you could even try and fix it yourself if you wanted.  ;)
My analysis clearly indicates that yay refuses my polite request to ‘please excuse my dear aunt sally’



Title: Re: so there's a minor blip that means little regarding pacman db.lck file
Post by: ####### on 13 January 2025, 02:08:32
https://www.youtube.com/watch?v=Ubl4Fcs5uQs (https://www.youtube.com/watch?v=Ubl4Fcs5uQs)
 ???

Not surprising yay gets confused if that's what you are telling it to do ....
Title: Re: so there's a minor blip that means little regarding pacman db.lck file
Post by: cat herders of linux on 13 January 2025, 12:29:19
Well, we shouldn’t be such gossips about my poor aunt sally.  No matter what she’s done PEMDAS still re excellent rules for the order of operations. 
Title: Re: so there's a minor blip that means little regarding pacman db.lck file
Post by: ####### on 13 January 2025, 13:10:29
Oh, PEMDAS, interesting - hadn't heard of that mnemonic before, I thought you'd been spending too much time talking to your cats!  :D
Title: Re: so there's a minor blip that means little regarding pacman db.lck file
Post by: cat herders of linux on 13 January 2025, 16:45:37
My cats are great conversationalists!
Title: Re: so there's a minor blip that means little regarding pacman db.lck file
Post by: cat herders of linux on 14 January 2025, 12:18:34
Oh, PEMDAS, interesting - hadn't heard of that mnemonic before, I thought you'd been spending too much time talking to your cats!  :D
  Must be an amercian thing.  they been using it since forever.  the were using it in high school alegbra 45 years ago and still today according to youtube videos.
Title: Re: so there's a minor blip that means little regarding pacman db.lck file
Post by: n00b on 14 January 2025, 19:38:33
BODMAS was what I learned.

Then BEDMAS
Title: Re: so there's a minor blip that means little regarding pacman db.lck file
Post by: ####### on 14 January 2025, 20:46:17
I should probably just have paid more attention in class, apologies to my poor long suffering maths teachers! I remember some discussion on the subject but can only recall that using a calculator was a good idea, also using brackets would make things obvious, and avoid the problem in the first place.
In fact you are not as far from understanding computer programming as you might imagine though, because a slight expansion of that gives the order of precedence for evaluating functions in code:
https://www.eecs.northwestern.edu/~wkliao/op-prec.htm (https://www.eecs.northwestern.edu/~wkliao/op-prec.htm)