# apt returns msg: No package matching...

**URL:** <https://forum.ansible.com/t/apt-returns-msg-no-package-matching/14908>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [April 1, 2014, 8:15pm UTC](https://forum.ansible.com/t/apt-returns-msg-no-package-matching/14908 "2014-04-01T20:15:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sampsont](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@sampsont](https://forum.ansible.com/u/sampsont)\
**Post date:** [April 1, 2014, 8:15pm UTC](https://forum.ansible.com/t/apt-returns-msg-no-package-matching/14908/1 "2014-04-01T20:15:04Z")

</div>

The apt module returns:

> **_msg: No package matching ‘nypa-comtrade-mod’ is available_**

when I try to install a .deb package that I made. Here’s the playbook:

> **_—_**
> 
> **_- hosts: server1_**
> 
> **_sudo: True_**
> 
> **_user: dfr_**
> 
> **_remote\_user: dfr_**
> 
> **_tasks:_**
> 
> **_- name: install nypa-comtrade-mod_**
> 
> **_apt: update\_cache=yes pkg=nypa-comtrade-mod state=installed_**

If I do the install directly on the managed host, the install works but it does generate this message:

> **_WARNING: The following packages cannot be authenticated!_**
> 
> **_nypa-comtrade-mod_**
> 
> **_Install these packages without verification [y/N]?_**

My question is, is this most likely causing my error? If so, the error message is confusing because the package is indeed available.

Nothing gets logged to: /var/log/apt/history.log when I try to install my package. Normal Ubuntu packages work correctly.

-vvv turns on debug info concerning the ssh authentication and that seems to be working.

Any hints to help me debug this would be appreciated!
