am11/VoidMuslWSL

xbps-install issue

pakerte opened this issue · 5 comments

# date
Thu Oct 13 23:17:52 +07 2022

# ping -c 3 yahoo.com
PING yahoo.com (202.165.97.53) 56(84) bytes of data.
64 bytes from ns5.yahoo.com (202.165.97.53): icmp_seq=1 ttl=55 time=28.2 ms
64 bytes from ns5.yahoo.com (202.165.97.53): icmp_seq=2 ttl=55 time=28.1 ms
64 bytes from ns5.yahoo.com (202.165.97.53): icmp_seq=3 ttl=55 time=27.1 ms

# xbps-install -S
[*] Updating repository https://alpha.de.repo.voidlinux.org/current/musl/x86_64-musl-repodata' ... SSL_connect returned 1 ERROR: [reposync] failed to fetch file https://alpha.de.repo.voidlinux.org/current/musl/x86_64-musl-repodata': Operation not permitted

# xbps-install screen

Name Action Version New version Download size
screen install - 4.8.0_5 557KB

Size to download: 558KB
Size required on disk: 897KB
Space available on disk: 251GB

Do you want to continue? [Y/n]

[*] Downloading packages
SSL_connect returned 1
ERROR: [trans] failed to download screen-4.8.0_5' signature from https://alpha.de.repo.voidlinux.org/current/musl': Operation not permitted
Transaction failed! see above for errors.

Please help.
Thank you

am11 commented

ERROR: [reposync] failed to fetch file

AFAIK, this error can happen when:

  1. date is out of sync
  2. internet is not connected
  3. package repo is down for maintenance (e.g. void-linux/xbps#20)

You can try again or use a different mirror: https://docs.voidlinux.org/xbps/repositories/mirrors/index.html to see if it helps.

Thanks for quick response.

I've changed the mirror:
# xbps-install -S
[*] Updating repository https://void.webconverger.org//current/musl/x86_64-musl-repodata' ... SSL_connect returned 5 ERROR: [reposync] failed to fetch file https://void.webconverger.org//current/musl/x86_64-musl-repodata': Operation not permitted

I tried in windows PS:
C:\> wget.exe https://void.webconverger.org//current/musl/x86_64-musl-repodata
Connecting to void.webconverger.org (210.23.22.2:443)
ssl_client: TLS error from peer (alert code 40): handshake failure
wget: error getting response

Any hint?

am11 commented

Seems like certificates issue. Can you access https://void.webconverger.org//current/musl/x86_64-musl-repodata or https://alpha.de.repo.voidlinux.org/current/musl/x86_64-musl-repodata in the webbrowser?

$ curl -sSLO https://void.webconverger.org//current/musl/x86_64-musl-repodata

is working fine for me.

I can download it via browser:

Mode LastWriteTime Length Name


-a---- 13-Oct-22 22:59 1801585 x86_64-musl-repodata

And there is no curl nor wget on voidmusl wsl

now what?
:-)

am11 commented

If you cannot fetch it from Windows (wget.exe) either, so this sounds like the issue with your system, rather than related to WSL or Void Linux. You can seek help from Q&A sites, e.g. https://stackoverflow.com/a/61470452/863980 explains error 40 which you received from wget.

Also, try bypassing SSL stuff with:

$ SSL_NO_VERIFY_HOSTNAME=1
$ SSL_NO_VERIFY_PEER=1
$ export SSL_NO_VERIFY_HOSTNAME SSL_NO_VERIFY_PEER

# now execute `xbps-install` etc.

there are others environment variables which xbps look for: https://github.com/void-linux/xbps/blob/061f5cb2e95047d20b4147d3f3b41150ce6a325c/lib/fetch/common.c (search for getenv on that page)