Checklist
What You Are Seeing?
Packages don't install correctly, i get this error: "The process cannot access the file 'C:\ProgramData\chocolatey\lib\jpegoptim.chocolateyPending' because it is being used by another process", i monitored the file with process monitor and i see this:
choco.exe | 4968 | CreateFile | C:\ProgramData\chocolatey\lib\jpegoptim.chocolateyPending | SHARING VIOLATION | Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Open No Recall, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
I don't have any active antivirus and it's seems that no other process is locking it. I tried the solution proposed in #1159 with no success.

What is Expected?
Packages install without errors.
How Did You Get This To Happen?
I ran this command: choco install jpegoptim. The error happens also for other packages i tried to install.
System Details
- Operating System: 10.0.19045.0
- Windows PowerShell version: 5.1.19041.2673
- Chocolatey CLI Version: 1.3.1
- Chocolatey Licensed Extension version: -
- Chocolatey License type: -
- Terminal/Emulator: Windows PowerShell
Installed Packages
Output Log
https://gist.github.com/felistime/643e663cb2f3456eec54ba1634bd330c
Additional Context
No response
Checklist
What You Are Seeing?
Packages don't install correctly, i get this error: "The process cannot access the file 'C:\ProgramData\chocolatey\lib\jpegoptim.chocolateyPending' because it is being used by another process", i monitored the file with process monitor and i see this:
choco.exe | 4968 | CreateFile | C:\ProgramData\chocolatey\lib\jpegoptim.chocolateyPending | SHARING VIOLATION | Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Open No Recall, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
I don't have any active antivirus and it's seems that no other process is locking it. I tried the solution proposed in #1159 with no success.
What is Expected?
Packages install without errors.
How Did You Get This To Happen?
I ran this command: choco install jpegoptim. The error happens also for other packages i tried to install.
System Details
Installed Packages
Output Log
Additional Context
No response