Skip to content

Instantly share code, notes, and snippets.

@tarky
Created November 12, 2014 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarky/b0d154333bb37443f187 to your computer and use it in GitHub Desktop.
Save tarky/b0d154333bb37443f187 to your computer and use it in GitHub Desktop.
Error of install postgresql-client
[2014-11-12T13:02:52+00:00] ERROR: package[postgresql-client-9.3] (postgresql::client line 31) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '100'
---- Begin output of apt-get -q -y install postgresql-client-9.3=9.3.5-0ubuntu0.14.04.1 ----
STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libpq5 postgresql-client-common
Suggested packages:
postgresql-9.3 postgresql-doc-9.3
The following NEW packages will be installed:
libpq5 postgresql-client-9.3 postgresql-client-common
0 upgraded, 3 newly installed, 0 to remove and 5 not upgraded.
Need to get 888 kB of archives.
After this operation, 3,232 kB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libpq5 amd64 9.3.5-0ubuntu0.14.04.1
Could not resolve 'us.archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main libpq5 amd64 9.3.5-0ubuntu0.14.04.1
Could not resolve 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ trusty/main postgresql-client-common all 154
Could not resolve 'archive.ubuntu.com'
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main postgresql-client-9.3 amd64 9.3.5-0ubuntu0.14.04.1
Could not resolve 'archive.ubuntu.com'
STDERR: E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/postgresql-9.3/libpq5_9.3.5-0ubuntu0.14.04.1_amd64.deb Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/postgresql-common/postgresql-client-common_154_all.deb Could not resolve 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/postgresql-9.3/postgresql-client-9.3_9.3.5-0ubuntu0.14.04.1_amd64.deb Could not resolve 'archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
---- End output of apt-get -q -y install postgresql-client-9.3=9.3.5-0ubuntu0.14.04.1 ----
@changkuang
Copy link

Try running "sudo apt-get update" first. It might be that postgresql packaging repo information is out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment