como atualizar a versão cURL openssl para o paypal IPN

1

Eu corro Linux Debian 7

Depois de horas tentando obter o Paypal IPN, descobri que você precisa ter pelo menos a versão 1.0.1 do openssl. O problema é que o servidor tem versão 1.0.1, mas a versão cURL é 0.9.8. Tentei um monte de guias conseguiu atualizar apenas cURL para 7.50.0 mas a versão openssl permanece 0.9.8 e cURL em php ainda permanece 7.21.0.

Após googlar, descobri que é bastante complicado e muitas pessoas têm o mesmo problema.

Alguém poderia me explicar ou me indicar um guia adequado para o debian? Usado para atualizar o cURL no servidor. apt-cache policy curl , apt-cache policy openssl e curl -V output

apt-cache policy php5-curl:
Installed: 5.3.3-7+squeeze14 Candidate: 5.4.45-0+deb7u4
Version table: 5.4.45-0+deb7u4 0 500 security.debian.org wheezy/updates/main i386 Packages 5.4.45-0+deb7u2 0 500 httpredir.debian.org/debian wheezy/main i386 Packages *** 5.3.3-7+squeeze14 0 100 /var/lib/dpkg/status 

[! [insira a descrição da imagem aqui] [2]] [2]

política do apt-cache php5-curl

 php5-curl:
      Installed: 5.3.3-7+squeeze14
      Candidate: 5.4.45-0+deb7u4
      Version table:
         5.4.45-0+deb7u4 0
            500 ttp://security.debian.org/ wheezy/updates/main i386 Packages
         5.4.45-0+deb7u2 0
        500 ttp://httpredir.debian.org/debian/ wheezy/main i386 Packages
 *** 5.3.3-7+squeeze14 0
        100 /var/lib/dpkg/status

apt-get upgrade

  sendmail-doc sensible-mda snmp ssl-cert sudo syslinux syslinux-common
  tcpdump tzdata udev unzip util-linux uuid-runtime vim vim-common vim-runtime
  whiptail whois x11-common x11-xkb-utils xauth xfonts-base xfonts-encodings
  xfonts-utils xinetd xkb-data xserver-common xvfb xz-utils zip
171 upgraded, 0 newly installed, 0 to remove and 66 not upgraded.
5 not fully installed or removed.
Need to get 0 B/91.0 MB of archives.
After this operation, 4820 kB disk space will be freed.
Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up initscripts (2.88dsf-41+deb7u1) ...
insserv: warning: script 'S77.SSH2' missing LSB tags and overrides
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
insserv: There is a loop at service stop-bootlogd if started
insserv: There is a loop between service stop-bootlogd and mountall if started
insserv:  loop involving service mountall at depth 6
insserv:  loop involving service checkroot-bootclean at depth 5
insserv: There is a loop between service stop-bootlogd and mountnfs if started
insserv:  loop involving service mountnfs at depth 9
insserv:  loop involving service networking at depth 8
insserv:  loop involving service urandom at depth 7
insserv:  loop involving service quota at depth 11
insserv:  loop involving service checkfs at depth 6
insserv:  loop involving service mountnfs-bootclean at depth 8
insserv: There is a loop between service stop-bootlogd and mountdevsubfs if star                                                                                        ted
insserv:  loop involving service mountdevsubfs at depth 2
insserv:  loop involving service udev at depth 1
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                                                                                                              y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv:  loop involving service fail2ban at depth 1
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: There is a loop between service stop-bootlogd and mountnfs-bootclean if                                                                                         started
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv:  loop involving service bootlogd at depth 3
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: There is a loop at service .SSH2 if started
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: Starting .SSH2 depends on stop-bootlogd and therefore on system facilit                                                                                        y '$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: error processing initscripts (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 initscripts
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@server:~#

dpkg --configure -a [! [insira a descrição da imagem aqui] [3]] [3]

apt-get install -f                                           Erros foram encontrados durante o processamento:      initscripts      openssh-server     E: Subprocesso / usr / bin / dpkg retornou um código de erro (1) cat /etc/apt/sources.list     deb ttp: //httpredir.debian.org/debian/ wheezy main contrib não-livre     deb-src ttp: //httpredir.debian.org/debian/ wheezy principal contrib não-livre

