鉴于此/etc/apt/sources.list
文件:
deb http://us.archive.ubuntu.com/ubuntu/ cosmic main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ cosmic main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ disco main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ disco main restricted universe multiverse
这个/etc/apt/preferences
文件:
Package: *
Pin: release a=cosmic
Pin-Priority: 900
Package: *
Pin: release a=disco
Pin-Priority: -10
正如我所期望的那样,运行apt install some-package
将从中安装版本。cosmic
但是,运行apt source some-package
将从disco
.
我怎样才能使apt source
服从引脚优先级?