# Ansible: apt problem with the colon (packet name)

**URL:** <https://forum.ansible.com/t/ansible-apt-problem-with-the-colon-packet-name/20367>\
**Category:** Ansible Project\
**Created:** [January 28, 2016, 11:38am UTC](https://forum.ansible.com/t/ansible-apt-problem-with-the-colon-packet-name/20367 "2016-01-28T11:38:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AS1](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@AS1](https://forum.ansible.com/u/AS1)\
**Post date:** [January 28, 2016, 11:38am UTC](https://forum.ansible.com/t/ansible-apt-problem-with-the-colon-packet-name/20367/1 "2016-01-28T11:38:11Z")

</div>

Do you guys know whether the colon is supported on packet names with Ansible’s apt module?

Currently running ansible 2.0.0.2 and tried numerous different escape character combinations but the error is always same.

**few YAML-variants on the playbook:**

- name: Install libc6  
apt: name=‘libc6:i386’

- name: Install libc6  
apt: name=libc6{{‘:’}}i386

- name: Install libc6

apt: name=‘libc6{{’:‘}}i386’

**Error**

fatal: [someaccount@xxxxxxxxxxxserver.com]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “No package matching ‘libc6:i386’ is available”}

**apt-get command itself finds the packet without problems:**  
sudo apt-get install libc6:i386

---

<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:** [January 28, 2016, 5:14pm UTC](https://forum.ansible.com/t/ansible-apt-problem-with-the-colon-packet-name/20367/2 "2016-01-28T17:14:19Z")

</div>

does it actually install that lib or one with similar name? apt-get  
does some fuzzy matching in the command line that ansible avoids.

---

<div class="post-metadata">

**Author:** ![AS1](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@AS1](https://forum.ansible.com/u/AS1)\
**Post date:** [February 2, 2016, 10:51am UTC](https://forum.ansible.com/t/ansible-apt-problem-with-the-colon-packet-name/20367/3 "2016-02-02T10:51:12Z")

</div>

As far I know there are two different versions of these libraries (32bit and 64bit). Without i386 only 64bit version is installed.  
dpkg --add-architecture i386  
apt-get -y install libc6:i386  
apt-get -y install libncurses5:i386  
apt-get -y install libstdc++6:i386

My reasoning behind is here:  
[http://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit](http://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit)

---

<div class="post-metadata">

**Author:** ![AS1](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@AS1](https://forum.ansible.com/u/AS1)\
**Post date:** [February 2, 2016, 11:45am UTC](https://forum.ansible.com/t/ansible-apt-problem-with-the-colon-packet-name/20367/4 "2016-02-02T11:45:23Z")

</div>

Found workaround: by some reason install works with items but not directly with apt.

- name: enable multiarch  
command: dpkg --add-architecture i386

- name: install deps  
apt: name={{ item }} update\_cache=yes cache\_valid\_time=3600  
with\_items:

- “libc6:i386”

- “libncurses5:i386”

- “libstdc++6:i386”
