E: Sub-process /usr/bin/dpkg returned an error code (1)


Jika mengalami error seperti ini pada sangat melakukan upgrade, maka yang harus dilakukan:

OUTPUT :

Setting up postgresql-9.1 (9.1.4-0ubuntu12.04) …
 * Starting PostgreSQL 9.1 database server
 * The PostgreSQL server failed to start. Please check the log output:
2012-06-12 08:28:08 WIT FATAL:  could not create shared memory segment: Invalid argument
2012-06-12 08:28:08 WIT DETAIL:  Failed system call was shmget(key=5432001, size=39337984, 03600).
2012-06-12 08:28:08 WIT HINT:  This error usually means that PostgreSQL’s request for a shared memory segment exceeded your kernel’s SHMMAX parameter.  You can either reduce the request size or reconfigure the kernel with larger SHMMAX.  To reduce the request size (currently 39337984 bytes), reduce PostgreSQL’s shared memory usage, perhaps by reducing shared_buffers or max_connections.
    If the request size is already small, it’s possible that it is less than your kernel’s SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
    The PostgreSQL documentation contains more information about shared memory configuration.    [fail]
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
Errors were encountered while processing:
 postgresql-9.1

Pada baris terakhir dapat dilihat bahwa error muncul ketika sedang memproses postgresql-9.1, langkah selanjutnya adalah ketikkan perintah berikut :

Sumber : ubuntuforums.org

Iklan
  1. No trackbacks yet.

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: