Results 1 to 4 of 4

Thread: PostgreSQL error, any idea what i could try?

  1. #1
    Join Date
    2013-Mar
    Posts
    25

    PostgreSQL error, any idea what i could try?

    Every time i try to do hardly anything on this chrooted distro, postgresql throws this error...

    Code:
    root@localhost:~# /etc/init.d/postgresql start
    [....] Starting PostgreSQL 9.1 database server: main[....] The PostgreSQL server failed to start. Please check the log output: 2013-06-14 04:36:20 UTC LOG: could not create IPv4 socket: Permission denied 2013-06-14 04:36:20 UTC WARNING: could not create listen socket for "localhost" 2013-06-14 04:36:20 UTC FATAL: could[FAILcreate any TCP/IP sockets ... failed!
     failed!
    root@localhost:~#
    and this is what happens when i try to apt-get upgrade/apt-get install anything:

    Code:
    root@localhost:~# apt-get upgrade
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be upgraded:
      dbus dbus-x11 fern-wifi-cracker libdbus-1-3 powersploit
    5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    2 not fully installed or removed.
    Need to get 1402 kB of archives.
    After this operation, 548 kB of additional disk space will be used.
    Do you want to continue [Y/n]? 
    Get:1 http://security.kali.org/kali-security/ kali/updates/main libdbus-1-3 armhf 1.6.8-1+deb7u1 [144 kB]
    Get:2 http://security.kali.org/kali-security/ kali/updates/main dbus armhf 1.6.8-1+deb7u1 [328 kB]
    Get:3 http://http.kali.org/kali/ kali/main fern-wifi-cracker all 1.90-1kali0 [725 kB]
    Get:4 http://security.kali.org/kali-security/ kali/updates/main dbus-x11 armhf 1.6.8-1+deb7u1 [57.7 kB]
    Get:5 http://http.kali.org/kali/ kali/main powersploit all 0.1+git20130611-1kali0 [147 kB]
    Fetched 1402 kB in 36s (38.6 kB/s)                                             
    (Reading database ... 177798 files and directories currently installed.)
    Preparing to replace libdbus-1-3:armhf 1.6.8-1 (using .../libdbus-1-3_1.6.8-1+deb7u1_armhf.deb) ...
    Unpacking replacement libdbus-1-3:armhf ...
    Preparing to replace dbus 1.6.8-1 (using .../dbus_1.6.8-1+deb7u1_armhf.deb) ...
    Unpacking replacement dbus ...
    Preparing to replace dbus-x11 1.6.8-1 (using .../dbus-x11_1.6.8-1+deb7u1_armhf.deb) ...
    Unpacking replacement dbus-x11 ...
    Preparing to replace fern-wifi-cracker 1.86-1kali0 (using .../fern-wifi-cracker_1.90-1kali0_all.deb) ...
    Unpacking replacement fern-wifi-cracker ...
    Preparing to replace powersploit 0.1-1kali0 (using .../powersploit_0.1+git20130611-1kali0_all.deb) ...
    Unpacking replacement powersploit ...
    Processing triggers for man-db ...
    fopen: Permission denied
    Setting up postgresql-9.1 (9.1.9-1) ...
    [....] Starting PostgreSQL 9.1 database server: main[....] The PostgreSQL server failed to start. Please check the log output: 2013-06-14 04:42:01 UTC LOG: could not create IPv4 socket: Permission denied 2013-06-14 04:42:01 UTC WARNING: could not create listen socket for "localhost" 2013-06-14 04:42:01 UTC FATAL: could[FAILcreate any TCP/IP sockets ... failed!
     failed!
    invoke-rc.d: initscript postgresql, action "start" failed.
    dpkg: error processing postgresql-9.1 (--configure):
     subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of postgresql:
     postgresql depends on postgresql-9.1; however:
      Package postgresql-9.1 is not configured yet.
    
    dpkg: error processing postgresql (--configure):
     dependency problems - leaving unconfigured
    Setting up libdbus-1-3:armhf (1.6.8-1+deb7u1) ...
    Setting up dbus (1.6.8-1+deb7u1) ...
    Failed to open connection to "system" message bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
    [ ok ] Starting system message bus: dbus.
    Setting up dbus-x11 (1.6.8-1+deb7u1) ...
    Setting up fern-wifi-cracker (1.90-1kali0) ...
    Setting up powersploit (0.1+git20130611-1kali0) ...
    Errors were encountered while processing:
     postgresql-9.1
     postgresql
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    root@localhost:~#
    its starting to get on my nerves and i dont really know where else to ask. Any thoughts?

  2. #2
    hello

    apt-get -f install

    dpkg --configure -a


    dpkg --help
    apt-get --help

  3. #3
    Join Date
    2013-Mar
    Posts
    25
    Quote Originally Posted by hausoo View Post
    hello

    apt-get -f install

    dpkg --configure -a


    dpkg --help
    apt-get --help
    Both commands still throw postgresql errors. The same ones

  4. #4
    Join Date
    2014-Jul
    Posts
    1
    Postgresql won't work on a chroot environment without whitelisting it.

    first you need to edit update-rc.d and add postgresql to whitelist and comment in blacklist.

    nano /usr/sbin/update-rc.d

    #Blacklist#
    postgresql disabled (comment)
    #Whitelist#
    postgresql enabled (add)

    --then you need to grand permisson of postgresql--
    usermod -a -G aid_inet postgres
    -or-
    usermod -a -G android_inet postgres
    --if it's running on the top of android--
    Sorry about the bad english I'am Brazilian

Similar Threads

  1. postgresql-14 error
    By kopepoc in forum NetHunter General Questions
    Replies: 6
    Last Post: 2022-11-29, 05:55
  2. PostgreSQL 9.1 Error. Help!!!
    By Nycey in forum General Archive
    Replies: 0
    Last Post: 2014-08-11, 13:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •