lockfile from the procmail package will do it.
** Changed in: util-linux (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1720541
Title:
flock does not lock dpk
flock is used for managing locks from shell script. dpkg uses lock file
/var/lib/dpkg/lock, but I can not manage it by flock. What is right tool
for the job I want to do then?
** Changed in: util-linux (Ubuntu)
Status: Invalid => New
--
You received this bug notification because you are a
No; what you want to do and what flock is intended to do are different
things. You're complaining that you can't use a hammer to screw in a
screw. You're using the wrong tool for the job.
** Changed in: util-linux (Ubuntu)
Status: New => Invalid
--
You received this bug notification be
Phillip Susi, I never claimed it did. But I may want to lock the
/var/lib/dpkg/lock beforehand, so that system is guaranteed to be
unchanged before I launch apt-get in a script. So I think the status
change you made, and the justification you gave is invalid.
** Changed in: util-linux (Ubuntu)
dpkg does not use flock(); it uses the lock file /var/lib/dpkg/lock.
** Changed in: util-linux (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1720541
Title:
f
** Description changed:
-
Test:
sudo flock /var/lib/dpkg/lock -c \
'echo 1; apt-get -o Debug::NoLocking=true check; echo 2; apt-get check'
Expected behavior:
apt-get fails in stage 2.
- Workaround (needs moreutils package)
+ Workaround (needs moreutils package, which is not ins