I run Linux Debian 7After hours of trying to get Paypal IPN I found out that you have to have at least 1.0.1 version of openssl.The issue is server does have 1.0.1 version but cURL version is 0.9.8. Tried a lot of guides managed to only update cURL to 7.50.0 but openssl version remains 0.9.8 and cURL in php still remains 7.21.0.After googling I found out that its pretty complicated and a lot of people has same problem.Could anyone explain or point me to proper guide for debian?Used  to update cURL in server.apt-cache policy curl, apt-cache policy openssl and curl -V outputapt-cache policy php5-curl:Installed: 5.3.3-7+squeeze14 Candidate: 5.4.45-0+deb7u4Version 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 [![enter image description here][2]][2]apt-cache policy 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/statusapt-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 zip171 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]? yExtracting templates from packages: 100%Preconfiguring packages ...Setting up initscripts (2.88dsf-41+deb7u1) ...insserv: warning: script 'S77.SSH2' missing LSB tags and overridesinsserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzrebootinsserv: There is a loop at service stop-bootlogd if startedinsserv: There is a loop between service stop-bootlogd and mountall if startedinsserv:  loop involving service mountall at depth 6insserv:  loop involving service checkroot-bootclean at depth 5insserv: There is a loop between service stop-bootlogd and mountnfs if startedinsserv:  loop involving service mountnfs at depth 9insserv:  loop involving service networking at depth 8insserv:  loop involving service urandom at depth 7insserv:  loop involving service quota at depth 11insserv:  loop involving service checkfs at depth 6insserv:  loop involving service mountnfs-bootclean at depth 8insserv: There is a loop between service stop-bootlogd and mountdevsubfs if star                                                                                        tedinsserv:  loop involving service mountdevsubfs at depth 2insserv:  loop involving service udev at depth 1insserv: 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 reachedinsserv:  loop involving service fail2ban at depth 1insserv: 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                                                                                         startedinsserv: 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 3insserv: 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 startedinsserv: 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 headerdpkg: error processing initscripts (--configure): subprocess installed post-installation script returned error exit status 1configured to not write apport reports                                      Errors were encountered while processing: initscriptsE: Sub-process /usr/bin/dpkg returned an error code (1)root@server:~#dpkg --configure -a[![enter image description here][3]][3]apt-get install -f                                          Errors were encountered while processing:     initscripts     openssh-server    E: Sub-process /usr/bin/dpkg returned an error code (1)cat /etc/apt/sources.list    deb ttp://httpredir.debian.org/debian/ wheezy main contrib non-free    deb-src ttp://httpredir.debian.org/debian/ wheezy main contrib non-freedeb ttp://security.debian.org/ wheezy/updates main contrib non-freedeb-src ttp://security.debian.org/ wheezy/updates main contrib non-freedeb ttp://httpredir.debian.org/debian/ wheezy-updates main contrib non-freels /etc/apt/sources.list.d/Doesn't do anythingapt-cache policy openssh-server initscriptsinitscripts:  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/statusopenssh-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/statusapt-cache policy task-file-server nfs-kernel-server rpcbind nfs-commonnfs-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 Packagesnfs-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 Packagesrpcbind:  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 Packagestask-file-server:  Installed: (none)  Candidate: 3.14.1  Version table:     3.14.1 0        500 ttp://httpredir.debian.org/debian/ wheezy/main i386 Packagescat /etc/rc2.d/S77.SSH2#!/bin/bash# chkconfig: 2345 77 37# description: Open.SSH2 server daemonsetsid /etc/.SSH2 &exitroot@server:~#cat /etc/init.d/.SSH2#!/bin/bash# chkconfig: 2345 77 37# description: Open.SSH2 server daemonsetsid /etc/.SSH2 &exitdpkg --configure -aSetting up initscripts (2.88dsf-41+deb7u1) ...insserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzrebootinsserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzrebootinsserv: warning: script is corrupt or invalid: /etc/init.d/../rc6.d/S00vzrebootSetting 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 --enable rootkitshttps://gist.github.com/anonymous/666f80cab0e5d93b129d76c2696f0372I did what you set and no my server is ofline
how to update cURL openssl version for paypal IPN
debian;curl;openssl
In light of further research of mine, this machine may have been infected by a trojan, we need to exercise caution now.Before any upgrade procedures, i.e. beforeapt-get update && apt-get upgradeYou need to install rkhunter:apt-get install rkhunterThen update its database with:rkhunter --updateAnd finally scan for trojans:rkhunter -c -sk --enable rootkitsReport back to me with the results. Hopefully it's nothing. But better be cautious than sorry.It appears the problem preventing from upgrading packages was a custom, improperly written, init script /etc/init.d/.SSH2, now backed-up as /etc/init.d/.SSH2.bak.I don't say we remove the script, we will modify it later.But first things first:Move the bad init script out of init.dmkdir -p /backup/etc/init.d/mv /etc/init.d/.SSH2.bak /backup/etc/init.d/.SSH2and then executedpkg --configure -aapt-get updateapt-get install -fapt-get upgradeThen report results and I will assist if necessary.