I have a CentOS 7 server running the latest version of DNX. Upon uploading a small ASP.NET project (which runs fine on my local Windows machine), I attempted to run dotnet restore from a user with sudo privileges (and is an owner of the folder that the project is located in).
I receive the following errors:
Failed to create prime the NuGet cache. restore failed with: 1
error: Unable to obtain lock file access on '/tmp/NuGetScratch/lock/[random text] for operations on '/tmp/NuGet/TempCache/[guid]/fpsbidfe.tig'
The error message then suggests that removing the file stated above might allow NuGet to continue. However, when attempting to remove the file in question, I get a "file does not exist" error.
Any suggestions on what I can look into to figure out where the actual issue lies? Would removing all files in the/tmp/NuGetScratch/lock folder do any harm?