YunoHost-Apps / zabbix_ynh

Zabbix package for YunoHost
https://www.zabbix.com/
GNU General Public License v2.0
5 stars 4 forks source link

zabbix repo doesn’t exist so installer doesn’t work #10

Closed Mrs-Feathers closed 2 years ago

Mrs-Feathers commented 4 years ago

title says it all. installing it gets a 404 error when your script tries to add a repository to apt-get... so it undoes itself.

Mickael-Martin commented 4 years ago

hello, Have you an error ? If not, can you try to get the error with the verbose mode : yunohost app install zabbix --debug

Mrs-Feathers commented 4 years ago
W: The repository 'http://ppa.launchpad.net/deadsnakes/ppa/ubuntu eoan Release' does not have a Release file.
W: The repository 'http://ppa.launchpad.net/jonathonf/python-3.7/ubuntu eoan Release' does not have a Release file.
E: Failed to fetch http://ppa.launchpad.net/deadsnakes/ppa/ubuntu/dists/eoan/main/binary-amd64/Packages  404  Not Found [IP: 2001:67c:1560:8008::15 80]
E: Failed to fetch http://ppa.launchpad.net/jonathonf/python-3.7/ubuntu/dists/eoan/main/binary-amd64/Packages  404  Not Found [IP: 2001:67c:1560:8008::15 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Mrs-Feathers commented 4 years ago

its possible that yunohost is prefering ipv6 when i only have ipv4 and thats why its failing. but i dont know how to change it. so far only those two repos fail from what i see. but they fail every time. updating anything else is fine. but idk how to fix this issue.

Mickael-Martin commented 4 years ago

This is not the repo of zabbix. Maybe a repo of an other installed app. You can keep this issue open but I cannot help you now. Please wait one or two days.

Mrs-Feathers commented 4 years ago

i know its not an issue with zabbix in particular, but zabbix uses those repos apparently. which is why installing zabbix errors out. being that its a simple thing with repositories and i assume you know more than i do being that you made this script, i thought you'd understand how or even why... and if the repos work just fine for you obviously its on my end and hopefully theres a simple fix like a command to force yunohost to use ipv4.. or maybe i need to flush dns cache or something... which is why i asked. i dont know whats wrong and putting that error in google doesn't really help much.. so i'm not sure what the question i need to ask is.. and so i dont know where else to ask it either.

was simply hoping to get more info. seems like a simple problem with a simple solution.

Mickael-Martin commented 4 years ago

Ok, I think you have upgraded you ubuntu version to 19.10 (eoan) but some ppa repo has no file (package) for this version. Can you make : ls -Rail /etc/apt Have you installed manually another software (outside Yunohost ?)

Mrs-Feathers commented 4 years ago

i fixed it. those two repositories only support LTS distros. anyway, eoan isn’t an LTS… so changed it to bionic. it works now. no idea why that happened… i believe own cloud or one of the other yunohost apps installed the repos since that’s the official repo for Python. but that’s just a guess.

even then idk how it got changed to eaon.

Mrs-Feathers commented 4 years ago

but now i am getting this:

2019-11-29 10:11:21,047: DEBUG - Reading package lists...
2019-11-29 10:11:21,248: DEBUG - Building dependency tree...
2019-11-29 10:11:21,248: DEBUG - Reading state information...
2019-11-29 10:11:21,448: DEBUG - Correcting dependencies... Done
2019-11-29 10:11:21,649: DEBUG - The following packages will be REMOVED:
2019-11-29 10:11:21,649: WARNING - E: Packages need to be removed but remove is disabled.
2019-11-29 10:11:21,650: DEBUG -   zabbix-ynh-deps
2019-11-29 10:11:21,650: WARNING - Unable to install dependencies
2019-11-29 10:11:21,650: DEBUG - 0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
2019-11-29 10:11:21,650: DEBUG - + ynh_die '--message=Unable to install dependencies'
2019-11-29 10:11:21,650: DEBUG - + local legacy_args=mc
2019-11-29 10:11:21,650: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-11-29 10:11:21,650: DEBUG - + declare -Ar args_array
2019-11-29 10:11:21,650: DEBUG - + local message
2019-11-29 10:11:21,651: DEBUG - + local ret_code
2019-11-29 10:11:21,651: DEBUG - + ynh_handle_getopts_args '--message=Unable to install dependencies'
2019-11-29 10:11:21,651: DEBUG - + set +x
2019-11-29 10:11:21,651: DEBUG - + echo 'Unable to install dependencies'
2019-11-29 10:11:21,651: DEBUG - + exit 1
2019-11-29 10:11:21,651: DEBUG - + ynh_exit_properly
2019-11-29 10:11:21,651: DEBUG - + local exit_code=1
2019-11-29 10:11:21,651: DEBUG - + '[' 1 -eq 0 ']'
2019-11-29 10:11:21,651: DEBUG - + trap '' EXIT
2019-11-29 10:11:21,652: DEBUG - + set +eu
2019-11-29 10:11:21,652: DEBUG - + sleep 0.5
2019-11-29 10:11:22,153: DEBUG - + ynh_print_err '--message=!!\n  zabbix'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-11-29 10:11:22,153: WARNING - [ERR] !!
2019-11-29 10:11:22,153: DEBUG - + local legacy_args=m
2019-11-29 10:11:22,153: WARNING -   zabbix's script has encountered an error. Its execution was cancelled.
2019-11-29 10:11:22,154: DEBUG - + args_array=([m]=message=)
2019-11-29 10:11:22,154: WARNING - !!
2019-11-29 10:11:22,154: DEBUG - + declare -Ar args_array
2019-11-29 10:11:22,154: WARNING - 
2019-11-29 10:11:22,154: DEBUG - + local message
2019-11-29 10:11:22,154: DEBUG - + ynh_handle_getopts_args '--message=!!\n  zabbix'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-11-29 10:11:22,155: DEBUG - + set +x
2019-11-29 10:11:22,155: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n  zabbix'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-11-29 10:11:22,155: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n  zabbix'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-11-29 10:11:22,155: DEBUG - + '[' api == cli ']'
2019-11-29 10:11:22,155: DEBUG - + type -t ynh_clean_setup
2019-11-29 10:11:22,155: DEBUG - + ynh_die
2019-11-29 10:11:22,155: DEBUG - + local legacy_args=mc
2019-11-29 10:11:22,155: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-11-29 10:11:22,156: DEBUG - + declare -Ar args_array
2019-11-29 10:11:22,156: DEBUG - + local message
2019-11-29 10:11:22,156: DEBUG - + local ret_code
2019-11-29 10:11:22,156: DEBUG - + ynh_handle_getopts_args
2019-11-29 10:11:22,156: DEBUG - + set +x
2019-11-29 10:11:22,156: DEBUG - + echo ''
2019-11-29 10:11:22,156: DEBUG - + exit 1
Mickael-Martin commented 4 years ago

