Ad Widget

Collapse

Zabbix package missing post-install script to install repo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MarcusVey
    Junior Member
    • May 2025
    • 1

    #1

    Zabbix package missing post-install script to install repo

    I downloaded this package:
    And then I tried to manage it with
    dpkg -i zabbix-release_latest_7.2+ubuntu22.04_all.deb
    But fails to install the repo to /etc/apt/sources.list.d/
    zabbix@zabbix:~$ sudo dpkg -i zabbix-release_latest_7.2+ubuntu22.04_all.deb
    (Reading database ... 212057 files and directories currently installed.)
    Preparing to unpack zabbix-release_latest_7.2+ubuntu22.04_all.deb ...
    Unpacking zabbix-release (1:7.2-1+ubuntu22.04) over (1:7.2-1+ubuntu22.04) ...
    Setting up zabbix-release (1:7.2-1+ubuntu22.04) ...
    zabbix@zabbix:~$ ll /etc/apt/sources.list.d
    total 72
    drwxr-xr-x 2 root root 4096 May 16 17:56 ./
    drwxr-xr-x 8 root root 4096 Jan 8 13:18 ../
    -rw-r--r-- 1 root root 82 Jan 8 13:27 grafana.list
    -rw-r--r-- 1 root root 82 Jan 8 10:29 grafana.list.distUpgrade
    -rw-r--r-- 1 root root 82 Jan 7 14:58 grafana.list.save
    -rw-r--r-- 1 root root 89 Jan 8 13:27 mssql-release.list
    -rw-r--r-- 1 root root 89 Jan 8 10:29 mssql-release.list.distUpgrade
    -rw-r--r-- 1 root root 89 Jan 7 14:58 mssql-release.list.save
    -rw-r--r-- 1 root root 159 Jan 8 13:27 ondrej-ubuntu-nginx-focal.list
    -rw-r--r-- 1 root root 126 Jan 8 10:29 ondrej-ubuntu-nginx-focal.list.distUpgrade
    -rw-r--r-- 1 root root 126 Jan 7 14:58 ondrej-ubuntu-nginx-focal.list.save
    -rw-r--r-- 1 root root 155 Jan 8 13:27 ondrej-ubuntu-php-focal.list
    -rw-r--r-- 1 root root 122 Jan 8 10:29 ondrej-ubuntu-php-focal.list.distUpgrade
    -rw-r--r-- 1 root root 122 Jan 7 14:58 ondrej-ubuntu-php-focal.list.save
    -rw-r--r-- 1 root root 140 Jan 8 13:27 ondrej-ubuntu-php-jammy.list
    -rw-r--r-- 1 root root 93 Jan 8 13:27 pgdg.list
    -rw-r--r-- 1 root root 60 Jan 8 10:29 pgdg.list.distUpgrade
    -rw-r--r-- 1 root root 60 Jan 7 14:58 pgdg.list.save
    So I inspected the package a bit closer

    zabbix@zabbix:~$ dpkg -e zabbix-release_latest_7.2+ubuntu22.04_all.deb /tmp/zabbix_control
    zabbix@zabbix:~$ less /tmp/zabbix_control/postinst
    /tmp/zabbix_control/postinst: No such file or directory
    zabbix@zabbix:~$ cd /tmp/
    zabbix@zabbix:/tmp$ cd zabbix_control/
    zabbix@zabbix:/tmp/zabbix_control$ ll
    total 28
    drwxr-xr-x 2 zabbix zabbix 4096 Dec 9 10:01 ./
    drwxrwxrwt 23 root root 12288 May 16 18:03 ../
    -rw-r--r-- 1 zabbix zabbix 263 Dec 9 10:01 conffiles
    -rw-r--r-- 1 zabbix zabbix 321 Dec 9 10:01 control
    -rw-r--r-- 1 zabbix zabbix 230 Dec 9 10:01 md5sums
    zabbix@zabbix:/tmp/zabbix_control$ cat conffiles
    /etc/apt/sources.list.d/zabbix-release.list
    /etc/apt/sources.list.d/zabbix-tools.list
    /etc/apt/sources.list.d/zabbix-unstable.list
    /etc/apt/sources.list.d/zabbix.list
    /etc/apt/trusted.gpg.d/zabbix-official-repo-apr2024.gpg
    /etc/apt/trusted.gpg.d/zabbix-tools.gpg
    zabbix@zabbix:/tmp/zabbix_control$ cat control
    Package: zabbix-release
    Version: 1:7.2-1+ubuntu22.04
    Architecture: all
    Maintainer: Zabbix Packager <[email protected]>
    Installed-Size: 29
    Section: net
    Priority: extra
    Homepage: http://www.zabbix.com
    Description: Zabbix official repository configuration
    This package provide Zabbix official repository configuration files.
    I can clearly see the conf-files, but there's no post installation script to move them out of the package into their respective locations in /etc/apt/
    Is this normal?

    Either way the install instructions on the website fails since the repo is uninstallable.
    Maybe my package manager is broken in some way and this may be the root cause, please enlighten me if this is the case.

    All I want is to re-install my repo so I can get access to download zabbix-agent2 on this host. (Ubuntu 22.04 LTS Jammy)

    Apologies if I fail to follow some format, procedure or protocol. This is my first post.

    //Marcus
Working...