From 6b06a5f48e6dcdddcd4f742b4a68a3913118fae2 Mon Sep 17 00:00:00 2001 From: Andriy Utkin Date: Mon, 8 Jan 2024 23:10:10 +0000 Subject: [PATCH 1/2] Fetch correct GPG key for MySQL repo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem manifestation: --2024-01-08 22:32:27-- https://dl.bluecherrydvr.com/sources.list.d/bluecherry-bullseye-unstable.list Resolving dl.bluecherrydvr.com (dl.bluecherrydvr.com)... 142.93.72.20 Connecting to dl.bluecherrydvr.com (dl.bluecherrydvr.com)|142.93.72.20|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 231 [application/octet-stream] Saving to: ‘/etc/apt/sources.list.d/bluecherry-buster.list’ /etc/apt/sources.list.d/bluecherry-buster.list 100%[==================================================================================================== 2024-01-08 22:32:27 (515 KB/s) - ‘/etc/apt/sources.list.d/bluecherry-buster.list’ saved [231/231] Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease Hit:3 http://deb.debian.org/debian-security bullseye-security InRelease Get:4 http://repo.mysql.com/apt/debian bullseye InRelease [17.9 kB] Get:5 http://unstable.bluecherrydvr.com bullseye InRelease [4671 B] Err:4 http://repo.mysql.com/apt/debian bullseye InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C Get:6 http://unstable.bluecherrydvr.com bullseye/main amd64 Packages [2269 B] Reading package lists... Done W: GPG error: http://repo.mysql.com/apt/debian bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PU E: The repository 'http://repo.mysql.com/apt/debian bullseye InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. --- installer/v3.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/installer/v3.sh b/installer/v3.sh index 904a4b26..aa54b99f 100644 --- a/installer/v3.sh +++ b/installer/v3.sh @@ -186,9 +186,8 @@ buster_install() apt-get -y install gnupg sudo wget apt-get -y install python3-pip pip3 install --user --upgrade pip - wget -q https://repo.mysql.com/RPM-GPG-KEY-mysql-2022 -O- | apt-key add - + wget -q https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 -O- | apt-key add - wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add - -# wget -q http://repo.mysql.com/RPM-GPG-KEY-mysql -O- | apt-key add - wget --no-check-certificate --output-document=/etc/apt/sources.list.d/bluecherry-buster.list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-buster-unstable.list apt-get -y update apt-get -y install mysql-server bluecherry @@ -199,11 +198,9 @@ bullseye_install() { apt-get -y update apt-get -y install gnupg sudo sudo python3-distutils wget -# wget -q http://repo.mysql.com/RPM-GPG-KEY-mysql -O- | apt-key add - - wget -q https://repo.mysql.com/RPM-GPG-KEY-mysql-2022 -O- | apt-key add - + wget -q https://repo.mysql.com/RPM-GPG-KEY-mysql-2023 -O- | apt-key add - wget -q https://dl.bluecherrydvr.com/key/bluecherry.asc -O- | apt-key add - -# wget -q http://repo.mysql.com/RPM-GPG-KEY-mysql -O- | apt-key add - - wget --no-check-certificate --output-document=/etc/apt/sources.list.d/bluecherry-buster.list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-bullseye-unstable.list + wget --no-check-certificate --output-document=/etc/apt/sources.list.d/bluecherry-bullseye.list https://dl.bluecherrydvr.com/sources.list.d/bluecherry-bullseye-unstable.list apt-get -y update apt-get -y install mariadb-server bluecherry # apt-get install mariadb-server From 0dc44e32adeee26eac8d907ed7ea5431f072236e Mon Sep 17 00:00:00 2001 From: Andriy Utkin Date: Tue, 9 Jan 2024 00:39:01 +0000 Subject: [PATCH 2/2] Add cron to deb package deps Debian 11 doesn't have cron installed by default (at least in LXD/Incus images), so invocation to crontab command failed during postinstall. --- debian/control.in | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/control.in b/debian/control.in index 029ccced..cbbb6fdc 100644 --- a/debian/control.in +++ b/debian/control.in @@ -26,6 +26,7 @@ Depends: ${shlibs:Depends}, ssl-cert, ucf, curl, sysstat, v4l-utils, vainfo, i965-va-driver, + cron, # python3-pip, #focal php-sqlite3, php-gd, php-curl, php-mysql #jammy php-sqlite3, php-gd, php-curl, php-mysql