I installed Postgresql 9.3 for Ubuntu 14.04 trusty using this command:
sudo apt-get install postgresql-client-9.3 libpq-dev
I wanted to remove postgresql and instead install 9.2 so I ran this command
sudo apt-get install postgresql-client-9.3 libpq-dev
This yields the error:
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
Running sudo -i
,echo $PATH
yields this output:
/opt/ree/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Regression
I've tried this command to purge it from existence but I keep getting the same error:
sudo dpkg --purge postgresql-9.3
I've looked on some forums but I haven't found the error messages that I am receiving.
I've also looked into said directores and /usr/local/sbin
, /usr/sbin
and /sbin
exist.
What could be the problem?
sudo -i
, enter your username's password, doecho $PATH
, then doexit
. Post the output from the commandecho $PATH
to your question. – Alaa Ali Aug 11 '14 at 21:42ldconfig
andstart-stop-daemon
. – Pro Backup Aug 12 '14 at 11:28