M HYPE SPLASH
// news

Can't uninstall 'youtube-dl'. No files were found to uninstall

By Emily Wilson

youtube-dl told me to upgrade, so I tried the command given on their website, but it resulted in some output that sounds like it has not upgraded anything, despite an upgrade being available:

$ sudo pip install -U youtube-dl
Downloading/unpacking youtube-dl from Downloading youtube_dl-2016.02.05.1-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Installing collected packages: youtube-dl Found existing installation: youtube-dl 2016.1.15 Can't uninstall 'youtube-dl'. No files were found to uninstall.
Successfully installed youtube-dl
Cleaning up...

How to fix that and really get the latest version?

3

1 Answer

These commands did the trick:

$ sudo dpkg -r youtube-dl
(Reading database ... 332796 files and directories currently installed.)
Removing youtube-dl (2015.06.04.1-1) ...
Processing triggers for man-db (2.7.4-1) ...
$ sudo rm -rf /usr/local/share/doc/youtube_dl /usr/local/lib/python2.7/dist-packages/youtube_dl* /usr/local/bin/youtube-dl
$ sudo pip install --upgrade youtube-dl
Downloading/unpacking youtube-dl Downloading youtube_dl-2016.02.05.1-py2.py3-none-any.whl (1.2MB): 1.2MB downloaded
Installing collected packages: youtube-dl
Successfully installed youtube-dl

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy