apt-get upgrade vs apt-show-versions

Colin Law clanlaw at gmail.com
Sun Jan 17 21:50:46 UTC 2016


On 17 January 2016 at 20:32, Лев Тен <l.ten at reg.ru> wrote:
> Hello, dear ubuntu users!
>
> I am running Ubuntu 14.04.3 LTS some servers and I wonder if someone have
> noticed a difference in output of two utilities in subject concerning
> security updates, for example today I noticed a bunch of packages that
> apt-show-version marked as trusty-security, while apt-get upgrade show them
> as trusty-updates.
> For example:
> root at server1:~# apt-get dist-upgrade -s | grep python-samba | grep Inst
> Inst python-samba [2:4.1.6+dfsg-1ubuntu2.14.04.8]
> (2:4.1.6+dfsg-1ubuntu2.14.04.11 Ubuntu:14.04/trusty-updates [amd64]) []
> root at server1:~# apt-show-versions | grep python-samba
> python-samba:amd64/trusty-security 2:4.1.6+dfsg-1ubuntu2.14.04.8 upgradeable
> to 2:4.1.6+dfsg-1ubuntu2.14.04.11

I notice that apt-cache policy python-samba shows
  Version table:
 *** 2:4.1.6+dfsg-1ubuntu2.14.04.11 0
        500 http://gb.archive.ubuntu.com/ubuntu/ trusty-updates/main
amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ trusty-security/main
amd64 Packages
        100 /var/lib/dpkg/status

So the same version is available in both repos.

Colin




More information about the ubuntu-users mailing list