ฉันพยายามติดตั้ง php5-dev:
sudo apt-get install php5-dev
แต่ฉันได้รับข้อผิดพลาดนี้:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
postgresql-contrib-9.3 : Depends: postgresql-9.3 (= 9.3.9-0ubuntu0.14.04) but 9.3.5-0ubuntu0.14.04.1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ดังนั้นฉันจึงเรียกใช้คำสั่ง:
sudo apt-get -f install
แต่ฉันได้รับข้อผิดพลาดนี้:
invoke-rc.d: initscript postgresql, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
* Stopping PostgreSQL 9.3 database server
* Insecure directory in $ENV{PATH} while running with -T switch at /usr/bin/pg_ctlcluster line 255.
Insecure directory in $ENV{PATH} while running with -T switch at /usr/bin/pg_ctlcluster line 264.
(does not shutdown gracefully, now stopping immediately)
[fail]
invoke-rc.d: initscript postgresql, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/postgresql-9.3_9.3.9-0ubuntu0.14.04_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/postgresql-9.3_9.3.9-0ubuntu0.14.04_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
การกำหนดค่าของฉัน:
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
ฉันไม่มีความคิดในการแก้ไขปัญหานี้ ... ใครสามารถช่วยฉันได้บ้าง