# Need help with error: msg: parameters are mutually exclusive: \['package', 'upgrade', 'deb'\]

**URL:** <https://forum.ansible.com/t/need-help-with-error-msg-parameters-are-mutually-exclusive-package-upgrade-deb/16692>\
**Category:** Ansible Project\
**Created:** [November 4, 2014, 9:08pm UTC](https://forum.ansible.com/t/need-help-with-error-msg-parameters-are-mutually-exclusive-package-upgrade-deb/16692 "2014-11-04T21:08:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayush\_Sharma](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@Ayush\_Sharma](https://forum.ansible.com/u/Ayush_Sharma)\
**Post date:** [November 4, 2014, 9:08pm UTC](https://forum.ansible.com/t/need-help-with-error-msg-parameters-are-mutually-exclusive-package-upgrade-deb/16692/1 "2014-11-04T21:08:53Z")

</div>

I’m using the following task to install a few utilities:

`- name: install utilities  
apt: name={{ item.pkg }} state=present upgrade=full  
with\_items:

- pkg: ‘htop’
- pkg: ‘mytop’
- pkg: ‘iotop’
- pkg: ‘pv’`

`When executing in check mode, I get the following error:  
failed: [192.168.68.136] =\> (item={‘pkg’: ‘pv’}) =\> {“failed”: true, “item”: {“pkg”: “pv”}}

msg: parameters are mutually exclusive: [‘package’, ‘upgrade’, ‘deb’]`

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [November 5, 2014, 2:08am UTC](https://forum.ansible.com/t/need-help-with-error-msg-parameters-are-mutually-exclusive-package-upgrade-deb/16692/2 "2014-11-05T02:08:31Z")

</div>

what you want is:

apt: name={{ item.pkg }} state=latest

upgrade is not for single packages but for upgrading all packages.
