Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It gets stuck installing packages using gnutls-cli (using Windows 8) #2280

Closed
ghost opened this issue Jul 8, 2015 · 21 comments
Closed

It gets stuck installing packages using gnutls-cli (using Windows 8) #2280

ghost opened this issue Jul 8, 2015 · 21 comments

Comments

@ghost
Copy link

ghost commented Jul 8, 2015

Hello,

I'm using Emacs 24.5.1 in Windows 8

Yesterday I upgraded to Spacemacs 0.103.2 but soon something started going wrong.

First Spacemacs failed to install the extensions 'spray' and 'revive'.
I thought it would be easier to install everything from scratch, so I cloned the whole repository from scratch. Unfortunately Spacemacs wasn't able to start up. It got stuck installing all the necessary packages, showing the following message:

Opening TLS connection with 'gnutls-cli --insecure -p 443 elpa.gnu.org' ... done

I tried Emacs 25.0.50.1 and this time it installed 94 packages successfully. But after re-start, it got stuck installing some packages again! Here is a screenshot:

Spacemacs error message

Any ideas what's happening?

Many thanks.

@ncihnegn
Copy link

Same problem here

@ncihnegn
Copy link

After I remove gnutls, it still reports errors for elpa, but continues to work fine with other repos.

@ncihnegn
Copy link

One workaround is to redefine package-archives with HTTP instead of HTTPS for elpa.

@ghost
Copy link
Author

ghost commented Jul 10, 2015

Hello @ncihnegn
I installed Emacs directly from msys2. My Emacs version is:
GNU Emacs 24.5.1 (x86_64-w64-mingw32) of 2015-05-13 on CAB8
What I did to solve the problem was the following:
1- Remove the current gnutls package that was installed

pacman -R msys/gnutls

Install gnutls from mingw32 (I tried installing it from mingw64 didn't work)

pacman -S mingw32/mingw-w64-i686-gnutls 3.4.2-1' installed

So this is the output when I type

pacman -Ss gnutls

gnutls

I hope this helped to you too.

@ncihnegn
Copy link

Interesing. I tried to install i686-gnutls but it didn't help.

@ncihnegn
Copy link

Alright. It works now after I change PATH=/mingw64/bin:$PATH to PATH=$PATH:/mingw64/bin. It will be nice if we figure out why.

@justbur
Copy link
Contributor

justbur commented Jul 11, 2015

It means you have another gnutls-cli program in your path somewhere I
believe
On Sat, Jul 11, 2015 at 2:34 PM ncihnegn notifications@github.com wrote:

Alright. It works now after I change PATH=/mingw64/bin:$PATH to
PATH=$PATH:/mingw64/bin. It will be nice if we figure out why.


Reply to this email directly or view it on GitHub
#2280 (comment)
.

@ncihnegn
Copy link

In that case, msys/gnutls works for me but mingw64/gnutls didn't.

@StreakyCobra
Copy link
Contributor

Anyone still experiencing this issue?

@casimir
Copy link

casimir commented Nov 25, 2015

Tried the different solutions but still experiencing it @StreakyCobra.

@StreakyCobra
Copy link
Contributor

What I don't really get is why it needs TLS as all repositories are using http and not https (https://github.com/syl20bnr/spacemacs/blob/master/core/core-configuration-layer.el#L27-L29). Do you have the last spacemacs version (0.104.5)? If yes, can you give the output of SPC h d s?

@casimir
Copy link

casimir commented Nov 25, 2015

Didn't notice it was the Spacemacs repo, I end up here by searching bugs with gnutls from msys2. I use the emacs version from msys2 too. It looks like this is more a mingw64/gnutls bug. For me, when refreshing/installing package gnutls-cli goes crazy and I have to kill it.

Anyway if you don't use the https version you shouldn't have this problem anymore. Sorry for the noise.

@StreakyCobra
Copy link
Contributor

No problem :-) @RafaelGP @ncihnegn Do you still have this problem with last spacemacs release?

@ghost
Copy link
Author

ghost commented Nov 25, 2015

I moved to work with Emacs inside a Virtual Box, so sorry I don't know if this issue is still happening.

@StreakyCobra
Copy link
Contributor

Ok, thanks for your comment :-) @ncihnegn on your side?

@ncihnegn
Copy link

No issues here. I don't even have gnutls-cli at all.

@StreakyCobra
Copy link
Contributor

Ok thanks for your answer.

As nobody has currently this problem, we can not help any further. I'm then closing this issue. Anyway, feel free to open a new one in case of troubles. Please include a link to this one if you thinks it's related ☺️

@mihaelS
Copy link

mihaelS commented Feb 1, 2018

@StreakyCobra, reopen the issue, please.

Same error.

Windows 10
emacs 26.0.91 x86_64
spacemacs 0.200.13

  • Get this error (without gnutls):
    'gnutls-cli --insecure -p 443 elpa.gnu.org' ... done

  • With installed gnutls (added libgnutls-30.dll to the /bin/ folder), get this message:
    image

    • and same error, when trying to translate with google-ui
      image

    • And then emacs hangs up and I have to kill the emacs process.

Seems that there is some kind of problem with the gnutls on Windows.

Can anyone help to fix it?

@StreakyCobra
Copy link
Contributor

StreakyCobra commented Feb 1, 2018

@mihaelS I'm not a spacemacs collaborator anymore, sorry.

@mihaelS
Copy link

mihaelS commented Feb 1, 2018

@syl20bnr, reopen this issue, please.

@ygol
Copy link

ygol commented Apr 26, 2018

having the same problem under windows 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants