Author Topic: Unable to install zentyal-squid  (Read 2346 times)

octavio.goncalves

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Unable to install zentyal-squid
« 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

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Unable to install zentyal-squid
« Reply #1 on: December 19, 2019, 05:08:48 pm »
 :)

Try this:

Code: [Select]
sudo dpkg --configure  -D 777 zentyal-squid

Or, if you removed the package:

Code: [Select]
sudo dpkg --install -D 777 /var/cache/apt/archives/zentyal-squid_6.1.1_all.deb

Paste here the output.

Cheers!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

octavio.goncalves

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Unable to install zentyal-squid
« Reply #2 on: December 19, 2019, 08:03:13 pm »
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

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Unable to install zentyal-squid
« Reply #3 on: December 20, 2019, 12:50:57 pm »
 :)

This is the post-installation script:

Code: [Select]
#!/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

Code: [Select]
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:

Code: [Select]
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!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

octavio.goncalves

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Unable to install zentyal-squid
« Reply #4 on: December 20, 2019, 01:02:45 pm »
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!

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Unable to install zentyal-squid
« Reply #5 on: December 20, 2019, 02:05:31 pm »
 :)

I would try to remove all trace of squid in the system, purge APT and reinstall.

Code: [Select]
sudo apt-get remove zentyal-squid --purge && apt-get autoclean && apt-get clean

Check for squid traces in the system:

Code: [Select]
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!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

delriorh

  • Zen Apprentice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Unable to install zentyal-squid
« Reply #6 on: January 19, 2021, 03:12:03 pm »
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