Windows 10: The process cannot access the file because it is being used by another process

Discus and support The process cannot access the file because it is being used by another process in Windows 10 BSOD Crashes and Debugging to solve the problem; Hello people, I get a strange error message every time I try to install haskell. My last attempt was trying to install it with the following command:... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by E01T_null, Dec 1, 2020.

  1. E01T_null Win User

    The process cannot access the file because it is being used by another process


    Hello people,

    I get a strange error message every time I try to install haskell. My last attempt was trying to install it with the following command: choco install ghc --pre.

    The whole message is the following:


    C:\Windows\system32>choco install ghc --pre

    Chocolatey v0.10.15

    Installing the following packages:

    ghc

    By installing you accept licenses for the packages.

    Progress: Downloading cabal 3.4.0.0-rc3... 100%

    Progress: Downloading ghc 9.0.1-alpha1... 100%



    cabal v3.4.0.0-rc3 - Possibly broken

    cabal package files install completed. Performing other installation steps.

    The package cabal wants to run 'chocolateyInstall.ps1'.

    Note: If you don't run this script, the installation will fail.

    Note: To confirm automatically next time, use '-y' or consider:

    choco feature enable -n allowGlobalConfirmation

    Do you want to run the script?[Y]es/[A]ll - yes to all/[N]o/[P]rint: Y



    Downloading cabal 64 bit

    from 'https://mistuke.blob.core.windows.net/binaries/unofficial/cabal/cabal-install-3.4.0.0-rc3-x86_64-unknown-mingw32.zip'

    Progress: 100% - Completed download of C:\Users\E01T\AppData\Local\Temp\chocolatey\cabal\3.4.0.0-rc3\cabal-install-3.4.0.0-rc3-x86_64-unknown-mingw32.zip 5.22 MB.

    Download of cabal-install-3.4.0.0-rc3-x86_64-unknown-mingw32.zip 5.22 MB completed.

    Hashes match.

    Extracting C:\Users\E01T\AppData\Local\Temp\chocolatey\cabal\3.4.0.0-rc3\cabal-install-3.4.0.0-rc3-x86_64-unknown-mingw32.zip to C:\ProgramData\chocolatey\lib\cabal\tools\cabal-3.4.0.0...

    C:\ProgramData\chocolatey\lib\cabal\tools\cabal-3.4.0.0

    Updated cabal configuration.

    Adding C:\ProgramData\chocolatey\bin\mingw64-pkg.bat and pointing it to powershell command C:\ProgramData\chocolatey\lib\cabal\tools\mingw64-pkg.ps1

    Environment Vars like PATH have changed. Close/reopen your shell to

    see the changes or in powershell/cmd.exe just type `refreshenv`.

    ShimGen has successfully created a shim for cabal.exe

    ShimGen has successfully created a shim for cabal.exe

    The install of cabal was successful.

    Software installed to 'C:\ProgramData\chocolatey\lib\cabal\tools\cabal-3.4.0.0'



    ghc v9.0.1-alpha1

    ghc package files install completed. Performing other installation steps.

    The package ghc wants to run 'chocolateyInstall.ps1'.

    Note: If you don't run this script, the installation will fail.

    Note: To confirm automatically next time, use '-y' or consider:

    choco feature enable -n allowGlobalConfirmation

    Do you want to run the script?[Y]es/[A]ll - yes to all/[N]o/[P]rint: Y



    File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.

    Error - hashes do not match. Actual value was '34E683AC3672E465298147DE344E0C81BB817F091BABABE6C369067E5E4B7991'.

    Downloading ghc 64 bit

    from 'https://downloads.haskell.org/~ghc/9.0.1-alpha1/ghc-9.0.0.20200925-x86_64-unknown-mingw32.tar.xz'

    Progress: 98% - Saving 135.81 MB of 137.29 MB Chocolatey timed out waiting for the command to finish. The timeout

    specified or the default value was '2700' seconds. Perhaps try a

    higher `--execution-timeout`? See `choco -h` for details.

    Error computing hash for 'C:\ProgramData\chocolatey\lib\ghc\tmp\ghcInstall'

    Hash will be special code for locked file or file too big instead.

    Captured error:

    The process cannot access the file 'C:\ProgramData\chocolatey\lib\ghc\tmp\ghcInstall' because it is being used by another process.

    The install of ghc was NOT successful.

    Error while running 'C:\ProgramData\chocolatey\lib\ghc\tools\chocolateyInstall.ps1'.

    See log for details.

    This is try 1/3. Retrying after 300 milliseconds.

    Error converted to warning:

    5 Access is denied: [\\?\C:\ProgramData\chocolatey\lib-bad\ghc]

    This is try 2/3. Retrying after 400 milliseconds.

    Error converted to warning:

    5 Access is denied: [\\?\C:\ProgramData\chocolatey\lib-bad\ghc]

    Maximum tries of 3 reached. Throwing error.

    This is try 1/3. Retrying after 300 milliseconds.

    Error converted to warning:

    32 The process cannot access the file because it is being used by another process: [\\?\C:\ProgramData\chocolatey\lib-bad\ghc\tmp\ghcInstall]

    This is try 2/3. Retrying after 400 milliseconds.

    Error converted to warning:

    32 The process cannot access the file because it is being used by another process: [\\?\C:\ProgramData\chocolatey\lib-bad\ghc\tmp\ghcInstall]

    Maximum tries of 3 reached. Throwing error.

    Could not move bad package to failure directory It will show as installed.

    C:\ProgramData\chocolatey\lib\ghc

    The error:

    32 The process cannot access the file because it is being used by another process: [\\?\C:\ProgramData\chocolatey\lib-bad\ghc\tmp\ghcInstall]

    Progress: 99% - Saving 135.96 MB of 137.29 MB

    Chocolatey installed 1/2 packages. 1 packages failed.

    See the log for details C:\ProgramData\chocolatey\logs\chocolatey.log.

    Failures

    - ghc exited -1 - Error while running 'C:\ProgramData\chocolatey\lib\ghc\tools\chocolateyInstall.ps1'.

    See log for details.


    So if I understand correctly the failure is that: The process cannot access the file because it is being used by another process. I am not sure what I am doing wrong. The same applies when I try to install haskell through the "choco install haskell-dev" command. Which process is blocking the installation if any?


    Thank you in advance

    :)
     
    E01T_null, Dec 1, 2020
    #1
  2. GNJha Win User

    Boot Process

    Hi,

    Please suggest me a link that can explain the boot process step by step of ...

    • Windows 7,
    • Windows 8.1,
    • Windows 10,
    • Windows Server 2008 R2 and
    • Windows Server 2012 R2

    With Regards

    InTech
     
    GNJha, Dec 1, 2020
    #2
  3. Steevo Win User
    GPU-z process listing

    W1zz


    Could we get a process list of applications using the GPU and the amount of use for each process?



    Thanks
     
    Steevo, Dec 1, 2020
    #3
  4. The process cannot access the file because it is being used by another process

    Could not reassociate with File History data - The process cannot access the file because it is being used by another process.

    Hello,

    I am having problems changing File History drives so that I can recover data from a PC that has failed. In order to access the File History of the failed PC I follow these steps:

    1) File History settings -> Set up File History -> Turn off

    2) File History settings -> Set up File History -> Select Drive

    3) File History settings -> Select a File History drive -> Choose drive and then the existing backup, click OK

    4) Do you want to use this drive for File History again? -> Click Yes

    Error dialog "Could not reassociate with File History data - The process cannot access the file because it is being used by another process."

    I have verified that no other processes are accessing the drive in question using Process Explorer from www.sysinternals.com. Rebooting the machine makes no difference.

    Any ideas?
     
    InnovativeOne, Dec 1, 2020
    #4
Thema:

The process cannot access the file because it is being used by another process

Loading...
  1. The process cannot access the file because it is being used by another process - Similar Threads - process cannot access

  2. Runtime error at 110:69 The process cannot access the file because it is being used by...

    in Windows 10 Gaming
    Runtime error at 110:69 The process cannot access the file because it is being used by...: I am running demo Windows 11 on Mac Parallels just for this one game I play usually on my home desktop. I got it running smoothly since 2022 until a few days ago I went in to update the game with it's installer.exe and I got this error "Runtime error at 110:69 The process...
  3. Runtime error at 110:69 The process cannot access the file because it is being used by...

    in Windows 10 Software and Apps
    Runtime error at 110:69 The process cannot access the file because it is being used by...: I am running demo Windows 11 on Mac Parallels just for this one game I play usually on my home desktop. I got it running smoothly since 2022 until a few days ago I went in to update the game with it's installer.exe and I got this error "Runtime error at 110:69 The process...
  4. error 0x80070021: the process cannot access the file because another process has locked a...

    in Windows 10 Gaming
    error 0x80070021: the process cannot access the file because another process has locked a...: Hello Everyone,This is Tarek. I am trying to move my files to the NAS Storage folder, My files contain 3D max files. but each time I tried to move the folders, this error showed up error 0x80070021: the process cannot access the file because another process has locked a...
  5. error 0x80070021: the process cannot access the file because another process has locked a...

    in Windows 10 Software and Apps
    error 0x80070021: the process cannot access the file because another process has locked a...: Hello Everyone,This is Tarek. I am trying to move my files to the NAS Storage folder, My files contain 3D max files. but each time I tried to move the folders, this error showed up error 0x80070021: the process cannot access the file because another process has locked a...
  6. error 0x80070021: the process cannot access the file because another process has locked a...

    in Windows 10 Drivers and Hardware
    error 0x80070021: the process cannot access the file because another process has locked a...: Hello Everyone,This is Tarek. I am trying to move my files to the NAS Storage folder, My files contain 3D max files. but each time I tried to move the folders, this error showed up error 0x80070021: the process cannot access the file because another process has locked a...
  7. The process cannot access the file because it is being used by another process

    in Windows 10 Installation and Upgrade
    The process cannot access the file because it is being used by another process: It says unable to open file for writing this never happen before but idk how to fix I watched yt videos on how to fix it but nothing works https://answers.microsoft.com/en-us/windows/forum/all/the-process-cannot-access-the-file-because-it-is/fdd31bc3-624a-4fca-b512-2d5763fd5dff
  8. The process cannot access the file because it is being used by another process

    in Windows 10 Installation and Upgrade
    The process cannot access the file because it is being used by another process: I was using my Windows 10 PC and foolishly deleted a registry from regedit. This caused my system to go awry and since then I am facing the BSOD. I have tried resetting the system but the error 'There was a problem resetting your PC' came. I then tried: cd...
  9. Hosts file being used for another process

    in Windows 10 BSOD Crashes and Debugging
    Hosts file being used for another process: Hi There sorry if the question is reposted. i tried to install some program but it denied due to the installation cant access hosts file because being used for another process see image below [ATTACH] since i dont what process using the hosts file and try to google to...
  10. The process cannot access the file because it is being used by another process

    in Windows 10 News
    The process cannot access the file because it is being used by another process: [ATTACH]It’s a known fact that if a file is already in use, it cannot […] This article The process cannot access the file because it is being used by another process first appeared on TheWindowsClub.com. read more...