deb ttp://security.debian.org/ wheezy/updates main contrib non-free
deb-src ttp://security.debian.org/ wheezy/updates main contrib non-free

deb ttp://httpredir.debian.org/debian/ wheezy-updates main contrib non-free

ls /etc/apt/sources.list.d /

Doesn't do anything

apt-cache política openssh-server initscripts

initscripts:
  Installed: 2.88dsf-41+deb7u1
  Candidate: 2.88dsf-41+deb7u1
  Version table:
 *** 2.88dsf-41+deb7u1 0
        500 ttp://httpredir.debian.org/debian/ wheezy/main i386 Packages
        100 /var/lib/dpkg/status
openssh-server:
  Installed: 1:6.0p1-4+deb7u4
  Candidate: 1:6.0p1-4+deb7u4
  Version table:
 *** 1:6.0p1-4+deb7u4 0
        500 ttp://httpredir.debian.org/debian/ wheezy/main i386 Packages
        500 ttp://security.debian.org/ wheezy/updates/main i386 Packages
        100 /var/lib/dpkg/status

política do apt-cache task-file-server nfs-kernel-servidor rpcbind nfs-common

nfs-common:
  Installed: (none)
  Candidate: 1:1.2.6-4
  Version table:
     1:1.2.6-4 0
        500 ttp://httpredir.debian.org/debian/ wheezy/main i386 Packages
nfs-kernel-server:
  Installed: (none)
  Candidate: 1:1.2.6-4
  Version table:
     1:1.2.6-4 0
        500 ttp://httpredir.debian.org/debian/ wheezy/main i386 Packages
rpcbind:
  Installed: (none)
  Candidate: 0.2.0-8+deb7u1
  Version table:
     0.2.0-8+deb7u1 0
        500 ttp://httpredir.debian.org/debian/ wheezy/main i386 Packages
        500 ttp://security.debian.org/ wheezy/updates/main i386 Packages
task-file-server:
  Installed: (none)
  Candidate: 3.14.1
  Version table:
     3.14.1 0
        500 ttp://httpredir.debian.org/debian/ wheezy/main i386 Packages

cat /etc/rc2.d/S77.SSH2

#!/bin/bash
# chkconfig: 2345 77 37
# description: Open.SSH2 server daemon
setsid /etc/.SSH2 &
exit
root@server:~#

cat /etc/init.d/.SSH2

#!/bin/bash
# chkconfig: 2345 77 37
# description: Open.SSH2 server daemon
setsid /etc/.SSH2 &
exit

dpkg --configure -a

Setting up initscripts (2.88dsf-41+deb7u1) ...
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
Setting up openssh-server (1:6.0p1-4+deb7u4) ...
insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzreboot
[ ok ] Restarting OpenBSD Secure Shell server: sshd.

rkhunter -c -sk --encaixáveis rootkits link

Eu fiz o que você definiu e não meu servidor é ofline

    
por Edgaras 26.07.2016 / 13:09

1 resposta

0

À luz de mais pesquisas minhas, esta máquina pode ter sido infectada por um trojan, precisamos ter cautela agora.

Antes de qualquer procedimento de atualização, ou seja, antes

apt-get update && apt-get upgrade

Você precisa instalar o rkhunter :

apt-get install rkhunter

Em seguida, atualize seu banco de dados com:

rkhunter --update

E finalmente verificar trojans:

rkhunter -c -sk --enable rootkits

Responda a mim com os resultados. Espero que não seja nada. Mas é melhor ser cauteloso do que remediar.

Parece que o problema de impedir a atualização de pacotes foi um script de inicialização personalizado, escrito incorretamente /etc/init.d/.SSH2 , agora com backup como /etc/init.d/.SSH2.bak .

Eu não digo que removemos o script, vamos modificá-lo mais tarde.

Mas as primeiras coisas primeiro:

Mova o script de inicialização incorreto para fora de init.d

mkdir -p /backup/etc/init.d/
mv /etc/init.d/.SSH2.bak /backup/etc/init.d/.SSH2

e depois executar

dpkg --configure -a
apt-get update
apt-get install -f
apt-get upgrade

Em seguida, informe os resultados e eu ajudarei, se necessário.

    
por 26.07.2016 / 17:09