Ask Your Question
0

wget refuses to work when trying to install Calibre on Fedora 20

asked 2014-05-19 14:29:22 -0500

DavidM gravatar image

updated 2014-05-19 22:15:15 -0500

mether gravatar image

I am trying to download the Calibre program. It says that it will work with Linux and supplies something to copy and paste in the command line. Here is what happens though.

[dmiller@localhost ~]$ sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()" [sudo] password for dmiller: wget: unable to resolve host address ‘raw.githubusercontent.com’ Download failed

It will not download it and I don't know why. l'm sure it is something easy and dumb but that is me. What can I do to fix this wget?

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
2

answered 2014-05-19 22:16:04 -0500

mether gravatar image

If you want to install Calibre, the simplest way is

    yum install calibre
edit flag offensive delete link more

Comments

yup, mether is right :)

abadrinath gravatar imageabadrinath ( 2014-05-20 01:26:52 -0500 )edit
0

answered 2014-05-20 09:23:02 -0500

kx4kx gravatar image

From the Calibre website.

sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"

This worked for me.

edit flag offensive delete link more
0

answered 2014-05-19 16:53:49 -0500

sideburns gravatar image

Absolutely nothing is wrong with wget; it couldn't resolve the host so it couldn't download the file. There may be something wrong with your DNS or, much more likely, a typo in the command line. (For what it's worth, clicking on the link in your question works, so you may just have missed a typo in copying the set of commands into a terminal.)

However, whoever wrote those instructions was an idiot. Using -O- as an option to wget tells it to write the output to the standard output, meaning that it's not saved to be used later. Also, it's generally considered much better form to list a long series of commands like that one by one, instead of lumped together like that, and I doubt that most of the commands need (or should have) root access, but that's a completely different question.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-05-19 14:29:22 -0500

Seen: 811 times

Last updated: May 20 '14