Error about download package from github

I'm using devtools install monocle3 from github, but it didn't work

> devtools::install_github("aertslab/SCENIC")
Using github PAT from envvar GITHUB_TOKEN
Error: Failed to install 'unknown package' from GitHub:
 Failed to connect to api.github.com port 443: No route to host

do you guys know how to fix this problem?

Your issue seems to be that you have issues with network connections (maybe you are behind a network firewall) that prevent you to reach api.github.com on port 443 (https).

You can either fix your network connection/firewall or alternatively download the package from https://github.com/aertslab/SCENIC/releases/download/v1.1.2/SCENIC_1.1.2.tar.gz on a different server and copy it to your RStudio Server. There is a risk that this package depends on other R packages though. As a consequence the installation of those dependencies could fail for similar reasons than the devtools::install_github().

this is my system info

Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.4 LTS
Release:	20.04
Codename:	focal
1 Like

Thank you for you reply!
I check my firewall status and it is off

sudo ufw status
Status: inactive

I can open github on my browser,and I try to ping github ,it works:

ping githu.com

PING github.com (140.82.112.3) 56(84) bytes of data.
64 bytes from github.com (140.82.112.3): icmp_seq=1 ttl=43 time=263 ms
64 bytes from github.com (140.82.112.3): icmp_seq=2 ttl=43 time=263 ms
64 bytes from github.com (140.82.112.3): icmp_seq=3 ttl=43 time=264 ms

I really don't know what to do,can anyone help me ?

1 Like

I have solved this problem!
I add github ip in /etc/hosts and it works

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.