Updating Mail-in-a-Box to v75 . . .
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), 301 bytes | 301.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?
So I am at a bit of a loss as to why i cannot proceed with v75…
Then…
Upon logging in to the Admin page and running a status check, I get this:
System Status Checks
No reboot is necessary.
Disable New-Version Check
Summary: 568 ✓ OK, 1 Error, 28 ? Warning
System
✓
All system services are running.
✓
SSH disallows password-based login.
There are 6 software packages that can be updated.
show more
✓ Mail-in-a-Box is up to date. You are running version v75.
Hence I am a little confused as the update script didn’t appear run
You can check what changes git sees by running git status in the ~/mailinabox folder. If you’re satisfied you’re not losing anything, run git reset --hard HEAD.
You should rerun the setup (curl -s https://mailinabox.email/setup.sh | sudo bash) after this, as it has not been executed yet.
The reason that the status check reports you’re up2date is because the version check works against the tag of the git repository. Apparently that has been updated to v75 even if not all your files are.
Howdy, thanks for the tip. I just gave that a try and I get the following:
ubuntu@box:~/mailinabox$ git status
fatal: detected dubious ownership in repository at ‘/home/ubuntu/mailinabox’
To add an exception for this directory, call:
ubuntu@box:~/mailinabox$
ubuntu@box:~/mailinabox$
ubuntu@box:~/mailinabox$ sudo git reset --hard HEAD
HEAD is now at b162b96 Version 75 (April 20, 2026)
ubuntu@box:~/mailinabox$
ubuntu@box:~/mailinabox$
ubuntu@box:~/mailinabox$ curl -s https://mailinabox.email/setup.sh | sudo bash
Updating Mail-in-a-Box to v75 . . .
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), 301 bytes | 301.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?
ubuntu@box:~/mailinabox$
Ah, that happens sometimes.
Check the contents of /usr/local/bin/mailinabox If it points to root, first login to root before running the upgrade command. Otherwise, it’ll probably point to your home folder, and you should run the upgrade command as that user.
thanks @KiekerJan
I still have same issue. As its a while since i did a server build and restore from backups, i have decided im going to build a new lightsail box and get it to assume my static IP and restore.