此页面显示,stretch-backports 上的 freetds-dev 版本位于,1.00.104-1~bpo9+1
但是当我尝试安装它时,我得到了 version 0.91-6.1+b4
。
root@c0884c37efdc:/# apt update
Hit:1 https://deb.nodesource.com/node_6.x stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Ign:3 http://deb.debian.org/debian stretch InRelease
Get:4 http://ftp.de.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:5 http://deb.debian.org/debian stretch-updates InRelease
Hit:6 http://deb.debian.org/debian stretch Release
Get:8 http://ftp.de.debian.org/debian stretch-backports/main amd64 Packages [593 kB]
Fetched 685 kB in 6s (112 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@c0884c37efdc:/# apt install freetds-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
freetds-dev is already the newest version (0.91-6.1+b4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
为什么 apt 不会获得 freetds-dev 的 1.0.0 版本?
你得到的是稳定版。你需要运行
apt -t stretch-backports install freetds-dev
.相关:
在 /etc/apt/sources.list 中保留反向端口条目是个好主意吗?对于更新,尤其是升级?无副作用?