Report this

What is the reason for this report?

I am trying to install spicetify on ubuntu 23.04 but i run into curl: (28)

Posted on September 23, 2023

I am trying to install spicetify for Ubuntu 23.04 but when I run any of the two commands I run into this error.

curl -fsSL https://raw.githubusercontent.com/spicetify/spicetify-marketplace/main/resources/install.sh | sh

curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 130612 ms: Couldn't connect to server  

Thanks in advance



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

It sounds like that you might have a firewall installed on your Droplet or a Cloud Firewall blocking port 443 for outbound connections.

If this is the case, once you open port 443 for outbound TCP connections then the command should work as normal.

If this is not the case, here are a few troubleshooting steps that I could suggest:

  1. GitHub Connectivity: Try connecting to GitHub directly using ping:

    ping github.com
    

    If you don’t receive replies, there might be an issue with connecting to GitHub from your network.

  2. DNS Resolution: It’s possible there’s an issue with DNS resolution. You can try using a different DNS resolver (like Google’s 8.8.8.8) to see if that resolves the issue. Modify your /etc/resolv.conf file (with caution) to include:

    nameserver 8.8.8.8
    nameserver 8.8.4.4
    
  3. Firewall/Proxy Settings: Check if you’re behind a firewall or proxy that could be blocking your connection to GitHub.

  4. Certificate Issues: Sometimes, there are SSL certificate issues when connecting to sites over https. You can bypass certificate checks (though it’s not generally recommended for security reasons) using:

    curl -fsSLk https://raw.githubusercontent.com/spicetify/spicetify-marketplace/main/resources/install.sh | sh
    
  5. Manual Download: Alternatively, you can manually download the script using a web browser, grant it execute permissions, and then run it:

    wget https://raw.githubusercontent.com/spicetify/spicetify-marketplace/main/resources/install.sh
    chmod +x install.sh
    ./install.sh
    
  6. GitHub Rate Limits: On rare occasions, GitHub might rate-limit connections. If many people are trying to access a particular resource, GitHub might temporarily block additional connections.

  7. Network Debugging: You can try to debug the network connection with tools like traceroute:

    traceroute raw.githubusercontent.com
    

    This will show you the path your connection takes through the network to reach the GitHub server. If the trace stops or hangs at a particular point, that might be where the problem lies.

  8. Alternative Methods: Consider using a different method or source to install spicetify if the curl command consistently fails.

Let me know how it goes!

Best,

Bobby

I’m assuming you’re running this command from a droplet?

Is it behind a firewall that restricts outbound access?

Heya,

This seems like a firewall issue. Do you have a Cloud Firewall blocking port 443 for outbound connections or have you blocked that on the firewall of your Droplet?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.