Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: octavio.goncalves on December 19, 2019, 01:52:41 pm
-
Hi all,
Can you please give me some help with this?
When i try to install HTTP Proxy in Zentyal 6.1, the installation returns the following error:
Can't use an undefined value as an ARRAY reference at /usr/share/perl5/EBox/Module/Base.pm line 285.
dpkg: error processing zentyal-squid (--configure):
installed zentyal-squid package post-installation script subprocess returned error exit status 2
Thanks
Regards,
Octávio
-
:)
Try this:
sudo dpkg --configure -D 777 zentyal-squid
Or, if you removed the package:
sudo dpkg --install -D 777 /var/cache/apt/archives/zentyal-squid_6.1.1_all.deb
Paste here the output.
Cheers!
-
Hi!
The output:
sudo dpkg --configure -D 777 zentyal-squid
D000001: ensure_diversions: new, (re)loading
D000001: process queue pkg zentyal-squid:all queue.len 0 progress 1, try 1
D000040: checking dependencies of zentyal-squid:all (- <none>)
D000400: checking group ...
D000400: checking possibility -> zentyal-core
D000400: checking non-provided pkg zentyal-core:all
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> zentyal-core
D000400: checking non-provided pkg zentyal-core:all
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> zentyal-firewall
D000400: checking non-provided pkg zentyal-firewall:all
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> squid
D000400: checking non-provided pkg squid:amd64
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> dansguardian
D000400: checking non-provided pkg dansguardian:amd64
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> adduser
D000400: checking non-provided pkg adduser:all
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> zentyal-core
D000400: checking non-provided pkg zentyal-core:all
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000040: ok 2 msgs >><<
D000040: checking Breaks
A instalar zentyal-squid (6.1.1) ...
D000002: fork/exec /var/lib/dpkg/info/zentyal-squid.postinst ( configure )
Can't use an undefined value as an ARRAY reference at /usr/share/perl5/EBox/Module/Base.pm line 285.
dpkg: erro ao processar o pacote zentyal-squid (--configure):
installed zentyal-squid package post-installation script subprocess returned error exit status 2
D000001: ensure_diversions: same, skipping
Regards,
Octávio
-
:)
This is the post-installation script:
#!/bin/bash
set -e
case "$1" in
configure)
# initial setup
/usr/share/zentyal/initial-setup --no-restart squid $2
# restart module
zs squid restart || true
dpkg-trigger --no-await zentyal-core
;;
esac
exit 0
The code of /usr/share/zentyal/initial-setup
my $restart = 1;
if ($ARGV[0] eq '--no-restart') {
$restart = 0;
shift (@ARGV);
}
my ($modname, $version) = @ARGV;
...
So, the script expects two parameters: the name of the module and the version (in this case: 6.1.1). Try this:
sudo /usr/share/zentyal/initial-setup --no-restart squid 6.1.1
sudo zs squid restart || true
sudo dpkg-trigger --no-await zentyal-core
Cheers!
-
Hi Zen!
Unfortunately your solution did not solve the problem.
Output:
sudo / usr / share / zentyal / initial-setup --no-restart squid 6.1.1
Can't call method "redis" on undefined value at / usr / share / zentyal / initial-setup line 49.
Any more ideas?
Regards!
-
:)
I would try to remove all trace of squid in the system, purge APT and reinstall.
sudo apt-get remove zentyal-squid --purge && apt-get autoclean && apt-get clean
Check for squid traces in the system:
sudo dpkg -l | egrep '(squid|zentyal-squid)'
sudo find /var/lib/dpkg/info/ -type f -name "*squid*"
You shouldn't find anything with those commands.
Afterward, try to install one more time as usual.
Cheers!
-
I have the same problem, it keeps giving me an error when I want to install it, also clean with all the apt methods. Could anyone fix it? Thanks