# Trying to update Mautic but get this error

**URL:** https://forum.mautic.org/t/trying-to-update-mautic-but-get-this-error/23912
**Category:** General Discussion
**Created:** [April 27, 2022, 4:23pm UTC](https://forum.mautic.org/t/trying-to-update-mautic-but-get-this-error/23912 "2022-04-27T16:23:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)
#### Post date: [April 27, 2022, 4:23pm UTC](https://forum.mautic.org/t/trying-to-update-mautic-but-get-this-error/23912/1 "2022-04-27T16:23:58Z")

</div>

I am trying to update Mautic from 4.2.1 to 4.2.2 but get this error instead … can anyone explain what it mean and what needed to be done to fix it …

Thank you

```auto
composer update
Loading composer repositories with package information
Updating dependencies
Info from https://repo.packagist.org: #StandWithUkraine
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires mautic/core-lib ^4.0, it is satisfiable by mautic/core-lib[4.0.0-alpha1, ..., 4.x-dev] from composer repo (https://repo.packagist.org) but mautic/core-lib[dev-master] from path repo (app) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.

```

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [April 28, 2022, 2:44pm UTC](https://forum.mautic.org/t/trying-to-update-mautic-but-get-this-error/23912/2 "2022-04-28T14:44:44Z")

</div>

Check this guide to update:

> **[Updating at command line](https://docs.mautic.org/en/setup/how-to-update-mautic/updating-at-command-line)**
>
> . Before you commence updating Mautic, please ensure that you have a tested backup of your Mautic instance. This means that you have downloaded the files and database of your Mautic instance, and you have recreated it in a test environment somewhere...

---

<div class="post-metadata">

### Author: ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)
#### Post date: [April 28, 2022, 5:24pm UTC](https://forum.mautic.org/t/trying-to-update-mautic-but-get-this-error/23912/3 "2022-04-28T17:24:35Z")

</div>

This won’t work … when I try this … this is the result I get

You have Composer updates enabled. This means that you can only update Mautic through the ‘composer update’ command. Read more in the documentation: [How to switch to Composer | Mautic](https://mau.tc/switch-to-composer)

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [April 28, 2022, 5:41pm UTC](https://forum.mautic.org/t/trying-to-update-mautic-but-get-this-error/23912/4 "2022-04-28T17:41:36Z")

</div>

Is this a composer based install?

If it is maybe instructions on this page: [https://www.mautic.org/blog/developer/managing-mautic-with-composer](https://www.mautic.org/blog/developer/managing-mautic-with-composer)

can help (under Update Mautic Core), if not try setting option: composer\_updates to 0 in app/config/local.php and run the update commands from the first link again.

---

<div class="post-metadata">

### Author: ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)
#### Post date: [April 29, 2022, 6:36pm UTC](https://forum.mautic.org/t/trying-to-update-mautic-but-get-this-error/23912/5 "2022-04-29T18:36:30Z")

</div>

Yes as I mentioned about the composer command in my first post … It a composer based installation Mautic
