Issue downloading files using wget

Hello, I was trying to download a few files using wget, but I am facing issues on my system (Fedora WSL).

Failed to parse URI 'ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR460/002/ERR4605112/ERR4605112_1.fastq.gz'
Nothing to do - goodbye
Failed to parse URI 'ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR460/002/ERR4605112/ERR4605112_2.fastq.gz'
Nothing to do - goodbye

It worked completely fine on my college pc running Ubuntu.

Can you show the exact command you are running? (But you can redact your username and password, of course.)

wget -nc ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR460/002/ERR4605112/ERR4605112_1.fastq.gz
1 Like

This was provided by the website, so i was following it.

Thanks. I think the difference here is that Fedora’s ‘wget’ is wget2 version 2.2.1, which as I understand it doesn’t support FTP (at least, not without going through an HTTP proxy).

On Fedora you could instead use curl. For example this command works for me:

curl -OJ ftp://ftp.sra.ebi.ac.uk/vol1/fastq/ERR460/002/ERR4605112/ERR4605112_1.fastq.gz

Earlier versions of wget did support direct FTP, so your college PC may be running one of those?

2 Likes

Thanks , this worked. As per my knowledge college pc was running Ubuntu 24.04 .

1 Like