如何使用终端卸载youtube-dl
我是通过Ubuntu软件中心安装Youtebe-dl,但现在我的ubuntu软件中心无法运行。 所以我无法更新和安装youtube-dl。 我尝试按照以下程序进行安装: –
$ sudo add-apt-repository ppa:nilarimogard / webupd8 $ sudo apt-get update $ sudo apt-get install youtube-dl
然后发生以下错误……
madhavnikam @ madhavnikam-Aspire-E5-511:〜$ youtube-dl --version 2014年2月17日 madhavnikam @ madhavnikam-Aspire-E5-511:〜$ sudo add-apt-repository ppa:nilarimogard / webupd8 madhavnikam的[sudo]密码: 一个 抱歉,请再试一次。 madhavnikam的[sudo]密码: 抱歉,请再试一次。 madhavnikam的[sudo]密码: 主要的Web Upd8 PPA维护:http://www.webupd8.org/ 要添加此PPA,只需将其粘贴到终端中: sudo add-apt-repository ppa:nilarimogard / webupd8 此PPA中的软件包:大胆的,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等。 几乎所有软件包都更新到最新版本。 对于我们维护的其他(专业)PPA,请参阅:https://launchpad.net/~webupd8team 更多信息:https://launchpad.net/~nilarimogard/+archive/ubuntu/webupd8 按[ENTER]继续或按ctrl-c取消添加 gpg:keyring` / tmp / tmpl8q4d9le / secring.gpg'已创建 gpg:密钥环`/tmp/tmpl8q4d9le/pubring.gpg'已创建 gpg:从hkp服务器keyserver.ubuntu.com请求密钥4C9D234C gpg:/tmp/tmpl8q4d9le/trustdb.gpg:trustdb created gpg:key 4C9D234C:导入公钥“Launchpad webupd8” gpg:处理总数:1 gpg:import:1(RSA:1) 好 madhavnikam @ madhavnikam-Aspire-E5-511:〜$ sudo apt-get update Ign http://in.archive.ubuntu.com可靠的InRelease 点击http://deb.opera.com稳定InRelease Ign http://in.archive.ubuntu.com trusty-updates InRelease 点击http://deb.opera.com稳定/非免费的i386软件包 Ign http://in.archive.ubuntu.com trusty-backports InRelease 点击http://in.archive.ubuntu.com可信赖的Release.gpg 获取:1 http://in.archive.ubuntu.com trusty-updates Release.gpg [933 B] 点击http://in.archive.ubuntu.com trusty-backports Release.gpg Ign http://dl.google.com stable InRelease Ign http://security.ubuntu.com trusty-security InRelease 点击http://ppa.launchpad.net信任InRelease 点击http://in.archive.ubuntu.com可靠的发布 Ign http://extras.ubuntu.com可信赖InRelease 点击http://dl.google.com稳定的Release.gpg 获取:2 http://security.ubuntu.com trusty-security Release.gpg [933 B] Ign http://dl.maxthon.com稳定InRelease 获取:3 http://in.archive.ubuntu.com trusty-updates发布[63.5 kB] 点击http://ppa.launchpad.net信任InRelease 点击http://extras.ubuntu.com可信赖的Release.gpg 点击http://dl.google.com稳定版 获取:4 http://security.ubuntu.com trusty-security发布[63.5 kB] 点击http://dl.maxthon.com稳定的Release.gpg 点击http://ppa.launchpad.net trusty Release.gpg 点击http://extras.ubuntu.com可靠发布 点击http://dl.google.com stable / main i386包 点击http://dl.maxthon.com稳定发布 点击http://ppa.launchpad.net trusty Release.gpg 点击http://extras.ubuntu.com可信赖/主要来源 点击http://in.archive.ubuntu.com trusty-backports发布 点击http://ppa.launchpad.net trusty发布 点击http://dl.maxthon.com stable / maxthon i386包 获取:5 http://security.ubuntu.com trusty-security / main来源[83.6 kB] 点击http://deb.opera.com稳定/非免费翻译-en_IN 点击http://extras.ubuntu.com可信/主i386套餐 点击http://in.archive.ubuntu.com可信赖/主要来源 点击http://ppa.launchpad.net trusty发布 点击http://deb.opera.com稳定/非免费翻译 点击http://in.archive.ubuntu.com可靠/受限制的来源 点击http://ppa.launchpad.net trusty / main i386包 点击http://in.archive.ubuntu.com trusty / universe来源 点击http://ppa.launchpad.net trusty / main翻译 点击http://in.archive.ubuntu.com trusty / multiverse来源 获取:6 http://security.ubuntu.com trusty-security / restricted来源[2,061 B] 点击http://ppa.launchpad.net trusty / main i386包 点击http://in.archive.ubuntu.com可信赖/主要i386包 获取:7 http://security.ubuntu.com trusty-security / universe来源[25.2 kB] 点击http://ppa.launchpad.net trusty / main翻译 点击http://in.archive.ubuntu.com可靠/受限制的i386软件包 获取:8 http://security.ubuntu.com trusty-security / multiverse来源[2,333 B] 点击http://in.archive.ubuntu.com可信/宇宙i386软件包 Ign http://dl.google.com stable / main Translation-en_IN 获取:9 http://security.ubuntu.com trusty-security / main i386包[269 kB] 点击http://in.archive.ubuntu.com trusty / multiverse i386软件包 Ign http://dl.google.com stable / main Translation-en 点击http://in.archive.ubuntu.com trusty / main Translation-en Ign http://extras.ubuntu.com trusty / main Translation-en_IN Ign http://dl.maxthon.com stable / maxthon Translation-en_IN 点击http://in.archive.ubuntu.com trusty / multiverse Translation-en Ign http://extras.ubuntu.com trusty / main Translation-en Ign http://dl.maxthon.com stable / maxthon Translation-en 点击http://in.archive.ubuntu.com可信/限制翻译 点击http://in.archive.ubuntu.com trusty / universe Translation-en 获取:10 http://in.archive.ubuntu.com trusty-updates / main来源[206 kB] 获取:11 http://security.ubuntu.com trusty-security / restricted i386 Packages [8,846 B] 获取:12 http://security.ubuntu.com trusty-security / universe i386软件包[107 kB] 获取:13 http://security.ubuntu.com trusty-security / multiverse i386套餐[3,840 B] 点击http://security.ubuntu.com trusty-security / main Translation-en 获取:14 http://in.archive.ubuntu.com trusty-updates / restricted来源[3,433 B] 点击http://security.ubuntu.com trusty-security / multiverse Translation-en 获取:15 http://in.archive.ubuntu.com trusty-updates / universe来源[118 kB] 点击http://security.ubuntu.com trusty-security / restricted Translation-en 点击http://security.ubuntu.com trusty-security / universe Translation-en 获取:16 http://in.archive.ubuntu.com trusty-updates / multiverse来源[5,152 B] 获取:17 http://in.archive.ubuntu.com trusty-updates / main i386包[513 kB] 获取:18 http://in.archive.ubuntu.com trusty-updates / restricted i386软件包[11.8 kB] 获取:19 http://in.archive.ubuntu.com trusty-updates / universe i386包[283 kB] 获取:20 http://in.archive.ubuntu.com trusty-updates / multiverse i386软件包[12.1 kB] 点击http://in.archive.ubuntu.com trusty-updates / main Translation-en 点击http://in.archive.ubuntu.com trusty-updates / multiverse Translation-en 点击http://in.archive.ubuntu.com trusty-updates / restricted Translation-en 点击http://in.archive.ubuntu.com trusty-updates / universe Translation-en 点击http://in.archive.ubuntu.com trusty-backports / main Sources 点击http://in.archive.ubuntu.com trusty-backports / restricted Sources 点击http://in.archive.ubuntu.com trusty-backports / universe来源 点击http://in.archive.ubuntu.com trusty-backports / multiverse来源 点击http://in.archive.ubuntu.com trusty-backports / main i386包 点击http://in.archive.ubuntu.com trusty-backports / restricted i386 Packages 点击http://in.archive.ubuntu.com trusty-backports / universe i386包 点击http://in.archive.ubuntu.com trusty-backports / multiverse i386软件包 点击http://in.archive.ubuntu.com trusty-backports / main Translation-en 点击http://in.archive.ubuntu.com trusty-backports / multiverse Translation-en 点击http://in.archive.ubuntu.com trusty-backports / restricted Translation-en 点击http://in.archive.ubuntu.com trusty-backports / universe Translation-en Ign http://in.archive.ubuntu.com trusty / main Translation-en_IN Ign http://in.archive.ubuntu.com trusty / multiverse Translation-en_IN Ign http://in.archive.ubuntu.com trusty / restricted Translation-en_IN Ign http://in.archive.ubuntu.com trusty / universe Translation-en_IN 在1分29秒(20.0 kB / s)内获取1,784 kB 阅读包列表......错误! E:遇到没有Package:标题的部分 E:MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en的问题 E:无法解析或打开包列表或状态文件。 madhavnikam @ madhavnikam-Aspire-E5-511:〜$ sudo apt-get install youtube-dl 阅读包列表......错误! E:遇到没有Package:标题的部分 E:MergeList /var/lib/apt/lists/in.archive.ubuntu.com_ubuntu_dists_trusty_main_i18n_Translation-en的问题 E:无法解析或打开包列表或状态文件。 madhavnikam @ madhavnikam-的Aspire-E5-511:〜$
madhavnikam @ madhavnikam-Aspire-E5-511:〜$ youtube-dl -U 看起来您使用包管理器,pip,setup.py或tarball安装了youtube-dl。 请用它来更新。 madhavnikam @ madhavnikam-的Aspire-E5-511:〜$
如何仅使用终端卸载和安装Youtube-dl。
尝试使用pip
命令升级youtube-dl
sudo pip install --upgrade youtube-dl
如果你收到这条消息:
sudo: pip: command not found
然后先安装pip
:
sudo apt-get install python-setuptools sudo easy_install pip sudo pip install --upgrade youtube-dl
我通过使用命令解决了这个问题。
(步骤1)
sudo apt-get删除youtube-dl
之后
(第2步)
sudo apt-get install youtube-dl
步骤(3)下载播放列表…..
youtube-dl -cit --extract-audio --audio-format mp3 https://www.youtube.com/playlist?list=PLttJ4RON7sleuL8wDpxbKHbSJ7BH4vvCk
DONE。
使用–reinstall会更容易
sudo apt-get install --reinstall youtube-dl
然后使用它:
youtube-dl -cit --extract-audio --audio-format mp3 https://www.youtube.com/playlist?list=PLttJ4RON7sleuL8wDpxbKHbSJ7BH4vvCk
我不同意其他答案,更好的是安装youtube-dl的官方方法,因为您经常需要更新它( sudo youtube-dl -U
)以保持其工作:
sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
在这里,您将找到我为批量下载从文本文件中获取曲目名称所做的bash脚本。