我从我的笔记本中删除了fglrx并返回到免费驱动程序,但xfce4-power-manager无法启动。这是一个known bug
我得到了apt-get source,应用补丁,构建并安装它。现在一切都很完美,我已经把这个bug报告给了debian。但现在我想保留这个包以防止升级一段时间
我知道笨拙的方法是打破包构建版本部分。例如1.0.10-5然后按版本保存包:
Package: xfce4-power-manager
Pin: version 1.0.10-5
Pin-priority: 1001
我认为最好的方法是按原点保存包裹:
Package: xfce4-power-manager
Pin: origin "local origin?"
Pin-priority: 1001
这可能吗?我在文档中找不到这个
使用“run”或“now”作为原点应该有效:
Package: xfce4-power-manager
Pin: release o=now
Pin-priority: 1001
直接从手册页(man 5 apt_preferences):
This general-form entry in the APT preferences file applies only to
groups of packages. For example, the following record assigns a
high priority to all package versions available from the local
site.
Package: *
Pin: origin ""
Pin-Priority: 999
我相信这就是你要找的东西。我从来没有使用过pinning来做这个,所以我不确定这是否能解决你的问题。
apt的最新版本(在Debian 9.8上测试,延伸)支持安装本地deb,只要配置的repo中没有相同名称的deb,在这种情况下,repo版本是首选。例如,在从本地apt配置中注释掉相关的repo之后,这适用于我:
sudo apt install ./packagename_0.0.1_all.deb
apt确实需要./
前缀或完整路径来查找本地文件。