Ubuntu upgraded OS 24.04 LTS fix sources.list zabbix 6.0.35

Os was upgrade to 24.04 from 20.04 with zabbix, apache and php (se other post)

zabbix minor version upgrade is not present after sudo apt update -y, why?

There could be several reasons why a Zabbix minor version upgrade is not showing up after running `sudo apt update -y`. Here are some possible explanations and steps to troubleshoot:

1. Repository configuration:
   - Ensure that the correct Zabbix repository for your version is added to your system's sources list.
   - Check `/etc/apt/sources.list.d/zabbix.list` for the correct repository entry.

2. Repository caching:
   - Sometimes, the package cache might not update immediately. Try running `sudo apt update` again or wait for a while before checking.

3. Release cycle:
   - Zabbix might not have released a minor update yet. Check the official Zabbix release notes to see if there's actually a new minor version available.

4. Distribution's package delay:
   - Your distribution might be behind in packaging the latest Zabbix version. This delay can vary depending on the distribution.

5. Version pinning:
   - Check if there's any version pinning in place that might prevent upgrades. Look in `/etc/apt/preferences` and `/etc/apt/preferences.d/`.

6. Mirror synchronization:
   - The mirror you're using might not have synced the latest packages yet. Try changing to a different mirror.

7. Network issues:
   - Ensure you have a stable internet connection to reach the repositories.

8. Proxy settings:
   - If you're behind a proxy, make sure it's correctly configured for apt.

To further troubleshoot:

1. Run `apt-cache policy zabbix-server-mysql` (or whatever Zabbix package you're using) to see available versions.
2. Check `/var/log/apt/term.log` for any errors during the update process.
3. Try `sudo apt-get update --allow-releaseinfo-change` to force a thorough update.
4. If all else fails, you might need to manually add the repository for the newer version or consider a manual upgrade.

Remember, minor version upgrades are typically backwards compatible, but it's always a good practice to check the release notes and backup your system before upgrading.

We have repos access

Check source list

sudo cat /etc/apt/sources.list.d/zabbix.list.distUpgrade
# Zabbix main repository
# deb https://repo.zabbix.com/zabbix/6.0/ubuntu noble main # disabled on upgrade to noble
# deb-src https://repo.zabbix.com/zabbix/6.0/ubuntu noble main # disabled on upgrade to noble

# Zabbix unstable repository
# deb https://repo.zabbix.com/zabbix/5.5/ubuntu jammy main
# deb-src https://repo.zabbix.com/zabbix/5.5/ubuntu jammy main

And there it is

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:        24.04
Codename:       noble

Release Notes for Zabbix 6.0.35

How to fix this….

Incremental snap before

How to update Zabbix repository for your version to your system’s sources list ubuntu

To update the Zabbix repository for your Ubuntu system, follow these steps:

1. First, determine which version of Zabbix you want to install. Let's assume you want the latest LTS version (as of 2023, it's 6.0).

2. Open a terminal.

3. Remove any old Zabbix repositories (if they exist):

   ```
   sudo rm /etc/apt/sources.list.d/zabbix.list*
   ```

4. Install the repository configuration package:

   ```
   wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4+ubuntu$(lsb_release -rs)_all.deb
   sudo dpkg -i zabbix-release_6.0-4+ubuntu$(lsb_release -rs)_all.deb
   ```

   This command downloads and installs the repository configuration package for Zabbix 6.0 that matches your Ubuntu version.

5. Update the package list:

   ```
   sudo apt update
   ```

6. If you want to verify that the repository was added correctly, you can check the contents of the file:

   ```
   cat /etc/apt/sources.list.d/zabbix.list
   ```

   You should see lines similar to:
   ```
   deb https://repo.zabbix.com/zabbix/6.0/ubuntu focal main
   deb-src https://repo.zabbix.com/zabbix/6.0/ubuntu focal main
   ```

7. Now you can install or upgrade Zabbix packages. For example:

   ```
   sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
   ```

   Or if you're upgrading:

   ```
   sudo apt upgrade
   ```

Remember to replace "6.0" in the commands above with the actual version you want if it's different.

Also, always check the official Zabbix documentation for the most up-to-date instructions, as repository URLs and package names may change over time.

After updating the repository, you should be able to see and install the latest minor versions of Zabbix available for your chosen major version.

Ok, lets try to fix this

sudo rm /etc/apt/sources.list.d/zabbix.list*

# from ai start
# wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4+ubuntu$(lsb_release -rs)_all.deb
# sudo dpkg -i zabbix-release_6.0-4+ubuntu$(lsb_release -rs)_all.deb
# from ai end

# I whent to zabbix download and select 6, Ubuntu (arm64), 24.04 apache etc
wget https://repo.zabbix.com/zabbix/6.0/ubuntu-arm64/pool/main/z/zabbix-release/zabbix-release_latest+ubuntu24.04_all.deb
sudo dpkg -i zabbix-release_latest+ubuntu24.04_all.deb

Yes to new version

Check the version

Check with update?

It was not arm64 then

dpkg --print-architecture
amd64

Lets do it again

sudo rm /etc/apt/sources.list.d/zabbix.list*
# get amd version or ubuntu

wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest+ubuntu24.04_all.deb
sudo dpkg -i zabbix-release_latest+ubuntu24.04_all.deb
#  Y or I  : install the package maintainer's version

cat /etc/apt/sources.list.d/zabbix.list
sudo apt update

Now it seems better

Lets check them

Perfect lets upgrade

sudo apt upgrade -y
# and restart vm

Great

Scroll to Top