Software - Support > Installing Software

how to update software not in repo

(1/2) > >>

Moltke:
I know it's been marked as solved and everything, but I just wanted to add that this /usr/bin/env: ‘python’: No such file or directory message error, doesn't have to do with python not being installed, but youtube-dl still looking for python2, which is deprecated and that's why when you installed the pkg python-is-python2 youtube-dl worked. You can verify with
--- Code: ---cat $(which youtube-dl)
--- End code ---
for python3 you should see

--- Code: --- moltke  ~  cat $(which youtube-dl)
#!/usr/bin/python3

--- End code ---
if you instead see this
--- Code: ---#!/usr/bin/env python
--- End code ---
which you probably will, then youtube-dl is indeed looking for python2. This pkg http://archive.ubuntu.com/ubuntu/ubuntu/pool/universe/y/youtube-dl/youtube-dl_2021.04.07-0ubuntu1_all.deb has that line set properly pointing to python3.

Also, this

--- Code: ---youtube-dl: error: youtube-dl's self-update mechanism is disabled on Debian.
Please update youtube-dl using apt(8).
See https://packages.debian.org/sid/youtube-dl for the latest packaged version.

--- End code ---
Is because of youtube api changes made by google, which they do quite often.   
 

timbuck2:

--- Quote from: Jerry on May 22, 2021, 10:59:10 PM ---You need to reverse what ever method you installed it with in the first place. Then start fresh with this...


--- Code: ---sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
--- End code ---

Then updates are simply..


--- Code: ---sudo youtube-dl --update
--- End code ---

--- End quote ---


Ok, nice...so I uninstalled the version I had and then used the commands you posted to install from yt-dl.org.  Afterwards, I got the error when trying to --update or --version the program.


--- Code: ---/usr/bin/env: ‘python’: No such file or directory
--- End code ---

I was like what?  Isn't python installed by default on every system these days?   :shrug

But I went ahead and tried this:


--- Code: ---sudo apt-get install python
--- End code ---

And it installed "python-is-python2" package and now it works and youtube-dl is up to date.

Jerry:
You need to reverse what ever method you installed it with in the first place. Then start fresh with this...


--- Code: ---sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
--- End code ---

Then updates are simply..


--- Code: ---sudo youtube-dl --update
--- End code ---

timbuck2:
Ok, I give up Jerry, how did you do that?  :shrug

When I run the same command I get:


--- Code: ---youtube-dl: error: youtube-dl's self-update mechanism is disabled on Debian.
Please update youtube-dl using apt(8).
See https://packages.debian.org/sid/youtube-dl for the latest packaged version.

--- End code ---

Jerry:

Navigation

[0] Message Index

[#] Next page

Go to full version