MQTT not updating from 2.0.11 to 2.0.20 #364

Closed
opened 2025-11-20 04:47:28 -05:00 by saavagebueno · 2 comments
Owner

Originally created by @Hydro-guy on GitHub (Jan 15, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

MQTT

📂 What was the exact command used to execute the script?

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/mqtt.sh)"

📝 Provide a clear and concise description of the issue.

ran update in MQTT console - command completed normally reporting updated successfully. But if you query the version it is 2.0.11 which dates from 2021. current version is 2.0.20 https://mosquitto.org/blog/categories/releases/

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

🔄 Steps to reproduce the issue.

update and check version. MQTT explorer reports "$SYS, broker, version = mosquitto version 2.0.11" or use "mosquitto -h" on LXC console.

Paste the full error output (if available).


/ |/ / __ /_ _/ /
/ /|/ / / / / / / / /
/ / / / /
/ / / / / /
// //_
_// //

✔️ Updated Successfully
root@mqtt:~# mosquitto -h
mosquitto version 2.0.11

mosquitto is an MQTT v5.0/v3.1.1/v3.1 broker.

🖼️ Additional context (optional).

No response

Originally created by @Hydro-guy on GitHub (Jan 15, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? MQTT ### 📂 What was the exact command used to execute the script? bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/mqtt.sh)" ### 📝 Provide a clear and concise description of the issue. ran update in MQTT console - command completed normally reporting updated successfully. But if you query the version it is 2.0.11 which dates from 2021. current version is 2.0.20 https://mosquitto.org/blog/categories/releases/ ### ⚙️ What settings are you using? - [X] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 🔄 Steps to reproduce the issue. update and check version. MQTT explorer reports "$SYS, broker, version = mosquitto version 2.0.11" or use "mosquitto -h" on LXC console. ### ❌ Paste the full error output (if available). __ _______ ____________ / |/ / __ \/_ __/_ __/ / /|_/ / / / / / / / / / / / / /_/ / / / / / /_/ /_/\___\_\/_/ /_/ ✔️ Updated Successfully root@mqtt:~# mosquitto -h mosquitto version 2.0.11 mosquitto is an MQTT v5.0/v3.1.1/v3.1 broker. ### 🖼️ Additional context (optional). _No response_
Author
Owner

@MickLesk commented on GitHub (Jan 15, 2025):

youve never updated the lxc, in meanwhile there are so many fixed.
Run the install manually and check if it works. If not, create an new lxc and import your data

source /etc/os-release
curl -fsSL http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key >/usr/share/keyrings/mosquitto-repo.gpg.key
chmod go+r /usr/share/keyrings/mosquitto-repo.gpg.key
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/mosquitto-repo.gpg.key] http://repo.mosquitto.org/debian ${VERSION_CODENAME} main" >/etc/apt/sources.list.d/mosquitto.list
apt-get update
apt-get -y install mosquitto
apt-get -y install mosquitto-clients
@MickLesk commented on GitHub (Jan 15, 2025): youve never updated the lxc, in meanwhile there are so many fixed. Run the install manually and check if it works. If not, create an new lxc and import your data ```bash source /etc/os-release curl -fsSL http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key >/usr/share/keyrings/mosquitto-repo.gpg.key chmod go+r /usr/share/keyrings/mosquitto-repo.gpg.key echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/mosquitto-repo.gpg.key] http://repo.mosquitto.org/debian ${VERSION_CODENAME} main" >/etc/apt/sources.list.d/mosquitto.list apt-get update apt-get -y install mosquitto apt-get -y install mosquitto-clients ```
Author
Owner

@Hydro-guy commented on GitHub (Jan 15, 2025):

Thank you - got it working. Seems to be a repository problem. If you run apt-get install mosquitto you get "mosquitto is already the newest version (2.0.11-1.2+deb12u1)" I didn't properly understand that the code example was the manual install and ran the following from https://repo.mosquitto.org/debian/README.txt which also worked.

Setup

The Debian repo key is mosquitto-repo.gpg, to add it to your keyring, do the following:
sudo wget -q https://repo.mosquitto.org/debian/mosquitto-repo.gpg -O /etc/apt/keyrings/mosquitto-repo.gpg
To add the repo to your sources.list:
sudo wget -O /etc/apt/sources.list.d/mosquitto-bookworm.list https://repo.mosquitto.org/debian/mosquitto-bookworm.list
apt-get update && apt-get install mosquitto

@Hydro-guy commented on GitHub (Jan 15, 2025): Thank you - got it working. Seems to be a repository problem. If you run apt-get install mosquitto you get "mosquitto is already the newest version (2.0.11-1.2+deb12u1)" I didn't properly understand that the code example was the manual install and ran the following from https://repo.mosquitto.org/debian/README.txt which also worked. ## Setup The Debian repo key is mosquitto-repo.gpg, to add it to your keyring, do the following: sudo wget -q https://repo.mosquitto.org/debian/mosquitto-repo.gpg -O /etc/apt/keyrings/mosquitto-repo.gpg To add the repo to your sources.list: sudo wget -O /etc/apt/sources.list.d/mosquitto-bookworm.list https://repo.mosquitto.org/debian/mosquitto-bookworm.list apt-get update && apt-get install mosquitto
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#364