apt 偏好密码:原产地? [英] apt preferences pin: origin local?

查看:31
本文介绍了apt 偏好密码:原产地?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已从笔记本中删除 fglrx 并返回免费驱动程序,但 xfce4-power-manager 无法启动.这是一个已知错误

I have dropped fglrx from my notebook and return to the free drivers but xfce4-power-manager fails to start. it was a known bug

我得到了 apt-get 源,应用补丁,构建并安装它.现在一切正常,我已将此错误报告给 debian.但是现在我想保留这个包以防止升级一段时间

I got apt-get source, apply the patch, build and install it. now all works perfect, I have reported this bug to debian. but now I want to hold this package to prevent upgrades for some time

我知道笨拙的方法是增加包构建版本部分.例如 1.0.10-5 然后按版本保存包:

I know that clumsy way is to bump the package build version part. for example 1.0.10-5 and then hold package by a version:

Package: xfce4-power-manager
Pin: version 1.0.10-5
Pin-priority: 1001

我认为最好的方法是按原点存放包裹:

I think the best way is to hold packages by the origin:

Package: xfce4-power-manager
Pin: origin "local origin?"
Pin-priority: 1001

这可能吗?我在文档中找不到这个

Is this possible? I cant find this in docs

推荐答案

使用run"或now"作为原点应该可以工作:

Using "run" or "now" as the origin should work:

Package: xfce4-power-manager
Pin: release o=now
Pin-priority: 1001

这篇关于apt 偏好密码:原产地?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