Answers:
我已根据我们的情况调整了此处的说明。
首先,在中创建以下文件/etc/apt/preferences.d
:
jessie.pref
:
Package: *
Pin: release a=jessie
Pin-Priority: 900
stretch.pref
:
Package: *
Pin: release a=stretch
Pin-Priority: 750
现在,为/etc/apt/sources.list.d创建一个匹配集:
jessie.list
:
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
stretch.list
:
deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
最后更新软件包列表:
sudo apt-get update
现在,您可以从Stretch发行版中安装Deluge:
sudo apt-get install deluged -t stretch
获得:
pi@raspberrypi:~ $ deluged --version
deluged: 1.3.13
libtorrent: 0.16.18.0
除此之外,这不适用于树莓派:
Pin: release a=jessie
与jessie不正确匹配
cat /var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_stretch_InRelease
...
Origin: Raspbian
Label: Raspbian
Suite: testing
Codename: stretch
...
raspbian的releasefile中没有Archive标签,因此需要匹配n =(Codename)
Package: *
Pin: release n=jessie
Pin-Priority: 900
...为我工作。