I have gone through the above steps provided in this article and unfortunately it was not successful. Errors are below
[root@localhost debs]# ./generate_debian_package.sh -b v4.3.8 -t manager --packages-branch v4.3.8 --sources /test/wazuh-4.3.8/ -a amd64 -s /tmp -r myrev
Sending build context to Docker daemon 9.216kB
Step 1/12 : FROM debian:7
---> 10fcec6d95c4
Step 2/12 : ENV DEBIAN_FRONTEND noninteractive
---> Using cache
---> 99ef1d3733f8
Step 3/12 : RUN echo "deb
http://archive.debian.org/debian/ wheezy contrib main non-free" > /etc/apt/sources.list && echo "deb-src
http://archive.debian.org/debian/ wheezy contrib main non-free" >> /etc/apt/sources.list && apt-get update && apt-get install -y apt-utils && apt-get install -y --force-yes curl gcc make sudo wget expect gnupg perl-base=5.14.2-21+deb7u3 perl libc-bin=2.13-38+deb7u10 libc6=2.13-38+deb7u10 libc6-dev build-essential cdbs devscripts equivs automake autoconf libtool libaudit-dev selinux-basics libdb5.1=5.1.29-5 libdb5.1-dev libssl1.0.0=1.0.1e-2+deb7u20 procps gawk libsigsegv2
---> Running in dcc6e2da5ea6
Get:1
http://archive.debian.org wheezy Release.gpg [2373 B]
Get:2
http://archive.debian.org wheezy Release [191 kB]
Ign
http://archive.debian.org wheezy Release
Get:3
http://archive.debian.org wheezy/contrib Sources [55.8 kB]
Get:4
http://archive.debian.org wheezy/main Sources [7533 kB]
Get:5
http://archive.debian.org wheezy/non-free Sources [112 kB]
Get:6
http://archive.debian.org wheezy/contrib amd64 Packages [50.5 kB]
Get:7
http://archive.debian.org wheezy/main amd64 Packages [7634 kB]
Get:8
http://archive.debian.org wheezy/non-free amd64 Packages [100 kB]
Fetched 15.7 MB in 4s (3485 kB/s)
Reading package lists...
W: GPG error:
http://archive.debian.org wheezy Release: The following signatures were invalid: KEYEXPIRED 1587841717 KEYEXPIRED 1668891673 KEYEXPIRED 1557241909
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libapt-inst1.5
The following NEW packages will be installed:
apt-utils libapt-inst1.5
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 545 kB of archives.
After this operation, 2049 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libapt-inst1.5 apt-utils
E: There are problems and -y was used without --force-yes
The command '/bin/sh -c echo "deb
http://archive.debian.org/debian/ wheezy contrib main non-free" > /etc/apt/sources.list && echo "deb-src
http://archive.debian.org/debian/ wheezy contrib main non-free" >> /etc/apt/sources.list && apt-get update && apt-get install -y apt-utils && apt-get install -y --force-yes curl gcc make sudo wget expect gnupg perl-base=5.14.2-21+deb7u3 perl libc-bin=2.13-38+deb7u10 libc6=2.13-38+deb7u10 libc6-dev build-essential cdbs devscripts equivs automake autoconf libtool libaudit-dev selinux-basics libdb5.1=5.1.29-5 libdb5.1-dev libssl1.0.0=1.0.1e-2+deb7u20 procps gawk libsigsegv2' returned a non-zero code: 100
[root@localhost debs]#