Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

dnvm upgrade: Could not find latest version from feed #238

Closed
sgentile opened this issue Apr 30, 2015 · 31 comments
Closed

dnvm upgrade: Could not find latest version from feed #238

sgentile opened this issue Apr 30, 2015 · 31 comments

Comments

@sgentile
Copy link

running dnvm upgrade (and dnvm upgrade -u) gives this error:

Determining latest version
Error: Could not find latest version from feed https://nuget.org/api/v2

@davidfowl
Copy link
Member

Can you show the command and the error in both cases? AFAIK only stable was broken and it is now fixed #235

@MartinKei
Copy link

I got the same issue:

>:~/.config/NuGet$ dnvm upgrade
Determining latest version
Error: Could not find latest version from feed https://www.nuget.org/api/v2
>:~/.config/NuGet$ export DNX_FEED=https://www.nuget.org/api/v2
>:~/.config/NuGet$ dnvm upgrade
Default stable feed (https://www.nuget.org/api/v2) is being overridden by the value of the DNX_FEED variable (https://www.nuget.org/api/v2). 
Determining latest version
Error: Could not find latest version from feed https://www.nuget.org/api/v2
>:~/.config/NuGet$ dnvm upgrade
Default stable feed (https://www.nuget.org/api/v2) is being overridden by the value of the DNX_FEED variable (https://www.nuget.org/api/v2). 
Determining latest version
Error: Could not find latest version from feed https://www.nuget.org/api/v2
>:~/.config/NuGet$ 

As you see I tried to fix the problem with overwriting the DNX_FEED variable with the target of the redirect: https://www.nuget.org/api/v2

But as you can see in your browser this is a dead end.

@davidfowl
Copy link
Member

You got unlucky, nuget.org is currently down.

@sgentile
Copy link
Author

Tried again this morning (tried yesterday and last night - same errors)
OSX
Mono 4.0.1
dnvm 1.0.0-beta5-10371

same errors

Then did this per that link:
export DNX_FEED=https://www.nuget.org/api/v2
dnvm upgrade
Default stable feed (https://nuget.org/api/v2) is being overridden by the value of the DNX_FEED variable (https://www.nuget.org/api/v2).
Determining latest version
Error: Could not find latest version from feed https://www.nuget.org/api/v2

also running dnvm upgrade -u
Determining latest version
Error: Could not find latest version from feed https://www.myget.org/F/aspnetvnext/api/v2

@sgentile
Copy link
Author

More information:

dnvm list

Active Version Runtime Arch Location Alias


  • 1.0.0-beta4 mono ~/.dnx/runtimes default

$ dnvm install latest
Default stable feed (https://www.nuget.org/api/v2) is being overridden by the value of the DNX_FEED variable (https://www.nuget.org/api/v2).
Determining latest version
Error: Could not find latest version from feed https://www.nuget.org/api/v2

$ dnvm update-self
~/.dnx/dnvm/dnvm.sh doesn't exist. This command assumes you have installed dnvm in the usual location and are trying to update it. If you want to use update-self then dnvm.sh should be sourced from ~/.dnx/dnvm

@cnblogs-dudu
Copy link

try dnvm upgrade -u

@flaugh
Copy link

flaugh commented May 10, 2015

@cnblogs-dudu
It works. Thanks.

@ardacetinkaya
Copy link

This is not valid for coreclr

dnvm upgrade -r coreclr
Determining latest version
Error: Could not find latest version from feed https://www.nuget.org/api/v2

Any idea to get stable beta version of coreclr?

@BrennanConroy
Copy link
Member

First of all dnu restore is not the correct command at all. Second -u is unstable feed, not stable

@nbellowe
Copy link

This is also happening for me:
I'm on OSX.

$ dnvm upgrade Default stable feed (https://www.nuget.org/api/v2) is being overridden by the value of the DNX_FEED variable (https://www.nuget.org/api/v2). Determining latest version Error: Could not find latest version from feed https://www.nuget.org/api/v2

The unstable link doesn't work either. I've tried +15 times in the last month and a half, and it hasn't worked, it is definitely not the servers always being down.

@davidfowl
Copy link
Member

@nbellowe Try running dnvm update-self there was a bug a while ago that was fixed to to with not following redirects.

@nbellowe
Copy link

Well, following the instructions tells me to use brew tap, brew install. However this installs it in a different location then dnvm self-update would (and an old copy). I did however copy from the brew installed location to ~/.dnx/dnvm/dnvm.sh. Then I ran dnvm self-update, which downloaded it from github, over my copied file. Then I copied that file back over the one brew installed (hacky).This however still leads to the same error.

I also brew uninstalled and then just kept the other file which I sourced manually. No change...

How are we supposed to install this on OSX.

@cheers00
Copy link

I am on Ubuntu and I am getting the same error message for all dnvm commands. I am behind proxy but I don't have any problem to download or update other items. I am stuck here.

root@ubuntu:~/.config/NuGet# dnvm install latest -r coreclr
Determining latest version
Error: Could not find latest version from feed https://www.nuget.org/api/v2

@veturi
Copy link

veturi commented May 22, 2015

I'm on a Macbook with Yosemite and am getting the same error message when attempting to upgrade to coreclr only.

Bobsled$ dnvm upgrade -r coreclr
Determining latest version
Error: Could not find latest version from feed https://www.nuget.org/api/v2

@nbellowe
Copy link

Still happening for me as well. Anybody?

I also added
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2" /> <add key="NuGet.org" value="https://nuget.org/api/v2/" />

to my config file.

@nbellowe
Copy link

The command dnvm install 1.0.0-beta4 works for me.

@henkmollema
Copy link

Experiencing this problem too when trying to get the build.sh script working with beta5 from NuGet (in conjunction with KoreBuild).

if ! type dnx > /dev/null 2>&1; then
    DNX_FEED=https://nuget.org/api/v2
    dnvm update-self
    dnvm upgrade

results in:

MacBook-Pro:test henkmollema$ sh build.sh
Downloading dnvm.sh from https://raw.githubusercontent.com/aspnet/Home/dev/dnvm.sh 
######################################################################## 100,0%
Default stable feed (https://www.nuget.org/api/v2) is being overridden by the value of the DNX_FEED variable (https://nuget.org/api/v2). 
Determining latest version
Error: Could not find latest version from feed https://nuget.org/api/v2

while dnvm install 1.0.0-beta5 results in:

Downloading dnx-mono.1.0.0-beta5 from https://nuget.org/api/v2
Download: https://nuget.org/api/v2/package/dnx-mono/1.0.0-beta5
######################################################################## 100,0%
\e[0;31mHTTP Error 301 fetching dnx-mono.1.0.0-beta5 from https://nuget.org/api/v2 \e[0m
info: Build

This only happens when executing sh build.sh (both Terminal and Travis CI), not when using dnvm directly in the Terminal.
dnvm v1.0.0-beta6-10395.

@davidfowl
Copy link
Member

Try updating your dnvm version using dnvm update-self

@henkmollema
Copy link

@davidfowl I included the dnvm update-self in build.sh. It's on v1.0.0-beta6-10395.

@davidfowl
Copy link
Member

Remove the setting of DNX_FEED

@henkmollema
Copy link

Wow, it works after removing the DNX_FEED override indeed.

@henkmollema
Copy link

Looks like the default stable feed of the dnvm in KoreBuild changed to NuGet in stead of MyGet/aspnetvnext?

@davidfowl
Copy link
Member

KoreBuild is optimized for building our own repositories. If you need to set the feed then include the www that's why it was failing in the first place.

DNX_FEED=https://www.nuget.org/api/v2

@henkmollema
Copy link

Makes sense, thanks!

@cheers00
Copy link

cheers00 commented Jul 6, 2015

Hi, I am still getting the same error message on Ubunti. for dnvm install latest, dnvm upgrade or any other dnvm commands to install runtime.

I did update dnvm dnvm upgrade-self

Error: Could not find latest version from feed https://www.nuget.org/api/v2

@davidfowl
Copy link
Member

@cheers00 Are you behind a proxy or anything?

@cheers00
Copy link

cheers00 commented Jul 6, 2015

@davidfowl yes. But other commands work. I can browse internet.

@davidfowl
Copy link
Member

Which other commands work?

@cheers00
Copy link

cheers00 commented Jul 6, 2015

like installing mono, toolchain Setup, sudo apt-get update etc.

@BenPhegan
Copy link

We have an interesting proxy/security environment that includes MITM/Bluecoat etc. The fix for the above problem for us was removing HTTPS. Seems that curl will not negotiate HTTPS with the NuGet server. As below:

pheganb$ dnvm install latest
Determining latest version
Error: Could not find latest version from feed https://www.nuget.org/api/v2

pheganb$ _DNVM_DEFAULT_FEED="http://www.nuget.org/api/v2" dnvm install latest
Determining latest version
Latest version is 1.0.0-beta5 
dnx-mono.1.0.0-beta5 already installed. 
Adding /Users/pheganb/.dnx/runtimes/dnx-mono.1.0.0-beta5/bin to process PATH

@glennc
Copy link
Member

glennc commented Sep 3, 2015

The problem with this message is that several things can cause it. Any networking issue really, and there were several bugs that caused it as we went. I am closing this now. If you are still having an issue like this and want some help then create a new issue with details about what you are seeing.

For when you are behind a proxy we are just using curl without any special code to make the proxy work, so you need to do what is needed to make curl work with your environment.

@glennc glennc closed this as completed Sep 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests