-
Notifications
You must be signed in to change notification settings - Fork 834
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apt-install does not create lock #1712
Comments
We do not own the apt binary, and this seems to be an issue in user-mode. Relying on the behavior the presence of a folder that that user can delete seems like a bad idea. I haven't ever seen this locally. Did you do anything in particular like delete things in the /var directory? |
I have tried to not mess with the /var/ directory, but I can check whether this behaviour still occurs the next days. |
@benhillis -- "relying on the behavior ... bad idea" -- welcome to Linux command-line tools :-) Though, in this case, it looks to me like this is in fact a kernel (WSL) bug or limitation. I am able to reproduce this reliably on my own machine, using build 15031. My repro is as follows:
Expected:
WSL:
If I strace one of the two commands, I see the following:
|
@aseering - thanks for the additional information. I know our file locking implementation is incomplete, I'll take a look and see if I can see what's going on. |
FWIW, I found out that |
Note: this issue is duplicated by #1927, which should probably be the primary ticket. |
/dupe #1927 |
Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
touch /tmp/lock zmodload zsh/system zsystem flock /tmp/lock ( zsystem flock /tmp/lock ) # must hang but on wsl it doesn't See: - microsoft/WSL#1927 - microsoft/WSL#1712
touch /tmp/lock zmodload zsh/system zsystem flock /tmp/lock ( zsystem flock /tmp/lock ) # must hang but on wsl it doesn't See: - microsoft/WSL#1927 - microsoft/WSL#1712
While performing a
sudo apt-get upgrade
I can open another Bash on Ubuntu on Windows and do a
sudo apt-get install build-essentials
which then both crashes. But I suspect the first apt-get updgrade should have created a lock in /var/lock/ ?
Currently running Insider Builds 15031.
The text was updated successfully, but these errors were encountered: