pop-os / beta

Pop!_OS Beta
358 stars 19 forks source link

Raspberry PI 4 - Cannot run "youtube-dl" in command line. #241

Closed curyjorge98 closed 2 years ago

curyjorge98 commented 2 years ago

How did you upgrade to 21.10? (Fresh install / Upgrade) Fresh Install 21.10 Beta .img Running from usb ssd.

Issue/Bug Description: After installing youtube-dl:

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

cannot run youtube-dl - it says python is not installed.

$ youtube-dl /usr/bin/env: “python”: file or directory not found

If I try to install python, apt says that essential packages will be removed from system:

pop-default-settings python3-repolib and ubuntu-minimal

You are going to do some potentially catastrophic.

NOTE: I can run it on all releases of Ubuntu.

Steps to reproduce (if you know):

see above.

Expected behavior:

Other Notes:

bflanagin commented 2 years ago

I'm getting the same error on 21.04. It looks like python3 (installed by default on 21.04 and up) doesn't create a symlink that point /usr/bin/python to /usr/bin/python3

Workaround: sudo apt install python-is-python3

That gets youtube-dl to work on both the pi and standard pop_os.

curyjorge98 commented 2 years ago

BINGO...

It is now working.

Thank you Ben.

Em seg., 18 de out. de 2021 às 12:39, Ben Flanagin @.***> escreveu:

I'm getting the same error on 21.04. It looks like python3 (installed by default on 21.04 and up) doesn't create a symlink that point /usr/bin/python to /usr/bin/python3

Workaround: sudo ln -s /usr/bin/python3 /usr/bin/python

That gets youtube-dl to work on both the pi and standard pop_os.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pop-os/beta/issues/241#issuecomment-945904967, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASKF2QYJ6HOEPARQ2IS7WYDUHQ5UPANCNFSM5GFZ73HQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.