我已经添加了官方的 Firefox-next PPA:
sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt-get update
sudo apt-get upgrade
所以我得到以下配置/etc/apt/sources.list.d/mozillateam-firefox-next-xenial.list
deb http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu xenial main
但该软件包不会升级到 PPA 版本。
问题
我该如何解决?
答案1
政策(之前)
$ apt policy firefox
firefox:
Installed: 48.0+linuxmint1+sarah
Candidate: 48.0+linuxmint1+sarah
Version table:
49.0~b2+build1-0ubuntu0.16.04.1 500
500 http://ppa.launchpad.net/mozillateam/firefox-next/ubuntu xenial/main amd64 Packages
*** 48.0+linuxmint1+sarah 700
700 http://mint-mirror.gwendallebihan.net/packages sarah/upstream amd64 Packages
100 /var/lib/dpkg/status
48.0+build2-0ubuntu0.16.04.1 500
500 http://ftp.u-picardie.fr/mirror/ubuntu/ubuntu xenial-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
45.0.2+build1-0ubuntu1 500
500 http://ftp.u-picardie.fr/mirror/ubuntu/ubuntu xenial/main amd64 Packages
APT政策
$ cat /etc/apt/preferences.d/official-extra-repositories.pref
Package: *
Pin: origin build.linuxmint.com
Pin-Priority: 700
解决方案
基于如何从 PPA 中挑选包裹?
添加以下规则/etc/apt/preferences.d/official-extra-repositories.pref
以确定 PPA 的优先级(Pin-Priority
将使用最高的):
Package: *firefox*
Pin: release o=LP-PPA-mozillateam-firefox-next
Pin-Priority: 800
然后更新升级
sudo apt-get update
sudo apt-get upgrade