<An error occurred while retrieving package metadata for \'bootstrap.3.3.5\' from source \'nuget.org\'. ========== Finished ==========
It requires two steps (second is maybe optional, but I always like clean solution)
In Explorer open folder where your project resides. Open packages.config using Notepad. Find and remove the line that mentions corrupted package name.
Open folder where your solution resides. Open subfolder "packages". Find folder with corrupted package and remove it.
Note: If you delete wrong package, just enable NuGet restore in Visual studio "Options", and while enabled, right-click solution and select "Restore missing NuGet packages"
My problem was due to outdated Package Manager. Go to VS menu Tools > Extensions and Updates > Updates
and check if there is no updates for NuGet Package Manager. Installing the latest version solved the problem for me.
PS: Removing package reference as was suggested by Hrvoje Matić, cures the headache not by curing it but by amputating your head - those package will not be manageable anymore.
Open the solution in Visual studio -> Navigate to packages.config file 1/ copy the package attribute of corrupted package that you see in the error console. Remove that corrupted package attribute from package element 2/ save packages.config file and then run nuget command 3/ when successfull, place back the package attribute
I got the same issue recently and I found my nuget.exe is 2.*. I think it's not compatible with nuget feed v3.
So I solve it by simply upgrading nuget.exe to 3.*.
Speaking more generically, in my case it was an issue with NUnit 3.8.1. I downgraded to an earlier version of NUnit and the problem went away. I didn't have time to investigate what the cause was.