# How to update .deb from local files and ignore dependensies?

**URL:** <https://forum.ansible.com/t/how-to-update-deb-from-local-files-and-ignore-dependensies/44831>\
**Category:** Get Help\
**Created:** [November 11, 2025, 12:27pm UTC](https://forum.ansible.com/t/how-to-update-deb-from-local-files-and-ignore-dependensies/44831 "2025-11-11T12:27:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mak\_S](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mak_s/32/8708_2.png) [@Mak\_S](https://forum.ansible.com/u/Mak_S)\
**Post date:** [November 11, 2025, 12:27pm UTC](https://forum.ansible.com/t/how-to-update-deb-from-local-files-and-ignore-dependensies/44831/1 "2025-11-11T12:27:03Z")

</div>

Hi all again.

I’ve a **Debian** server with installed [Foundation DB 7](https://github.com/apple/foundationdb/) .  
According to FDB architecture, you need to install two packages on server:

- foundationdb-clients-7.3.63
- foundationdb-server-7.3.63

I did **fresh install** with this code, using **locally downloaded packages** :

```auto
................................
- name: Install by APT | Package installation (version {{ package_version }})
  ansible.builtin.apt:
    deb: "{{ ansible_user_dir }}/{{ item.path | basename }}"
    state: present
    install_recommends: true
  with_items: "{{ deb_names.files | sort(attribute='path') }}"
  become: true

```

And it works fine.

But when I try to **update** these packages with **locally downloaded** files from 7.3.63 → 7.3.69 with the same code on this **Debian** server I got an error:

```auto
fdb.server:
item={'path': 'files/foundationdb-clients_7.3.69-1_amd64.deb'}
    "msg": "Breaks existing package 'foundationdb-server' dependency foundationdb-clients (= 7.3.63-1)"
item={'path': 'files/foundationdb-server_7.3.69-1_amd64.deb'}:
    "msg": "Dependency is not satisfiable: foundationdb-clients (= 7.3.69-1)"

```

When I did it on **RedHat** server - there is no problem with option " skip\_broken: true".

Could you, please, help to solve this?

---

<div class="post-metadata">

**Author:** ![bvitnik](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/bvitnik/32/4132_2.png) [@bvitnik](https://forum.ansible.com/u/bvitnik)\
**Post date:** [November 11, 2025, 11:07pm UTC](https://forum.ansible.com/t/how-to-update-deb-from-local-files-and-ignore-dependensies/44831/2 "2025-11-11T23:07:50Z")

</div>

Since you are using a loop (`with_items`), your code is trying to update one package at a time which is not possible. Both packages must be updated in one go with one call to the `apt` package manager because they are mutually dependent.

Now, you seem to have hit a limitation in the `apt` module. The module can accept list of packages in it’s `name` parameter but `deb` parameter does not accept a list - only a single path/string. This is according to the documentation - I have not dug into the source code to see if there is some extra handling for `deb` parameter. If `deb` parameter supported a list of package paths like the `name` parameter, then this would be easy to solve.

That being said, I think your only solution is to use the `shell` module and call `apt install` shell command line with both packages specified in the command line.

---

<div class="post-metadata">

**Author:** ![Mak\_S](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mak_s/32/8708_2.png) [@Mak\_S](https://forum.ansible.com/u/Mak_S)\
**Post date:** [November 12, 2025, 7:41am UTC](https://forum.ansible.com/t/how-to-update-deb-from-local-files-and-ignore-dependensies/44831/3 "2025-11-12T07:41:29Z")

</div>

Thank you very much for detailed description.  
I think so, that `shell` module is one acceptable method.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [December 12, 2025, 7:41am UTC](https://forum.ansible.com/t/how-to-update-deb-from-local-files-and-ignore-dependensies/44831/4 "2025-12-12T07:41:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
