个人工具
登录
查看“UbuntuHelp:PinningHowto”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:PinningHowto”的源代码
来自Ubuntu中文
←
UbuntuHelp:PinningHowto
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/PinningHowto}} {{Languages|UbuntuHelp:PinningHowto}} === Introduction to Pinning Packages === Pinning is a solution to be able to install packages from different Ubuntu releases on an Ubuntu system, without completely "polluting" your system with libraries and applications that are not meant for the version you are actually running. This guide will be when you need or want to install an older version of a program on a newer version of Ubuntu. This is important if you are running development versions of Ubuntu or any software that maybe in testing or unstable release -- example Firefox-3.0 in Hardy, it isn't stable so if a patch or new version causes something to break you can install the old version and pin the package so Apt or Synaptic doesn't keep wanting you to upgrade to the broken version. First way to pin a package is in Synaptic: <pre><nowiki> Open Synaptic Click on Search and type the package name in the Search box Highlight the version you want to pin '''Make sure its the version that is not broken''' Click on the menu item Package than click on lock version Close Synaptic </nowiki></pre> Second way is to pin it with Apt/Dpkg: <pre><nowiki> Open a terminal sudo -s and hit enter Enter your password for sudo echo libxfont1 hold | dpkg --set-selections '''Replace libfont1 with the package you want to pin''' Now run sudo apt-get update and than sudo apt-get upgrade </nowiki></pre> This part will be removing the pin that you used to pin the file. This should be when the package is fixed or removed. You can check what the next version of the package is by using apt-cache policy packagename To remove the pin in Synaptic: <pre><nowiki> Open Synaptic Search packagename Click on package Click on menu item packages Now click unlock Close Synaptic </nowiki></pre> To remove pin from Apt/Dpkg: <pre><nowiki> Open a terminal sudo -s and hit enter Enter your password for sudo echo libxfont1 install | dpkg --set-selections '''Replace libfont1 with the package you want to pin''' Now run sudo apt-get update and than sudo apt-get upgrade </nowiki></pre> '''NOTE''' At the time of the making this Wiki there is not a known way to Pin a package with Update Manager. Pinning should never be used for installing Debian binary packages on Ubuntu. Ubuntu strongly recommends against using Debian binary packages on Ubuntu, === Links === These documents were used as a foundation for this page, and might give you more background information: * For Basic apt-get usage and instructions see [[UbuntuHelp:AptGetHowTo|AptGetHowTo]] * [http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html The official Debian documentation] [[category:CategoryDocumentation]] [[category:CategoryCleanup]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:PinningHowto
。