Skip to content

Package cache should be updated before installing #1

@samos123

Description

@samos123

After running state.highstate I noticed that not the candidate package was installed. My guess is that this was caused by invalid package cache. Running apt-get update before installing libvirt package would have solved the issue.

So adding refresh: true to pkg.installed should solve this issue.

apt-cache policy libvirt-bin
libvirt-bin:
  Installed: 1.2.2-0ubuntu13.1.17+tcp1
  Candidate: 1.2.9.3-9~u14.04+mos10
  Version table:
     1.2.9.3-9~u14.04+mos10 0
        500 http://mirror.fuel-infra.org/mos-repos/ubuntu/9.0/ mos9.0/main amd64 Packages
 *** 1.2.2-0ubuntu13.1.17+tcp1 0
        500 http://apt.tcpcloud.eu/nightly/ trusty/tcp amd64 Packages
        100 /var/lib/dpkg/status
     1.2.2-0ubuntu13.1.17 0
        500 http://apt.tcpcloud.eu/nightly/ trusty/main amd64 Packages
     1.2.2-0ubuntu13.1.16 0
        500 http://apt.tcpcloud.eu/nightly/ trusty/security amd64 Packages
     1.2.2-0ubuntu13 0
        500 http://apt.tcpcloud.eu/nightly/ trusty/main amd64 Packages

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions