Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube-dl is not compatible with last mint 20.04 and probably ubuntu 20.04 #26126

Closed
jb68 opened this issue Jul 27, 2020 · 3 comments
Closed

Youtube-dl is not compatible with last mint 20.04 and probably ubuntu 20.04 #26126

jb68 opened this issue Jul 27, 2020 · 3 comments
Labels

Comments

@jb68
Copy link

@jb68 jb68 commented Jul 27, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.06.16.1
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

PASTE VERBOSE LOG HERE

Description

I upgraded my computer and it seems that it completly remove /usr/bin/python.
I downloaded the last version and run the installer but didn't fix it. I ended up editing the executable and changing the shbang to /usr/bin/python3 and now it is working :)

@jb68 jb68 changed the title Youtube-dl is not compatible with last mint 20.04 and probably ubuntu. Youtube-dl is not compatible with last mint 20.04 and probably ubuntu 20.04 Jul 27, 2020
@remitamine remitamine closed this Jul 27, 2020
@remitamine remitamine added the invalid label Jul 27, 2020
@jb68
Copy link
Author

@jb68 jb68 commented Jul 28, 2020

I understand this is a free project but why this is invalid?
Ubuntu does not have /usr/bin/python and your code has so it is a bug.
/usr/bin/env python /usr/bin/env: ‘python’: No such file or directory

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jul 28, 2020

youtube-dl support both python 2 and python 3, so /usr/bin/python3 should not be hardcoded, instead, you can provide the /usr/bin/python file in you're distribution(symlink) or install python 2(it will provide the /usr/bin/python file).

@axzxc1236
Copy link

@axzxc1236 axzxc1236 commented Jul 29, 2020

Note that Ubuntu (20.04 and after) doesn't have python command until you install either "python-is-python2" or "python-is-python3"
(source: https://wiki.ubuntu.com/FocalFossa/ReleaseNotes#Python3_by_default, and /usr/bin/python is not present by default on any new installs)

The command to fix this is
sudo apt install python-is-python3
(or change python3 to python2 if you prefer Python 2 more)

I encountered the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.