Steam 可以说是PC 游戏的最佳平台(best platform for PC gaming)。它的兼容性和庞大的游戏库使您可以轻松地将所有内容保存在一个地方,与朋友协调时间,甚至加入志同道合的游戏玩家群体。
不过,它并不总是彩虹和玫瑰。一些用户在尝试更新他们的游戏时报告“内容文件锁定”错误。虽然 Steam 更新通常是右键单击并执行更新的问题,但确实会出现错误。以下是修复这些错误(fix these errors)的方法。
Steam“内容文件锁定”错误是什么?(What Is the Steam “Content File Locked” Error?)
大多数有关此错误的报告来自更新不同的游戏(updating different games)。换句话说,Steam无法访问它需要更新的文件。这通常是由于权限问题而发生的。
尽管Steam在提供错误详细信息方面并不是最好的,但您可以尝试使用多种行之有效的方法来纠正问题。
如何修复 Steam“内容文件锁定”错误(How to Fix a Steam “Content File Locked” Error)
您可以尝试多种方法来纠正错误。有些方法比其他方法更难,但据报道,这里列出的每种方法都有效。
1.重置Winsock(Reset Winsock)
Winsock或Windows Socket API定义了操作系统应如何处理网络。通过重置Winsock,您可以恢复 Steam 与您的系统及其服务器的连接以允许正确更新。
要重置Winsock ,请以管理员权限打开命令提示符。(Command Prompt)在此之后,键入netsh winsock reset,然后按Enter。执行此操作后,您需要重新启动 PC。
2.清除Steam下载缓存(Clear Steam Download Cache)
Steam下载缓存的功能与任何其他缓存一样。虽然它可以更轻松、更快速地访问存储在缓存中的文件,但错误可能会累积,从而导致更新失败和内容文件锁定错误。
打开 Steam,然后单击Steam >设置( Settings)>下载( Downloads),然后单击清除下载缓存。(Clear Download Cache.)可能需要几分钟才能完成,之后Steam需要重新启动。这一步可以纠正很多Steam错误,而不仅仅是这一点。
3.执行磁盘扫描(Perform a Disk Scan)
磁盘扫描会检查您的系统是否存在错误,并在可能的情况下进行更正。搜索命令提示符(Command Prompt),右键单击开始(Start)菜单,然后选择以管理员身份运行。(Run as administrator. )您必须使用管理员权限,否则该操作将不起作用。
接下来,键入chkdsk c:/f并按Enter。然后,您需要输入Y来确认安排。重新启动计算机以开始测试。在您的系统完成磁盘扫描后,您的机器将正常启动——希望所有错误都得到纠正。
4.禁用您的防病毒软件(Disable Your Antivirus)
在某些情况下,您的防病毒软件可能会过度警惕并阻止Steam执行更新。虽然您不应该一直禁用防病毒软件,但在执行Steam更新时将其关闭是安全的。
只需确保在执行任何更新后重新启用防病毒软件即可。您可以采取的替代步骤是在您的防病毒软件中将Steam列入白名单。(Steam)通过证明Steam没有危险,您的防病毒软件将忽略它并允许来自Steam服务器的传入连接。
5.以管理员身份运行 Steam(Run Steam As Administrator)
Steam“内容文件锁定”错误的另一种解决方法是以管理员身份运行 Steam(run Steam as an administrator)。您可以右键单击Steam图标并选择以管理员身份运行(Run as administrator),但每次启动程序时都需要执行此操作。有一个更简单的方法。
右键单击(Right-click)Steam图标并选择属性>(Properties )兼容性。(Compatibility. )在设置菜单下,单击以管理员身份运行此程序。(Run this program as an administrator.)每次您启动Steam时,它都会以管理员权限运行——即使您通过单击已安装的游戏图标来启动它也是如此。
如果您的 PC 主要是一台游戏机,那么让Steam使用管理员权限并不是一个坏主意。它可以防止很多潜在的错误。
6.删除下载文件(Delete the Download Files)
您遇到此错误的一个可能原因是游戏开始更新,但遇到错误。重复(Duplicate)文件有时会导致Steam抛出“内容文件锁定”错误代码。
打开C:>程序文件 (x86)(Program Files (x86)) > Steam > steamapps >下载。(downloading. )Steam临时将下载和更新文件放入此文件夹。如果文件被卡住或拒绝下载或更新,请将其从该文件夹中删除,然后再次尝试更新。如果没有要处理的重复文件,Steam可以正确执行更新。
7.卸载并重新安装Steam(Uninstall And Reinstall Steam)
如果一切都失败了,您可以从您的计算机中完全删除Steam并重新安装。(Steam)要删除Steam,请打开控制面板(Control Panel )>卸载程序( Uninstall a program )并右键单击 Steam。选择卸载。(Uninstall. )删除Steam后,请重新启动您的 PC,然后再重新安装。请记住(Bear),这样做会删除所有(all )Steam 内容,包括下载的游戏(including downloaded games)。
您可以在 Steam 的网站上找到安装文件。只需按照步骤再次安装即可。这是一种极端的方法,但已证明可以有效地纠正此错误消息。
Steam 是一个很棒的 PC 游戏平台。不要让一些小错误成为游戏狂潮的绊脚石——只要知道如何纠正您在此过程中遇到的任何问题,就万事大吉了 。(Don)
How to Fix a Steam “Content File Locked” Error
Steam is arguably the best platform for PC gaming, period. Its compatibility and the massive library of games makes it easy to keep all your content in a single place, coordinate times with friends, and even join groups of like-minded gamers.
It’s not always rainbows and roses, though. Some users report a “content file locked” error when attempting to update their games. While Steam updates are usually a matter of right-clicking and performing the update, errors do arise. Here’s how you can fix these errors.
What Is the Steam “Content File Locked” Error?
Most of the reports for this error come from updating different games. In other words, Steam can’t access the files it needs to update. This usually happens due to a problem with permissions.
While Steam isn’t the best about providing error details, there are several tried-and-true methods you can try to correct the problem.
How to Fix a Steam “Content File Locked” Error
There are numerous methods you can try to correct the error. Some are more difficult than others, but every method listed here has been reported to work.
1. Reset Winsock
Winsock, or the Windows Socket API, defines how the operating system should handle networks. By resetting Winsock, you can restore Steam’s connection to your system and its servers to allow proper updates.
To reset Winsock, open the Command Prompt with administrator privileges. After this, type netsh winsock reset and then press Enter. You’ll need to restart your PC after you do this.
2. Clear Steam Download Cache
The Steam download cache functions like any other cache. While it makes it easier and faster to access files stored within the cache, errors can accumulate that result in failed updates and the content file locked error.
Open Steam, then click Steam > Settings > Downloads and click Clear Download Cache. It might take a few minutes to complete, after which Steam will need to restart. This one step can correct a lot of Steam errors, not just this one.
3. Perform a Disk Scan
A disk scan checks your system for errors and corrects them if it can. Search for the Command Prompt, right-click the Start menu, and select Run as administrator. You have to use administrator privileges or the operation will not work.
Next, type chkdsk c:/f and hit Enter. You will then need to type Y to confirm the scheduling. Restart your computer to begin the test. After your system completes the disk scan, your machine will boot as normal–hopefully with any errors corrected.
4. Disable Your Antivirus
In some cases, your antivirus software may be over-vigilant and stop Steam from performing updates. While you should not leave your antivirus software disabled all the time, it’s safe to turn it off while you perform a Steam update.
Just make sure you re-enable your antivirus after you perform any updates. An alternative step you can take is to whitelist Steam within your antivirus software. By demonstrating that Steam is not a danger, your antivirus will ignore it and allow incoming connections from the Steam servers.
5. Run Steam As Administrator
Another alternative fix to the Steam “content file locked” error is to run Steam as an administrator. You can right-click the Steam icon and choose Run as administrator, but you will need to do this each and every time you start the program. There’s an easier method.
Right-click the Steam icon and choose Properties > Compatibility. Beneath the Settings menu, click Run this program as an administrator. Each time you start Steam, it will run with administrative privileges–even if you start it by clicking an installed game icon.
If your PC is primarily a gaming machine, then enabling Steam to use admin privileges isn’t a bad idea. It can prevent quite a few potential errors.
6. Delete the Download Files
One possible reason you encounter this error is because the game began to update, but encountered an error. Duplicate files can sometimes result in Steam throwing the “content file locked” error code.
Open C: > Program Files (x86) > Steam > steamapps > downloading. Steam temporarily places download and update files into this folder. If a file is stuck or refuses to download or update, delete it from this folder and then try to update it once more. Without a duplicate file to contend with, Steam can properly carry out the update.
7. Uninstall And Reinstall Steam
If all else fails, you can completely remove Steam from your computer and reinstall it. To remove Steam, open Control Panel > Uninstall a program and right-click on Steam. Choose Uninstall. Once you remove Steam, restart your PC before installing it again. Bear in mind that doing this will remove all Steam content, including downloaded games.
You can find the installation file on Steam’s website. Just follow the steps to install it once again. This is an extreme method, but one that has proven effective at correcting this error message.
Steam is a great PC gaming platform. Don’t let a few small errors get in the way of a gaming binge–just know how to correct any problems you encounter along the way and you’re all set.