apt install と apt-get source でパッケージのバージョンが違う

環境

Ubuntu 14.04 LTS (trusty)

原因

/etc/apt/sources.list に、アップデートされたパッケージのソース URL が書かれていなかったため。

deb http://security.ubuntu.com/ubuntu/ trusty-security main universe
deb http://jp.archive.ubuntu.com/ubuntu/ trusty-updates main universe

対処

/etc/apt/sources.list に、ソース URL を追記する。

deb http://security.ubuntu.com/ubuntu/ trusty-security main universe
deb-src http://security.ubuntu.com/ubuntu/ trusty-security main universe
deb http://jp.archive.ubuntu.com/ubuntu/ trusty-updates main universe
deb-src http://jp.archive.ubuntu.com/ubuntu/ trusty-updates main universe