[转]Ubuntu Precise - Install youtube-dl package using Quantal repo
Ubuntu Precise - Install youtube-dl package using Quantal repo
Ubuntu Precise 12.04 currently contains in repository youtube-dl version 2012.02.27-1. As of recent YouTube changes this package version is not usable anymore but there is an updated version in Ubuntu Quantal 12.10 repository. To use it you need to perform couple of steps described below.
Used Ubuntu release:
$ lsb_release -d -r -c
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
Update system packages and perform standard system upgrade operation:
$ sudo apt-get update
$ sudo apt-get upgrade
Verify that there is only youtube-dl 2012.02.27-1 version in repository:
$ apt-cache policy youtube-dl
youtube-dl:
Installed: 2012.02.27-1
Candidate: 2012.02.27-1
Version table:
*** 2012.02.27-1 0
500 http://pl.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
100 /var/lib/dpkg/status
Define default release as Precise (12.04) as for now you (very likely) don't want to upgrade whole system using Quantal (12.10) repository so create file /etc/apt/apt.conf.d/00release with contents:
APT::Default-Release "precise";
Add Quantal repository to /etc/apt/sources.list:
deb http://pl.archive.ubuntu.com/ubuntu/ quantal universe
To upgrade youtube-dl package you need only universe component but if you plan to check out other packages later then you can add more components:
deb http://pl.archive.ubuntu.com/ubuntu/ quantal main restricted universe multiverse
Update package list:
$ sudo apt-get update
As you defined default release as Precise - there should not be any packages to update:
# sudo apt-get upgrade --simulate
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Verify that there is a new version of youtube-dl in package list:
$ sudo apt-cache policy youtube-dl
youtube-dl:
Installed: 2012.02.27-1
Candidate: 2012.02.27-1
Version table:
2012.09.27-1 0
500 http://pl.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
*** 2012.02.27-1 0
990 http://pl.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
100 /var/lib/dpkg/status
Create a file /etc/apt/preferences.d/youtube-dl with contents:
Package: youtube-dl
Pin: release a=quantal
Pin-Priority: 990
APT will use youtube-dl package from Quantal repository unless the installed version is more recent.
$ apt-cache policy youtube-dl
youtube-dl:
Installed: 2012.02.27-1
Candidate: 2012.09.27-1
Package pin: 2012.09.27-1
Version table:
2012.09.27-1 990
500 http://pl.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
*** 2012.02.27-1 990
990 http://pl.archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
100 /var/lib/dpkg/status
Now the package is selected to be updated using Quantal repository:
# sudo apt-get -y upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
youtube-dl
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/50.2 kB of archives.
After this operation, 119 kB disk space will be freed.
(Reading database ... 347979 files and directories currently installed.)
Preparing to replace youtube-dl 2012.02.27-1 (using .../youtube-dl_2012.09.27-1_all.deb) ...
Unpacking replacement youtube-dl ...
Processing triggers for man-db ...
Setting up youtube-dl (2012.09.27-1) ...
To learn about package priorities and preference control file for APT read manual page:
$ man apt_preferences
Update - easier solution - use youtube-dl self update
Perform self update to the latest stable version:
$ sudo youtube-dl -U
I overlooked this solution but the first one could be useful for other packages.
Milosz Galazka
[转]Ubuntu Precise - Install youtube-dl package using Quantal repo的更多相关文章
- ubuntu下使用python3的有些库时,解决"raise ImportError(str(msg) + ', please install the python3-tk package') ImportError: No module named '_tkinter', please install the python3-tk package"的错误
问题: 在Ubuntu下使用matplotlib这个库时,运行时出现如下错误: raise ImportError(str(msg) + ', please install the python3-t ...
- Ubuntu的Unable to locate package无法更新源问题解决方案
https://blog.csdn.net/long19910605/article/details/47017889/ 问题: 更新源时提示不能联网(does the network require ...
- Ubuntu 查询 so 归属的 package
. . . . . 今天 LZ 在运行一个程序的时候,出现找不到 so 库的情况: >$ ./core ./core: error : cannot open shared object fil ...
- ubuntu server install 安装中文(搜狗)输入法
1.对于ubuntu server默认无中文输入法框架,我比较倾向于我一直使用的ibus-sunpinyin.这里我需要先安装ibus的框架 不过我遇到了问题: dpkg: dependency pr ...
- sudo apt install libreadline-dev Reading package lists... Error!
luo@luo-ThinkPad-W540:~$ luo@luo-ThinkPad-W540:~$ luo@luo-ThinkPad-W540:~$ luo@luo-ThinkPad-W540:~$ ...
- AX7: Install a deployable package
Table of Contents Introduction Key concepts Collect topology configuration data Generate a runbook f ...
- ubuntu apt-get install 时报错curl : Depends: libcurl4 (= 7.58.0-2ubuntu3.6) but 7.61.0-1ubuntu2 is to be installed或者 vim : Depends: vim-common (= 2:8.0.1453-1ubuntu1) but 2:8.0.1766-1ubuntu1 is to be ins
ubuntu apt-get install 时报错:Depends: ***(=某版本)but***(另一版本)is to be installed 这时候就把这个***给purge后再重新装就好了 ...
- 在绘图的时候import matplotlib.pyplot as plt报错:ImportError: No module named '_tkinter', please install the python-tk package
在绘图的时候import matplotlib.pyplot as plt报错:ImportError: No module named '_tkinter', please install the ...
- ImportError: No module named '_tkinter', please install the python3-tk package
ImportError: No module named '_tkinter', please install the python3-tk package 先更新包,命令:sudo apt-get ...
随机推荐
- 词根:sol = sun(太阳) 词根:sol = alone/single, whole/entire (单独的)
词根:sol = sun(太阳) sol 这个词根有的书上如刘毅字典,刘洪波英文字根词源精讲等上面说来自拉丁语的sol(=sun),有的书如赢在单词上面说sol 来自拉丁语的solari,但不管哪种说 ...
- java数据结构分析
java数据结构分析 此文章内容参考于:http://www.cnblogs.com/ysocean/ 一.数据结构总览图 1.数组 2.链表 3.栈 4.队列 5.二叉树 6.堆 7.散列 8.红黑 ...
- Windows网络发现无法启动
解决方法: 运行services.msc命令,打开服务界面.分别将Function Discovery Resource Publication.SSDP Discovery.UPnP Device ...
- Node.js前端程序通过Nginx部署后刷新出现404问题的解决办法
方案一 (这种方式容易被第三方劫持) location / { root /data/nginx/html; index index.html index.htm; error_page 404 /i ...
- Vue 获取元素样式 元素高度
看到这个问题我第一时间想的竟然是JS 不知道你是怎么想的 不过昨天有一个小哥哥 问我一个Vue的 哈哈哈 get了 我当时问他为什么不用JS获取 他说 这个性能更高 那我们来看看这个高性能的获取元素高 ...
- 关于Promise的记录和理解
在JavaScript中,所有的代码都是单线程执行的,这就导致了其所有的网络请求,IO操作,浏览器时间等都是异步非阻塞的模式执行的,这就使得代码的执行顺序可能会超出我们的掌控. 尤其是当多个异步操作待 ...
- ABB机器人设置安全区(案例版)
ABB机器人设置安全区.中断(案例版) 1.概述 在如今机器人中普遍会设置机器人的安全区域,也可以理解为工作范围.主要目的是为了机器人运行时的安全性和可靠性.ABB机器人也不例外,下面我们就讲讲ABB ...
- JSON.parse()和eval()的区别
json格式非常受欢迎,而解析json的方式通常用JSON.parse()但是eval()方法也可以解析,这两者之间有什么区别呢? JSON.parse()之可以解析json格式的数据,并且会对要解析 ...
- loadtxt函数
numpy.loadtxt numpy.loadtxt(fname, dtype=<type 'float'>, comments='#', delimiter=None, convert ...
- 《团队-爬取豆瓣top250-开发文档》
项目托管平台地址:https://github.com/gengwenhao/GetTop250.git 本项目能够爬取豆瓣电影TOP250并向用户展示电影的排名,分数等