We use ensure => latest for the HHVM packages in MediaWiki-Vagrant. As a part of a careful production upgrade process (T86096), the most recent HHVM package in the Wikimedia apt repo has a lower version number that the prior build. This is causing Puppet to fail:
| 1 | ==> default: Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install hhvm' returned 100: Reading package lists... |
|---|---|
| 2 | ==> default: Building dependency tree... |
| 3 | ==> default: Reading state information... |
| 4 | ==> default: The following package was automatically installed and is no longer required: |
| 5 | ==> default: libicu48 |
| 6 | ==> default: Use 'apt-get autoremove' to remove it. |
| 7 | ==> default: The following packages will be DOWNGRADED: |
| 8 | ==> default: hhvm |
| 9 | ==> default: 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 20 not upgraded. |
| 10 | ==> default: Need to get 10.3 MB of archives. |
| 11 | ==> default: After this operation, 4096 B of additional disk space will be used. |
| 12 | ==> default: E: There are problems and -y was used without --force-yes |
| 13 | ==> default: |
| 14 | ==> default: Error: /Stage[main]/Hhvm/Package[hhvm]/ensure: change from 3.12.1+dfsg-1 to 3.12.1+dfsg-1~wmf1+trusty0 failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install hhvm' returned 100: Reading package lists... |
| 15 | ==> default: Building dependency tree... |
| 16 | ==> default: Reading state information... |
| 17 | ==> default: The following package was automatically installed and is no longer required: |
| 18 | ==> default: libicu48 |
| 19 | ==> default: Use 'apt-get autoremove' to remove it. |
| 20 | ==> default: The following packages will be DOWNGRADED: |
| 21 | ==> default: hhvm |
| 22 | ==> default: 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 20 not upgraded. |
| 23 | ==> default: Need to get 10.3 MB of archives. |
| 24 | ==> default: After this operation, 4096 B of additional disk space will be used. |
| 25 | ==> default: E: There are problems and -y was used without --force-yes |
| 26 | ==> default: |
| 27 | ==> default: Notice: /Stage[main]/Hhvm/Service[hhvm]: Dependency Package[hhvm] has failures: true |
| 28 | ==> default: Notice: /Stage[main]/Hhvm/Service[hhvm]: Dependency Package[hhvm-dev] has failures: true |
| 29 | ==> default: Warning: /Stage[main]/Hhvm/Service[hhvm]: Skipping because of failed dependencies |