Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»Fix: An Error Occurred While Trying to Copy a File. The Source File is Corrupted

Fix: An Error Occurred While Trying to Copy a File. The Source File is Corrupted

Abhishek SilwalBy Abhishek SilwalNovember 23, 2022
An error occurred while trying to copy a file. The source file is corrupted

Sometimes, while trying to install an application on your system, you may encounter the “An error occurred while trying to copy a file. The source file is corrupted” error message. It also gives three options: Abort, Retry and Ignore. In most cases, the latter options do not help install the app and the first choice is to cancel the installation.

Usually, as the error message says, the source installer is really corrupted. It can happen due to network issues or if you downloaded the file from unreliable websites. However, the issue can also occur due to storage disk or RAM errors or because of conflicts with the previous software. In this article, we include the solutions you need to use for all cases.

Table of Contents

  • How to Fix An Error Occurred While Trying to Copy a File. The Source File is Corrupted
    • Re-download the File
    • Troubleshoot Network Issues
    • Check Storage Disk and Connections
    • Uninstall App if Previously Installed
    • Check Random Access Memory

How to Fix An Error Occurred While Trying to Copy a File. The Source File is Corrupted

Here are the possible solutions you can apply whenever you encounter the “An error occurred while trying to copy a file. The source file is corrupted” error on Windows:

Re-download the File

The first thing you should do is to re-download the installer. It is possible that the previous installer was not really complete, which is more probable if you are using torrents.

We recommend using proper channels to download the file instead of peer-to-peer (P2P) connections like torrents. For instance, if you encounter an issue with a video game, try using Steam or any dedicated platform.

Also, if you downloaded an installer earlier, you can try downloading a portable version of the app and use it instead. Keep in mind that you may need to add the folder to your Path variable if you want to use a programming tool or git-bash.

Troubleshoot Network Issues

It is possible that some network issue was responsible for the incomplete download of the source file. So, whenever you encounter this issue, we recommend temporarily disabling your third-party antivirus and firewall if you think the file you want to download is safe.

Additionally, you may also encounter issues while downloading the installer if your hosts file is blocking certain IP or DNS addresses. You need to check the file and comment out all unnecessary lines by adding a hashtag (#) sign at the front to resolve this issue.

Check Storage Disk and Connections

If you were trying to install a program from an external storage drive, it is possible that the connection was disrupted suddenly. If so, your computer can’t find the next necessary file or dependency for installation and assumes the source to be corrupt.

So, we recommend performing the following checks to make sure everything is alright:

  • Check if the cable is loose or highly twisted.
  • Connect the disk with another PC and check if there are any connection issues.
  • Do the same by using another disk or device with your computer.

Apart from connection problems, you may also encounter the error if the disk is corrupted, leading to missing sections of the source installer. You can check for disk sector corruption by running the Disk Checking (CHKDSK) utility. To do so,

  1. Open Run.
  2. Type cmd and press Ctrl + Shift + Enter to open the Elevated Command Prompt.
  3. Enter the command: chkdsk /r /x C: and follow the prompts.
    chkdsk-r-x-c
  4. If you encounter this issue while trying to download the file in another volume, use its drive letter instead in place of C:

CHKDSK should resolve any logical sector or partition errors. However, if it shows that the disk has errors but fails to resolve them, your disk is likely failing. You need to replace it in such a scenario.

Uninstall App if Previously Installed

If you are trying to install a different version of the app you already have, the files may conflict, leading to this issue. You need to uninstall the previous program and make a clean install to avoid such issues. Here’s how you can do so:

  1. Open Run.
  2. Type appwiz.cpl and press Enter to open Programs and Features.
  3. Look for and select the app.
  4. Click Uninstall or Uninstall/Change and follow the on-screen instructions.
    uninstall-application-appwiz
  5. Then, open Run again.
  6. Type appdata and press Enter to open the AppData folder.
  7. Go inside Local and Roaming folders and delete the residual files/folders of the apps you uninstalled.
    appdata-local-roaming
  8. The folders usually have the name of the app or its manufacturer, so they are easy to recognize. If you can’t tell which folder you need to remove, you can check official sources for this information.

After that, try running the installer again and see if it works this time.

Check Random Access Memory

If you get this error in all or almost all programs you are attempting to install, it is possible that your RAM has some defects. You can check for such an issue by running the Windows Memory Diagnostic app. To do so,

  1. Open Run.
  2. Type mdsched and press Enter to open Windows Memory Diagnostic.
  3. Click on Restart now and check for problems (recommended).
    restart-now-windows-diagnostic

Your PC now restarts and runs the tests. After that, it restarts again and shows the result message. If it shows any error, your RAM stick or slot is defective. You can try using a single RAM at a time on different slots to narrow down the faulty device.

Then, you should be able to resolve the issue by replacing it. You can seek help from hardware experts if you experience any problems in the process.

fix
Abhishek Silwal
  • LinkedIn

Abhishek Silwal is an Electronics Engineer and a technical writer at TechNewsToday. He specializes in troubleshooting a wide range of computer-related issues. His educational background in Electronics Engineering has given him a solid foundation in understanding of computers. He is also proficient in several programming languages and has worked on various robotics projects. Even in his early days, he used to tinker with various computer components, both hardware, and software, to satiate his curiosity. This experience has given him a breadth of experience that goes beyond his educational qualification. Abhishek has been writing articles on dealing with varieties of technical issues and performing specific tasks, especially on a Windows machine. He strives to create comprehensive guides on fixing many system and hardware issues and help others solve their problems. You can contact him at abhisheksilwal@technewtoday.com

Related Posts

amd-software-not-opening

How to Fix AMD Software Not Opening

March 3, 2023
how to create a folder

7 Ways to Create a Folder on Windows

March 3, 2023
turn off automatic updates windows

How to Turn Off Automatic Updates on Windows

March 2, 2023
Memory-Compression

What is Memory Compression in Windows? Should You Enable or Disable It

March 1, 2023
dism-vs-sfc-vs-chdsk

DISM, SFC, CHKDSK: What’s the Difference

February 28, 2023
how-to-open-exe-file

4 Ways to Open EXE File

March 2, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
Memory-Compression

What is Memory Compression in Windows? Should You Enable or Disable It

March 1, 2023
dism-vs-sfc-vs-chdsk

DISM, SFC, CHKDSK: What’s the Difference

February 28, 2023
bios-settings-for-gaming

Best BIOS Settings for Gaming

February 16, 2023
You may also like
how-to-clean-hp-printer-rollers

How to Clean HP Printer Rollers

March 3, 2023
keyboard input lag

9 Ways to Fix Keyboard Input Lag

March 3, 2023
keyboard key is stuck

How to Fix a Stuck Key on a Keyboard

March 3, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.