You are Here:
Download Linux Lite 5.6 RC1 for testing today - See Release Announcements



X Close Ad
X Close Ad
[ SOLVED ] how to update software not in repo

Author (Read 858 times)

0 Members and 3 Guests are viewing this topic.

how to update software not in repo
« on: May 22, 2021, 08:50:37 AM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 66
    Posts
  • Country: us
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.4 64bit

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
So youtube changed their api or something and the youtube-dl version in LL 5.4 (2020.03.24-1) doesn't work anymore.   This version is over a year old and out of date.  There is a new 2021.05.16 which is the current version.

How would I install this new version on my system when it is not in the repo provided by LL?  Do I have to uninstall the repo version and build the current version manually?  Any help would be appreciated.
Last Edit: May 23, 2021, 08:42:36 AM by timbuck2
 


Re: how to update software not in repo
« Reply #1 on: May 22, 2021, 09:59:33 AM »
 

trinidad

  • Platinum Level Poster
  • **********
  • 1287
    Posts
  • Country: us
  • Reputation: 197
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 5.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D

  • Kernel: 5.x
Be advised You-Tube is in a state of flux these days over changes in EU copyright law, and I expect it to continue to be annoying to the free software community. You can use snapd to install the latest version for Ubuntu 20.x. See the link.
https://snapcraft.io/install/youtube-dl/ubuntu
TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: how to update software not in repo
« Reply #2 on: May 22, 2021, 10:07:13 AM »
 

robert2019

  • New to Forums
  • *
  • 1
    Posts
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 4.6 64bit

  • CPU: Dual core AMD C-70 APU with Radeon HD Graphics 1000 MHz

  • MEMORY: 4Gb

  • VIDEO CARD: Advanced Micro Devices [AMD/ATI] Wrestler [Radeon HD 7290]
HI timbuck2,
You might also try

sudo youtube-dl -U
enter your password

To verify it got updated code now:
youtube-dl --version

Hope it helps.
 

Re: how to update software not in repo
« Reply #3 on: May 22, 2021, 04:44:59 PM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 66
    Posts
  • Country: us
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.4 64bit

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
Be advised You-Tube is in a state of flux these days over changes in EU copyright law, and I expect it to continue to be annoying to the free software community. You can use snapd to install the latest version for Ubuntu 20.x. See the link.
https://snapcraft.io/install/youtube-dl/ubuntu
TC

Ok, I will check the link and read about it.  Thanks for the tip.


HI timbuck2,
You might also try

sudo youtube-dl -U
enter your password

To verify it got updated code now:
youtube-dl --version

Hope it helps.

Yes, I had tried that first before I posted here.  I got the following message when I tried:

Code: [Select]
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.
 

Re: how to update software not in repo
« Reply #4 on: May 22, 2021, 07:09:45 PM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 66
    Posts
  • Country: us
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.4 64bit

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
Ok, I installed snapd (it is not installed by default on LL 5.4) and ran the command to install youtube-dl with it (after completely removing the older one in synaptics I had installed previously).

Code: [Select]
sudo snap install youtube-dl
This resulted in version 2021.01.16 being installed which is newer than the one in synaptics, but not the newest 2021.05.16.

"youtube-dl -U" still won't update it and replies:

Code: [Select]
It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update.
Do I need to download and compile the newest version manually?
Last Edit: May 22, 2021, 07:12:10 PM by timbuck2
 

Re: how to update software not in repo
« Reply #5 on: May 22, 2021, 09:04:27 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8081
    Posts
  • Country: nz
  • Reputation: 753
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.4 64bit

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
 

Re: how to update software not in repo
« Reply #6 on: May 22, 2021, 10:25:18 PM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 66
    Posts
  • Country: us
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.4 64bit

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

  • Kernel: 5.x
Ok, I give up Jerry, how did you do that?  :shrug

When I run the same command I get:

Code: [Select]
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.

 

Re: how to update software not in repo
« Reply #7 on: May 22, 2021, 10:59:10 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8081
    Posts
  • Country: nz
  • Reputation: 753
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.4 64bit

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

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

Code: [Select]
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

Then updates are simply..

Code: [Select]
sudo youtube-dl --update
 

Re: how to update software not in repo
« Reply #8 on: May 23, 2021, 08:41:44 AM »
 

timbuck2

  • Patreon Supporter
  • Occasional Poster
  • *****
  • 66
    Posts
  • Country: us
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.4 64bit

  • CPU: AMD64

  • MEMORY: 8Gb

  • VIDEO CARD: NVIDIA GTX1070

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

Code: [Select]
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

Then updates are simply..

Code: [Select]
sudo youtube-dl --update


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: [Select]
/usr/bin/env: ‘python’: No such file or directory
I was like what?  Isn't python installed by default on every system these days?   :shrug

But I went ahead and tried this:

Code: [Select]
sudo apt-get install python
And it installed "python-is-python2" package and now it works and youtube-dl is up to date.
 

Re: how to update software not in repo
« Reply #9 on: May 23, 2021, 09:33:22 AM »
 

Moltke

  • Gold Level Poster
  • *******
  • 991
    Posts
  • Country: ve
  • Reputation: 112
  • Linux Lite Member

  • Linux Lite: 5.0 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
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: [Select]
cat $(which youtube-dl) for python3 you should see
Code: [Select]
 moltke  ~  cat $(which youtube-dl)
#!/usr/bin/python3
if you instead see this
Code: [Select]
#!/usr/bin/env python 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: [Select]
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.
Is because of youtube api changes made by google, which they do quite often.   
 
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 RC1 for testing today - See Release Announcements