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 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 on port 443 (https).

You can either fix your network connection/firewall or alternatively download the package from 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 ( 56(84) bytes of data.
64 bytes from ( icmp_seq=1 ttl=43 time=263 ms
64 bytes from ( icmp_seq=2 ttl=43 time=263 ms
64 bytes from ( 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.