Do you upgrade zabbix or install it ?

Mrs-Feathers commented 4 years ago

only install.not upgrade.

Mickael-Martin commented 4 years ago

can you post lsb_release -aplease ? and simulate the dependencies installation like this apt -s install libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 php7.0 php-bcmath php7.0-bcmath ttf-dejavu-core php7.0-bcmath patch smistrip unzip wget fping libcap2-bin libiksemel3 libopenipmi0 libpam-cap libsnmp-base libsnmp30 snmptrapd snmpd libjs-prototype jq

Mrs-Feathers commented 4 years ago
root@cecropia:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 9.11 (stretch)
Release:    9.11
Codename:   stretch

and here is the simulation:

root@cecropia:~# apt -s install libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap liblua5.2-0 php7.0 php-bcmath php7.0-bcmath ttf-dejavu-core php7.0-bcmath patch smistrip unzip wget fping libcap2-bin libiksemel3 libopenipmi0 libpam-cap libsnmp-base libsnmp30 snmptrapd snmpd libjs-prototype jq
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libapr1 is already the newest version (1.5.2-5).
libapr1 set to manually installed.
libaprutil1 is already the newest version (1.5.4-3).
libaprutil1 set to manually installed.
libaprutil1-dbd-sqlite3 is already the newest version (1.5.4-3).
libaprutil1-dbd-sqlite3 set to manually installed.
libaprutil1-ldap is already the newest version (1.5.4-3).
libaprutil1-ldap set to manually installed.
ttf-dejavu-core is already the newest version (2.37-1).
ttf-dejavu-core set to manually installed.
jq is already the newest version (1.5+dfsg-1.3).
jq set to manually installed.
libcap2-bin is already the newest version (1:2.25-1).
libcap2-bin set to manually installed.
libpam-cap is already the newest version (1:2.25-1).
libpam-cap set to manually installed.
liblua5.2-0 is already the newest version (5.2.4-1.1+b2).
liblua5.2-0 set to manually installed.
patch is already the newest version (2.7.5-1+deb9u2).
patch set to manually installed.
unzip is already the newest version (6.0-21+deb9u2).
wget is already the newest version (1.18-5+deb9u3).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.0-bcmath : Depends: php7.0-common (= 7.0.33-0+deb9u6) but 7.0.33-13+0~20191128.24+debian9~1.gbp832d85 is to be installed
E: Unable to correct problems, you have held broken packages.
root@cecropia:~# 
Mickael-Martin commented 4 years ago

ok, can you make yunohost app list -i and ls -Rail /etc/apt please. I think another app create conflict. yunohost app list -i too please.

Mickael-Martin commented 4 years ago

any update ?

Mrs-Feathers commented 4 years ago

yunohost app list -i - https://pastebin.com/N32Sb0wJ

ls -Rail /etc/apt - https://pastebin.com/C419z2uw

Mrs-Feathers commented 4 years ago

sorry. had a lot to do.. new job.. new minecraft version to update my servers to... and a lot else to keep my community afloat enough to well, need something like zabbix in the first place.

Mickael-Martin commented 4 years ago

Have you tried the last version ?

Rafi594 commented 3 years ago

Seems another problem with Sury repo https://github.com/YunoHost/issues/issues/1563