Closed Stevehans closed 3 weeks ago
Hey @Stevehans we are adding mongodb repo , so please check if that is setting properly to you or not. https://github.com/FreePBX/sng_freepbx_debian_install/blob/master/sng_freepbx_debian_install.sh#L217
Can't be located:
root@freepbx17:/var/log/pbx# apt search mongodb-org
Sorting... Done
Full Text Search... Done
root@freepbx17:/var/log/pbx#
"apt install mongodb-org" what does this gives to you ?
also see what do you see in the log file, that may have some more information.
Can't be located
root@freepbx17:/var/log/pbx# apt install mongodb-org
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mongodb-org
root@freepbx17:/var/log/pbx#
root@freepbx17:/var/log/pbx# grep mongo *.log
freepbx17-install-2024.06.10-16.19.08.log:Ign:3 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 InRelease
freepbx17-install-2024.06.10-16.19.08.log:Get:4 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 Release [1,991 B]
freepbx17-install-2024.06.10-16.19.08.log:Get:6 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 Release.gpg [866 B]
freepbx17-install-2024.06.10-16.19.08.log:Repository: 'deb [arch=i386] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main'
freepbx17-install-2024.06.10-16.19.08.log:Archive for codename: bookworm/mongodb-org/7.0 components: main
freepbx17-install-2024.06.10-16.19.08.log:More info: http://repo.mongodb.org/apt/debian
freepbx17-install-2024.06.10-16.19.08.log:Adding deb entry to /etc/apt/sources.list.d/archive_uri-http_repo_mongodb_org_apt_debian-bookworm.list
freepbx17-install-2024.06.10-16.19.08.log:Adding disabled deb-src entry to /etc/apt/sources.list.d/archive_uri-http_repo_mongodb_org_apt_debian-bookworm.list
freepbx17-install-2024.06.10-16.19.08.log:Ign:1 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 InRelease
freepbx17-install-2024.06.10-16.19.08.log:Hit:5 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 Release
freepbx17-install-2024.06.10-16.19.08.log:Ign:4 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 InRelease
freepbx17-install-2024.06.10-16.19.08.log:Hit:5 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 Release
freepbx17-install-2024.06.10-16.19.08.log: rsyslog-mysql | rsyslog-pgsql rsyslog-mongodb rsyslog-doc rsyslog-openssl
freepbx17-install-2024.06.10-16.19.08.log:2024-06-10 16:25:50 - Installing mongodb....
freepbx17-install-2024.06.10-16.19.08.log:E: Unable to locate package mongodb-org
Here's the entry from the list file
deb [arch=i386] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main
# deb-src [arch=i386] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main
looks like mongodb somehow not installing on your system, can you please try to check if the repo is good or not?
Here's the issue, are you guys only running this on Raspberry Pis :) :-
root@freepbx17:/var/log/pbx# apt update
Hit:1 http://ftp.debian.org/debian stable InRelease
Hit:2 https://deb.debian.org/debian bookworm InRelease
Hit:3 https://packages.sury.org/php bookworm InRelease
Ign:4 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 InRelease
Hit:5 http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 Release
Hit:6 http://deb.freepbx.org/freepbx17-prod bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://deb.freepbx.org/freepbx17-prod bookworm InRelease' doesn't support architecture 'i386'
root@freepbx17:/var/log/pbx#
Ah, just seen the amd64 image!
Don't use i386 images when you mean to use AMD64....
We are using like below to put arch. wget -qO - https://pgp.mongodb.com/server-7.0.asc | gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/mongodb-server-7.0.gpg >> "$log" 2>&1 add-apt-repository -y -S "deb [ arch=${arch} ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" >> "$log" 2>&1
What do you see output of "arch=`dpkg --print-architecture`" ?
Closed, my mistake, I'd used an i386 image not AMD64
FreePBX Version
FreePBX 17
Issue Description
Ran the installer, but it ended with unable to locate package mongodb-org
Will investigate why, but this was a clean install of the DVD image from debian.org followed by a wget of the script and execution
Operating Environment
Debian 12.5 DVD image Latest v1.3 of installer script
Relevant log output