# Cannot upgrade to V73

**URL:** <https://discourse.mailinabox.email/t/cannot-upgrade-to-v73/13014>\
**Category:** Help with Setup/Upgrade\
**Created:** [July 17, 2025, 5:21pm UTC](https://discourse.mailinabox.email/t/cannot-upgrade-to-v73/13014 "2025-07-17T17:21:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![terrytokyo](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/t/8c91f0/32.png) [@terrytokyo](https://discourse.mailinabox.email/u/terrytokyo)\
**Post date:** [July 17, 2025, 5:21pm UTC](https://discourse.mailinabox.email/t/cannot-upgrade-to-v73/13014/1 "2025-07-17T17:21:34Z")

</div>

I have attempted to upgrade to v73 today and get an error I am not sure about.

When I try **curl -s [https://mailinabox.email/setup.sh](https://mailinabox.email/setup.sh) | sudo bash** I get:

ubuntu@box:~$ curl -s [https://mailinabox.email/setup.sh](https://mailinabox.email/setup.sh) | sudo bash  
Updating Mail-in-a-Box to v73 . . .  
remote: Enumerating objects: 1, done.  
remote: Counting objects: 100% (1/1), done.  
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0 (from 0)  
Unpacking objects: 100% (1/1), 507 bytes | 507.00 KiB/s, done.  
error: Your local changes to the following files would be overwritten by checkout:  
management/dns\_update.py  
Please commit your changes or stash them before you switch branches.  
Aborting  
Update failed. Did you modify something in /root/mailinabox?

When I try **sudo mailinabox** I get the expected grey on blue messages and then this:

Primary Hostname: [box.xxxxxxx.com](http://box.xxxxxxx.com) (disguised)  
Public IP Address: 5x.6x.1xx.2xx (disguised)  
Private IP Address: 17x.2x.x.1xx (disguised)  
Mail-in-a-Box Version: v72

Updating system packages…  
Installing system packages…  
Initializing system random number generator…  
Firewall is active and enabled on system startup  
Synchronizing state of fail2ban.service with SysV service script with /lib/systemd/systemd-sysv-install.  
Executing: /lib/systemd/systemd-sysv-install enable fail2ban  
Installing nsd (DNS server)…  
Installing Postfix (SMTP server)…  
Installing Dovecot (IMAP server)…  
Installing OpenDKIM/OpenDMARC…  
Installing SpamAssassin…  
Installing Nginx (web server)…  
Installing Roundcube (webmail)…  
Installing Nextcloud (contacts/calendar)…  
Nextcloud is already latest version  
Installing Z-Push (Exchange/ActiveSync server)…  
Installing Mail-in-a-Box system management daemon…  
Installing Mail-in-a-Box system management daemon…  
Installing Munin (system monitoring)…  
updated DNS: OpenDKIM configuration

* * *

Your Mail-in-a-Box is running.

Please log in to the control panel for further instructions at:

[https://box.xxxxxxx.com/admin](https://box.xxxxxxx.com/admin)

If you have a DNS problem put the box’s IP address in the URL  
([https://5x.6x.1xx.2xx/admin](https://5x.6x.1xx.2xx/admin)) but then check the TLS fingerprint:  
xx:xx:xx:xx:xx:xx:xx:xx  
ubuntu@box:~$

I am a bit lost on this… after a reboot, status page still says new version is available

---

<div class="post-metadata">

**Author:** ![KiekerJan](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/kiekerjan/32/2339_2.png) [@KiekerJan](https://discourse.mailinabox.email/u/KiekerJan)\
**Post date:** [July 17, 2025, 6:15pm UTC](https://discourse.mailinabox.email/t/cannot-upgrade-to-v73/13014/2 "2025-07-17T18:15:12Z")

</div>

> [@terrytokyo](#):
>
> error: Your local changes to the following files would be overwritten by checkout:

This message says that something in your installation folder has changed. If you are not aware of any changes, you can just move the folder away. `mv mailinabox mailinabox_backup` and rerun the upgrade / installation command (the one starting with curl).  
If all is well after this you can remove the mailimabox\_backup folder.  
If you’re curious about what’s changed you can do

```auto
cd mailinabox
git diff

```

---

<div class="post-metadata">

**Author:** ![terrytokyo](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/t/8c91f0/32.png) [@terrytokyo](https://discourse.mailinabox.email/u/terrytokyo)\
**Post date:** [July 17, 2025, 9:33pm UTC](https://discourse.mailinabox.email/t/cannot-upgrade-to-v73/13014/3 "2025-07-17T21:33:02Z")

</div>

Thank you for that. I did the mv and re-ran the curl/bash command but still it errors with:

ubuntu@box:~$ curl -s [https://mailinabox.email/setup.sh](https://mailinabox.email/setup.sh) | sudo bash  
Updating Mail-in-a-Box to v73 . . .  
remote: Enumerating objects: 1, done.  
remote: Counting objects: 100% (1/1), done.  
remote: Total 1 (delta 0), reused 1 (delta 0), pack-reused 0 (from 0)  
Unpacking objects: 100% (1/1), 507 bytes | 507.00 KiB/s, done.  
error: Your local changes to the following files would be overwritten by checkout:  
management/dns\_update.py  
Please commit your changes or stash them before you switch branches.  
Aborting  
Update failed. Did you modify something in /root/mailinabox?

Clearly, I had fiddled with dns\_update.py to reduce TTL, however i restored the backup file i took, but still update script fails with error above.

Am I facing a backup and restore action to clean build with v73?

---

<div class="post-metadata">

**Author:** ![andrew](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/andrew/32/1449_2.png) [@andrew](https://discourse.mailinabox.email/u/andrew)\
**Post date:** [July 18, 2025, 1:21am UTC](https://discourse.mailinabox.email/t/cannot-upgrade-to-v73/13014/4 "2025-07-18T01:21:21Z")

</div>

Also, the correct install command (from the instructions) is:

`curl -s https://mailinabox.email/setup.sh | sudo -E bash`

Note the **`-E`** option.

And if you’ve been changing things, some kind of **`git restore`** might clean it up.

---

<div class="post-metadata">

**Author:** ![terrytokyo](https://discourse.mailinabox.email/letter_avatar_proxy/v4/letter/t/8c91f0/32.png) [@terrytokyo](https://discourse.mailinabox.email/u/terrytokyo)\
**Post date:** [July 18, 2025, 9:30am UTC](https://discourse.mailinabox.email/t/cannot-upgrade-to-v73/13014/5 "2025-07-18T09:30:19Z")

</div>

Hmmmm

The link: [https://mailinabox.email/maintenance.html#upgrade](https://mailinabox.email/maintenance.html#upgrade)

shows:

curl -s [https://mailinabox.email/setup.sh](https://mailinabox.email/setup.sh) | sudo bash

The link: [https://mailinabox.email/guide.html](https://mailinabox.email/guide.html)

shows

curl -s [https://mailinabox.email/setup.sh](https://mailinabox.email/setup.sh) | sudo -E bash

NOW it appears to work!! Now I’m upgraded!!

Thank you so much

Terry

---

<div class="post-metadata">

**Author:** ![Amedee](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/amedee/32/2844_2.png) [@Amedee](https://discourse.mailinabox.email/u/Amedee)\
**Post date:** [July 24, 2025, 10:26am UTC](https://discourse.mailinabox.email/t/cannot-upgrade-to-v73/13014/6 "2025-07-24T10:26:36Z")

</div>

> [@terrytokyo](#):
>
> error: Your local changes to the following files would be overwritten by checkout:

This is an error message coming from Git.  
It’s saying that you have local changes in the file `management/dns_update.py`. Did you ever edit that file?

Run the following command:

```bash
(cd ~/mailinabox ; git diff)

```

This will show you all local changes in the `mailinabox` directory. In theory there shouldn’t be any, but clearly there are.

To reset the `mailinabox` directory to the original, run this command:

```bash
(cd ~/mailinabox ; git reset --hard HEAD)

```

Then run the `setup.sh` script as before.

---

<div class="post-metadata">

**Author:** ![system](https://discourse.mailinabox.email/uploads/default/original/2X/4/4d0933d13c456b7e57f296aa6cc344525b6f0c70.png) [@system](https://discourse.mailinabox.email/u/system)\
**Post date:** [July 31, 2025, 11:15am UTC](https://discourse.mailinabox.email/t/cannot-upgrade-to-v73/13014/7 "2025-07-31T11:15:44Z")

</div>

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