System status went wrong when update and upgrade ubuntu on SSH terminal

Though normal updates run good but when through SSH terminal updates and upgrade system software, v73 this system status and backup status went wrong. I have previously experienced same thing that i am unable to update directly except what MIAB do itself.

There are 15 software packages that can be updated.
php8.0-apcu (5.1.27-1+ubuntu22.04.1+deb.sury.org+1) and so on

AI Chat discussion said:

:bulb: What’s happening

Your current /root/mailinabox folder is not a full Git clone — it’s a copied snapshot of the code that the installer put there during your initial installation (this is normal for Mail-in-a-Box after setup).

So yes — when I said:

“It looks like this is not a git clone … possibly created during install by copying only some directories.”

That’s true and expected for many installations.
It just means you can’t directly run git pull or use update.sh because that script only exists in the source repo (which you don’t currently have).

:compass: So, what should you do?

You don’t need to “fix” this old install — instead, the correct approach is:

:white_check_mark: Step 1. Replace that folder with a fresh git clone (the full repo)

but this also not helps.

========
anyone can help?

I’m going to ignore the AI chat :wink: and instead ask you what exactly you are trying to solve. What problem do you encounter? You mention status checks and backup. What message is there that indicates a problem?

2 Likes

thank you @KiekerJan
on status check i found this system message

:heavy_multiplication_x: There are 15 software packages that can be updated.

php8.0-apcu (5.1.27-1+ubuntu22.04.1+deb.sury.org+1)
distro-info-data (0.52ubuntu0.11)
libglib2.0-data (2.72.4-0ubuntu2.6)
libglib2.0-bin (2.72.4-0ubuntu2.6)
libglib2.0-0 (2.72.4-0ubuntu2.6)
powermgmt-base (1.36ubuntu0.22.04.1)
duplicity (3.0.6-ppa202511021330~ubuntu22.04.1)
landscape-common (23.02-0ubuntu1~22.04.6)
libmysqlclient21 (8.0.43-0ubuntu0.22.04.2)
mysql-client-core-8.0 (8.0.43-0ubuntu0.22.04.2)
mysql-client-8.0 (8.0.43-0ubuntu0.22.04.2)
snapd (2.71+ubuntu22.04)
sosreport (4.9.2-0ubuntu0~22.04.1)
systemd-hwe-hwdb (249.11.6)
cloud-init (25.2-0ubuntu1~22.04.1)

=======
so when i run this or similar command:

sudo apt-get update && sudo apt-get dist-upgrade

it starts giving error on system check that something went wrong

and after that i tried these also

sudo apt-get autoremove && sudo apt-get autoclean --yes && sudo apt-get check

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

So my objective is to update ubuntu upgrade notices or to update software packages as coming warning in the status check.

What is the output of these commands?

Can you try sudo journalctl -u mailinabox and look at the end of that output?

It looks like you’re hit by this. Follow that topic to see how and when to resolve.

didnt get anything from above post, but i remember it is not about the latest update, i always have problem when updating ubuntu directly on ssh terminal.

I’m not sure what you mean with

You indicated that the apt commands completed successfully.
So where do you encounter problems? What is not working? What are the error messages you get? Without specific errors, like in the journalctl output you provided earlier, there’s not much focus on.