# How to solve a collision error when installing some packages

**URL:** <https://discourse.flox.dev/t/how-to-solve-a-collision-error-when-installing-some-packages/673>\
**Category:** Help\
**Created:** [February 24, 2023, 2:18pm UTC](https://discourse.flox.dev/t/how-to-solve-a-collision-error-when-installing-some-packages/673 "2023-02-24T14:18:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![etorreborre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/etorreborre/32/428_2.png) [@etorreborre](https://discourse.flox.dev/u/etorreborre)\
**Post date:** [February 24, 2023, 2:18pm UTC](https://discourse.flox.dev/t/how-to-solve-a-collision-error-when-installing-some-packages/673/1 "2023-02-24T14:18:30Z")

</div>

Hi, I am trying to install some packages but there is a conflict. For example if I try to

```auto
flox install jdk
flox install cmake

```

Then I get an error like

```auto
error: collision between `/nix/store/7axnwdf71d8q3d0654nrkv3gc2mcf9nd-zulu19.30.11-ca-jdk-19.0.1/manifest.nix/nix-support/setup-hook' and `/nix/store/n42p5brprynvp15106j1ymvsjbhly27x-cmake-3.24.3/manifest.nix/nix-support/setup-hook'

```

Is there a way to fix this? (I am using flox `0.1.0-r372-0.0.10-r190`)

Thanks

---

<div class="post-metadata">

**Author:** ![mkenigs](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/mkenigs/32/520_2.png) [@mkenigs](https://discourse.flox.dev/u/mkenigs)\
**Post date:** [February 24, 2023, 3:34pm UTC](https://discourse.flox.dev/t/how-to-solve-a-collision-error-when-installing-some-packages/673/2 "2023-02-24T15:34:12Z")

</div>

Hi thanks for flagging! That’s a bug. Will let you know once we have a workaround or fix

---

<div class="post-metadata">

**Author:** ![mkenigs](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/mkenigs/32/520_2.png) [@mkenigs](https://discourse.flox.dev/u/mkenigs)\
**Post date:** [March 3, 2023, 6:40pm UTC](https://discourse.flox.dev/t/how-to-solve-a-collision-error-when-installing-some-packages/673/3 "2023-03-03T18:40:57Z")

</div>

This is fixed in `flox-prelease`, version `0.1.0-r393-0.0.10-r200`. If using the prerelease is still hitting the collision, try creating an environment from scratch and then installing both packages

---

<div class="post-metadata">

**Author:** ![etorreborre](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/etorreborre/32/428_2.png) [@etorreborre](https://discourse.flox.dev/u/etorreborre)\
**Post date:** [March 4, 2023, 11:47am UTC](https://discourse.flox.dev/t/how-to-solve-a-collision-error-when-installing-some-packages/673/4 "2023-03-04T11:47:06Z")

</div>

It all works now (without even having to recreate the environment). Thanks!
