Your server is currently running:
✔️ PostgreSQL 14
✔️ TimescaleDB (installed specifically for your OS + PG version)
✔️ Mosquitto setup
✔️ Custom pg_hba.conf
✔️ Tuned postgresql.conf (via timescaledb-tune)
If you run:
do-release-upgrade
This will:
❌ Upgrade the entire OS
❌ Upgrade PostgreSQL major version
❌ Break TimescaleDB (it is very version-specific)
❌ Reset configs
❌ Stop your database and broker
❌ Cause downtime
❌ Risk data corruption
❌ Break your IoT project environment
This is not a safe or simple upgrade.
Ubuntu major release upgrades often break production servers.
🧠 Important Understanding:
You selected Ubuntu 22.04 LTS — that means:
✔️ Security patches continue until 2027
✔️ It is stable for servers
✔️ TimescaleDB & PostgreSQL versions align
✔️ Perfect for long-term production
Server OS should remain stable for years, unless you rebuild fresh.
IoT platforms rely on stable versions — not bleeding-edge OS upgrades.
🟢 SO, THE CORRECT ACTION RIGHT NOW:
Ignore this message.
You can safely continue without upgrading.
Later, if you ever want Ubuntu 24.04 LTS:
- You start a fresh VPS
- Migrate database and configs
- Install cleanly
But never upgrade a running production environment in-place.
✔️ SUMMARY
| Upgrade Type | Safe? | Why |
|---|---|---|
apt update | ✔️ Yes | Security updates |
apt upgrade | ✔️ Yes | Safe package updates |
do-release-upgrade | ❌ No | Major OS upgrade → breaks PostgreSQL & Timescale |
✅ 1. Your system is fully updated
You ran:
sudo apt update && sudo apt upgrade -y
The result:
0 upgraded, 0 newly installed, 0 to remove
1 not upgraded (snapd)
This means:
✔️ All normal packages are updated
✔️ No OS upgrade happened
✔️ No PostgreSQL or Timescale changes
✔️ No risk to your server
✔️ You are safe to continue installation
🧩 2. Why snapd is “kept back”
snapd is the backend for Snap packages.
It is not used by:
- PostgreSQL
- TimescaleDB
- Mosquitto
- Node.js
- Your IoT dashboard
And the “kept back” message simply means:
Snapd wants a dependency that apt will not install automatically.
You don’t need snapd at all.
It is completely safe to ignore this.
🔥 3. DO NOT run any of these commands:
❌ apt full-upgrade
❌ apt dist-upgrade
❌ do-release-upgrade
These can upgrade:
- Linux kernel
- Systemd
- PostgreSQL version
- TimescaleDB compatibility
- Critical library dependencies
Which can break your working server.