LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-17-2018, 06:51 AM   #1
orestisfra
LQ Newbie
 
Registered: Jan 2017
Distribution: linux mint 17.3 KDE edition
Posts: 10

Rep: Reputation: Disabled
youtube-dl <urlopen error [Errno -2] Name or service not known>


Hello forum! I have some issues with youtube-dl recently. I get this error when I try to download a video:

Code:
ERROR: Unable to download webpage: <urlopen error [Errno -2] Name or service not known> (caused by URLError(gaierror(-2, 'Name or service not known'),))
youtube-dl version is up-to-date (2018.02.11)

The verbose output is this: https://pastebin.com/vXpKW42u

I found a similar python error here: https://stackoverflow.com/questions/...vice-not-known

But I don't know how to fix this. I found nothing on the internet about this error and youtube-dl.

My operating system is linux mint 17.3 as seen in the pastebin link.

Thank you in advance and tell me if you need to know anything else.

EDIT: This error is inconsistent! It appears in some videos not all of them! So it has to do with youtube. The question is do we know what is blocking youtube-dl but not other programs?

Last edited by orestisfra; 02-17-2018 at 07:01 AM.
 
Old 02-17-2018, 08:06 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Can we start with some basics. From your paste.

Does this crash?
Code:
youtube-dl -F https://www.youtube.com/watch?v=ygdVEIrVnIk
Code:
youtube-dl -f 140 https://www.youtube.com/watch?v=ygdVEIrVnIk -o file.m4a
Code:
ffmpeg -i file.m4a -vn -c:a libmp3lame -b:a 128k out.mp3
Looks like maybe you are trying to download and convert at the same time.
 
Old 02-17-2018, 08:35 AM   #3
orestisfra
LQ Newbie
 
Registered: Jan 2017
Distribution: linux mint 17.3 KDE edition
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
Does this crash?
Code:
youtube-dl -F https://www.youtube.com/watch?v=ygdVEIrVnIk
Code:
youtube-dl -f 140 https://www.youtube.com/watch?v=ygdVEIrVnIk -o file.m4a
Code:
ffmpeg -i file.m4a -vn -c:a libmp3lame -b:a 128k out.mp3
Looks like maybe you are trying to download and convert at the same time.
no this does not crash and yes I was trying to download and convert with this command:
Code:
youtube-dl --extract-audio --prefer-ffmpeg --audio-format mp3 <link>
but I also get this error when I use a plain
Code:
youtube-dl <link>
and both commands work for some videos and some other they don't. So I am trying to figure out why is this happening.
 
Old 02-18-2018, 07:12 AM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Make sure that you are using the latest version of youtube-dl, and that you have python up to date. I've had that happen to me. UT changes all the time and the devs for ut-dl keep up with it.
 
  


Reply

Tags
error2, youtube-dl



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bit torrent client ubuntu netbook edition urlopen error [Errno 111] sgtpepper942 Linux - Newbie 6 06-15-2011 09:24 AM
error timeout: <urlopen error timed out> when using yum on centos5.2 dadidudedo Linux - General 9 05-01-2009 04:21 AM
[Errno 12] Timeout: <urlopen error timed out> ramjen2k7 Linux - Newbie 3 02-01-2009 09:35 PM
yum 'urlopen error (-2, 'Name or service not known')' gozza11 Linux - Networking 1 05-16-2006 01:26 PM
xinetd error message on Suse 9.1: service xxx, accept: Invalid argument (errno = 22) alteraffe Linux - Networking 1 02-15-2006 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration