I installed YouTube-dl through Ubuntu Software Center, but now mine isn't working. So I can not able to Update and Install youtube-dl. I tried this:
$ sudo add-apt-repository ppa:nilarimogard/webupd8
$ sudo apt-get update
$ sudo apt-get install youtube-dl
then following errors occurs......
$ youtube-dl --version
2014.02.17
$ sudo add-apt-repository ppa:nilarimogard/webupd8
[sudo] password for madhavnikam:
The main Web Upd8 PPA maintained by: http://www.webupd8.org/
To add this PPA, simply paste this in a terminal:
sudo add-apt-repository ppa:nilarimogard/webupd8
Packages in this PPA: audacious, ap-hotspot, awn-applet-radio, awn-applet-wm, calise, cmus, dockbarx, dockbarx-themes-extra, dropbox-share, emerald, exaile, fbmessenger, gnome-subtitles, gnome-window-applets, grsync, grive, gthumb, launchpad-getkeys, mc, mdm (Mint Display Manager), minitunes, minitube, musique, notifyosdconfig, nautilus-columns, powertop, ppa-purge, rosa-media-player, fixed pulseaudio-equalizer, subtitleeditor, syncwall, umplayer, unity-reboot, wimlib, youtube-dl, xfce4-dockbarx-plugin, xournal, yad and others. Almost all packages are updated to their latest version.
For other (specialized) PPAs we maintain, see: https://launchpad.net/~webupd8team
More info: https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpl8q4d9le/secring.gpg' created
gpg: keyring `/tmp/tmpl8q4d9le/pubring.gpg' created
gpg: requesting key 4C9D234C from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpl8q4d9le/trustdb.gpg: trustdb created
gpg: key 4C9D234C: public key "Launchpad webupd8" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
$ sudo apt-get update
Ign http://in.archive.ubuntu.com trusty InRelease
[...]
Ign http://in.archive.ubuntu.com trusty/universe Translation-en_IN
Fetched 1,784 kB in 1min 29s (20.0 kB/s)
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
$ sudo apt-get install youtube-dl
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en
E: The package lists or status file could not be parsed or opened.
$ youtube-dl -U
It looks like you installed youtube-dl with a package manager, pip, setup.py or a tarball. Please use that to update.
How can I uninstall and install Youtube-dl by using terminal only?
Try
pip
command to upgradeyoutube-dl
If you get this message:
Then first install
pip
:I solve the problem by using these commands:
sudo apt-get remove youtube-dl
After that:
sudo apt-get install youtube-dl
Downloading play-list...
Done.
It would be easier to use --reinstall
then use it:
Why you don't use the recommended official way to install youtube-dl? Very useful since very often you will need to update it (
sudo youtube-dl -U
) to bleeding edge stable version to keep it working:And here you'll find a bash script I made for batch downloading getting track names from a text file.