# Unable to install through dpkg in Ansible

**URL:** <https://forum.ansible.com/t/unable-to-install-through-dpkg-in-ansible/27465>\
**Category:** Ansible Project\
**Created:** [May 5, 2018, 5:22pm UTC](https://forum.ansible.com/t/unable-to-install-through-dpkg-in-ansible/27465 "2018-05-05T17:22:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bishwajit\_Samanta](https://avatars.discourse-cdn.com/v4/letter/b/8e7dd6/32.png) [@Bishwajit\_Samanta](https://forum.ansible.com/u/Bishwajit_Samanta)\
**Post date:** [May 5, 2018, 5:22pm UTC](https://forum.ansible.com/t/unable-to-install-through-dpkg-in-ansible/27465/1 "2018-05-05T17:22:08Z")

</div>

Hi,

I am trying to install a .deb Package through Ansible, it is not getting installed.

Error:-

---

<div class="post-metadata">

**Author:** ![Richard\_Hector](https://avatars.discourse-cdn.com/v4/letter/r/db5fbb/32.png) [@Richard\_Hector](https://forum.ansible.com/u/Richard_Hector)\
**Post date:** [May 9, 2018, 1:03pm UTC](https://forum.ansible.com/t/unable-to-install-through-dpkg-in-ansible/27465/2 "2018-05-09T13:03:36Z")

</div>

I think that 'name' expects just a package name, to install from a repo.  
try 'deb' for installing from a file on the remote machine.

Richard
