Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E: Sub-process /usr/bin/dpkg returned an error code (2) #28

Closed
soldoria opened this issue Mar 9, 2017 · 15 comments
Closed

E: Sub-process /usr/bin/dpkg returned an error code (2) #28

soldoria opened this issue Mar 9, 2017 · 15 comments

Comments

@soldoria
Copy link

soldoria commented Mar 9, 2017

Hi,
Can you help me to fix this error while installing packages.

root@admin:/gofaxip# apt install dh-golang dh-systemd git-buildpackage
Reading package lists... Done
Building dependency tree
Reading state information... Done
dh-golang is already the newest version.
git-buildpackage is already the newest version.
dh-systemd is already the newest version.
The following extra packages will be installed:
libmodem-vgetty-perl
The following packages will be upgraded:
libmodem-vgetty-perl
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
Need to get 24.9 kB of archives.
After this operation, 45.1 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.nz.debian.org/debian/ jessie/main libmodem-vgetty-perl all 0.03-2 [24.9 kB]
Fetched 24.9 kB in 0s (29.6 kB/s)
Reading changelogs... Done
(Reading database ... 160016 files and directories currently installed.)
Preparing to unpack .../libmodem-vgetty-perl_0.03-2_all.deb ...
E: Sub-process /usr/bin/dpkg returned an error code (2)

@denzs
Copy link
Member

denzs commented Mar 9, 2017

please try and post the output of:

apt-get update
apt-get upgrade
apt-get -f install

and maybe
dpkg --configure -a

@denzs
Copy link
Member

denzs commented Mar 9, 2017

By the way... the problem has nothing to do with gofax...
Because the desired packages are already installed ;)

dh-golang is already the newest version.
git-buildpackage is already the newest version.
dh-systemd is already the newest version.

@denzs denzs closed this as completed Mar 9, 2017
@soldoria
Copy link
Author

soldoria commented Mar 9, 2017

hi thanks so much for your help.
But when i proceeded on the next command these are the errors i found.

Is this ok? I am using debian jessie

root@admin:/gofaxip# git-buildpackage
gbp:error: upstream/1.0 is not a valid treeish
root@admin:/gofaxip# curl http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add -
bash: curl: command not found
gpg: no valid OpenPGP data found.

@denzs
Copy link
Member

denzs commented Mar 9, 2017

That means you are missing curl...
apt-get install curl
my advice is, use the already build binary packages from:
https://github.com/gonicus/gofaxip/releases

@soldoria
Copy link
Author

soldoria commented Mar 9, 2017

you are so great i will try it, and post here whatever happens.

Thanks so much :)

@denzs
Copy link
Member

denzs commented Mar 9, 2017

You are welcome :)

@soldoria
Copy link
Author

Hi Denz,

I got my GofaxIP seems running. i also configured it on SIP gateway as well.
sudo systemctl start freeswitch
sudo systemctl start gofaxip
sudo systemctl restart hylafax

But i am not sure how will i test and look for the logs for it. I am not sure what to do next.
I am very pioneer on this fax ip set up and coding.
Would you help me?

@soldoria
Copy link
Author

ACME 3820 as my SIP gateway - configured Freeswitch as a session agent
Connectivity - good - i can do Option ping for both interface vice versa.

When i tired to do packet capture from the SIP gateway i am getting Internal server error, How will i know that the fax is working good? how will i do debug on freeswitch? any troubleshooting tips should i used?

The last code or command i am now was on starting the freeswitch,gofaxip,hylafax

What to do next?

@denzs
Copy link
Member

denzs commented Mar 17, 2017

Hi Soldoria,

On Debian Jessie the logs of freeswitch, gofax.ip and hylafax can be viewed using journalctl:

journalctl -u gofaxip.service 
journalctl -u freeswitch.service 
journalctl -u hylafax.service

For further information on troubleshooting your SIP communication have a look at:
https://freeswitch.org/confluence/display/FREESWITCH/Troubleshooting+Debugging

Your next steps depend on what you want to do with gofax.ip respectively with your faxserver...

When gofax.ip is configured properly and freeswitch is getting calls/faxes from your SIP gateway it is up to you to configure hylafax according to your needs.

A good entry point would be writing your own FaxDispatch script for dispatching incoming faxes for example...

Please understand we cant provide a detailed instruction on how to setup hylafax because that is beyond the scope of this project.

But you can find plenty of information about that on the internet or alternatively ask professional consultants (like us ;) for support.

For example see http://hylafax.sourceforge.net/howto/ for a detailed introduction of hylafax.

@soldoria
Copy link
Author

Hi Denz

I am having an error in registering my sip gateway on freeswitch:
2017-03-20 09:31:39.423931 [NOTICE] sofia_reg.c:448 Registering default
2017-03-20 09:31:42.423880 [ERR] sofia_reg.c:2447 default Failed Registration with status Service Unavailable [ 503]. failure #59
2017-03-20 09:31:42.423880 [WARNING] sofia_reg.c:505 default Failed Registration [503], setting retry to 30 sec onds.

@denzs
Copy link
Member

denzs commented Mar 21, 2017

Hi Soldoria,
it is not possible to solve a problem with just 3 lines of CLI..
You have to give more details.. what do you want to do and what have you done til now?
And please tell me what you already did to narrow down the issue by yourself..

@soldoria
Copy link
Author

soldoria commented Apr 3, 2017

the freeswitch/gofaxip/hylafax fax status are now active and running but still no fax or inbound/outbound traffic traced only Option ping.

freeswitch@admin> sofia status
Name Type Data State

                  fax       profile          sip:mod_sofia@172.x.x.x:5060      RUNNING (0)
         fax::default       gateway                sip:not-used@172.x.x.x      NOREG

=================================================================================================
1 profile 0 aliases

and when i tried to open the zoiper softphone, the extension no longer registering. but before the freeswitch alone i got it registered, but when the gofaxip were installed i no longer regsiter the zoiper.

maybe i missed something or doing it wrong:

zoiper softphone ERROR:
SIP 405 - METHOD NOT ALLOWED
account 1001@172.x.x.x

@MiguelangelUbuntu
Copy link

miguelangel@miguelangel-Latitude-E5420:~$ sudo apt install fdupes
[sudo] contraseña para miguelangel:
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes adicionales:
libpcre2-32-0
Se instalarán los siguientes paquetes NUEVOS:
fdupes libpcre2-32-0
0 actualizados, 2 nuevos se instalarán, 0 para eliminar y 6 no actualizados.
66 no instalados del todo o eliminados.
Se necesita descargar 0 B/232 kB de archivos.
Se utilizarán 671 kB de espacio de disco adicional después de esta operación.
¿Desea continuar? [S/n] s
dpkg: error: interés de disparador de fichero duplicado para el fichero /usr/share/glib-2.0/schemas' y el paquete libglib2.0-0:i386'
E: Sub-process /usr/bin/dpkg returned an error code (2)

PORFA ayudenme soy nuevo y no puedo instalar nada porque siempre me aparece esto porfavor no le encuentro solucion @denzs

@luebke-dev
Copy link
Contributor

Hola @MiguelangelUbuntu , lamentablemente aquí sólo podemos darte soporte para GOFaxIP.

@MiguelangelUbuntu
Copy link

Hola @SebastianLuebke mmm bueno muchas gracias igual depronto no saben como puedo resolverlo o algo es que de verdad me cambio a ubuntu 22.04LTS hace dos semanas todo iva bien pero me aparece eso y no puedo actualizar, practicamente no puedo hacer nada no hay alguna manera?

@gonicus gonicus locked and limited conversation to collaborators May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants