LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2021, 02:08 PM   #1
visitor7777
LQ Newbie
 
Registered: Jun 2021
Posts: 2

Rep: Reputation: Disabled
youtube-dl with tails


Hi,

I am a beginner in using linux.
I am using tails with a usb drive.

Setups are by default.
I just have activate Persistence on every data.

I have downloaded and installed youtube-dl with the synaptic package manager.

In the terminal, I can have : youtube-dl --help
It appears fine.

But if I want to download a video and write : youtube-dl URL
I have this message :
ERROR: Unable to download webpage: <urlopen error [Errno 101] Network is unreachable> (caused by URLError(OSError(101, 'Network is unreachable')))

I have tried with several videos, always on youtube.

Does anyone here use youtube-dl with tails ?
 
Old 06-21-2021, 12:37 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by visitor7777 View Post
I have downloaded and installed youtube-dl with the synaptic package manager.
Don't.
That version is hopelessly outdated.
Uninstall it, then download this to your $HOME/bin/ directory.
Try it with
Code:
cd ~/bin; ./youtube-dl URL
note the ./ at the beginning.

If that works, we will adjust your PATH so you can drop the "./".

Subsequently, you can update youtube-dl with the "-U" option. Do it often.

Last edited by ondoho; 06-21-2021 at 12:39 AM.
 
Old 06-21-2021, 12:40 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
Yes, I agree, you need to use the latest (and uptodate) version of youtube-dl.
But anyway, if your network would be really unreachable you need to fix it first.
 
Old 06-21-2021, 05:51 AM   #4
visitor7777
LQ Newbie
 
Registered: Jun 2021
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for your prompt answers !

I am really a beginner, so I am sorry to ask again some basics questions...

Even if I have alreary done some tutorials about line commands, I do not understand enough to see what I did wrong.

I deleted the youtube-dl package in the synaptic package manager.
Then, I downloaded the youtube-dl file with the link you gave me.
The file is now in home/Tor\ Browser/

I tried the command you gave me, and tried some other things. But nothing worked

Here is what I tried :


amnesia@amnesia:~$ cd ~/bin; ./youtube-dl URL
bash: cd: /home/amnesia/bin: No such file or directory
bash: ./youtube-dl: No such file or directory
amnesia@amnesia:~$ cd Tor\ Browser/
amnesia@amnesia:~/Tor Browser$ ./youtube-dl URL
bash: ./youtube-dl: Permission denied
amnesia@amnesia:~/Tor Browser$ sudo ./youtube-dl URL
[sudo] password for amnesia:
sudo: ./youtube-dl: command not found
amnesia@amnesia:~$ ./youtube-dl https://github-releases.githubusercontent.com
bash: ./youtube-dl: No such file or directory
amnesia@amnesia:~/Tor Browser$ ./youtube-dl https://github-releases.githubusercontent.com
bash: ./youtube-dl: Permission denied
amnesia@amnesia:~$ sudo ./youtube-dl https://github-releases.githubusercontent.com
[sudo] password for amnesia:
sudo: ./youtube-dl: command not found
amnesia@amnesia:~/Tor Browser$ sudo apt-get update
[sudo] password for amnesia:
Hit:1 tor+https://cdn-fastly.deb.debian.org/debian buster InRelease
Hit:2 tor+https://cdn-fastly.deb.debian.org/debian-security buster/updates InRelease
Hit:3 tor+https://cdn-fastly.deb.debian.org/debian bullseye InRelease
Hit:4 tor+https://cdn-fastly.deb.debian.org/debian buster-backports InRelease
Hit:5 tor+https://cdn-fastly.deb.debian.org/debian sid InRelease
Hit:6 tor+http://umjqavufhoix3smyq6az2sx4istmu...joo6l2qd.onion 4.19 InRelease
Hit:7 tor+http://sdscoq7snqtznauu.onion/torproject.org buster InRelease
Reading package lists... Done
 
Old 06-21-2021, 06:00 AM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Quote:
Originally Posted by visitor7777 View Post
I am using tails with a usb drive.
...
I have this message :
ERROR: Unable to download webpage: <urlopen error [Errno 101] Network is unreachable> (caused by URLError(OSError(101, 'Network is unreachable')))
The message seems pretty clear: Network in unreachable.

I expect Tails deliberately blocks all standard network traffic, and you need to specifically instruct applications to go through TOR.

With youtube-dl that would presumably be via its documented proxy functionality, and/or via torsocks.

 
  


Reply



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
LXer: How To Cast YouTube Videos From Your Phone To Raspberry Pi Using YouTube On TV (youtube.com/tv) LXer Syndicated Linux News 0 04-16-2021 01:30 AM
Just starting in linux from windows 10. Have a tails USB version I'm running on my PC. Tails won't recognize or start using my A6100 Netgear Rhix59 Linux - Newbie 3 07-08-2019 03:48 AM
Tails Site is 'Port Scanning' Computers that download 'Tails.iso' !!! ??? SethJ Incognito 8 09-03-2016 02:55 AM
LXer: Tails 2.3 Anonymous Live CD Gets Tor Browser 5.5.5, Tails 2.4 Coming June 7 LXer Syndicated Linux News 0 04-27-2016 05:12 AM
LXer: The Tails Project's The Amnesic Incognito Live System (Tails) LXer Syndicated Linux News 0 09-17-2011 01:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:39 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