Page MenuHomePhabricator

There are problems and -y was used without --force-yes
Closed, DuplicatePublic

Description

It seems like hhvm was changed from Ubuntu default to use WMF's own fork (maybe just a side effect of some new hhvm package being added to WMF's apt repo which takes precedence over system-default packages) and now apt is complaining that it's not being forced hard enough:

==> default: Notice: /Stage[main]/Apt/Exec[apt-get update]/returns: executed successfully
==> default: Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install hhvm-dev' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following packages will be DOWNGRADED:
==> default:   hhvm-dev
==> default: 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 330 not upgraded.
==> default: Need to get 2587 kB of archives.
==> default: After this operation, 0 B of additional disk space will be used.
==> default: E: There are problems and -y was used without --force-yes
==> default: 
==> default: Error: /Stage[main]/Hhvm/Package[hhvm-dev]/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-dev' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following packages will be DOWNGRADED:
==> default:   hhvm-dev
==> default: 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 330 not upgraded.
==> default: Need to get 2587 kB of archives.
==> default: After this operation, 0 B of additional disk space will be used.
==> default: E: There are problems and -y was used without --force-yes
==> default: 
==> 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...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following package was automatically installed and is no longer required:
==> default:   libicu48
==> default: Use 'apt-get autoremove' to remove it.
==> default: The following packages will be DOWNGRADED:
==> default:   hhvm
==> default: 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 330 not upgraded.
==> default: Need to get 10.3 MB of archives.
==> default: After this operation, 4096 B of additional disk space will be used.
==> default: E: There are problems and -y was used without --force-yes
==> default: 
==> 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...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following package was automatically installed and is no longer required:
==> default:   libicu48
==> default: Use 'apt-get autoremove' to remove it.
==> default: The following packages will be DOWNGRADED:
==> default:   hhvm
==> default: 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 330 not upgraded.
==> default: Need to get 10.3 MB of archives.
==> default: After this operation, 4096 B of additional disk space will be used.
==> default: E: There are problems and -y was used without --force-yes

Event Timeline

It seems like on puppet's end the workaround would be to add install_options => ['--force-yes'] to all package resources which is rather ugly. Maybe there is a nicer option via apt config.

Of course, from the user's end, it can be always worked around just by running apt manually: sudo /usr/bin/apt-get -q -y --force-yes -o DPkg::Options::=--force-confold install hhvm hhvm-dev

Danny_B renamed this task from MediaWiki-Vagrant: There are problems and -y was used without --force-yes to There are problems and -y was used without --force-yes.May 23 2016, 4:11 PM