Question

Je suis en train d'installer postgresql dans une boîte, mais je errante pas avoir de chance. J'ai essayé d'approvisionnement avec le chef et Puppet finalement juste ssh'd dans la boîte et ont essayé apt-get install ... le résultat est le même.

Via le chef:

FATAL: Chef::Exceptions::Exec: package[postgresql-client] (postgresql::client line 37) had an error: apt-get -q -y install postgresql-client=8.4.8-0ubuntu0.10.04 returned 100, expected 0

via apt-get

apt-get install postgresql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libpq5 postgresql-8.4 postgresql-client-8.4 postgresql-client-common postgresql-common ssl-cert
Suggested packages:
  oidentd ident-server postgresql-doc-8.4
The following NEW packages will be installed:
  libpq5 postgresql postgresql-8.4 postgresql-client-8.4 postgresql-client-common postgresql-common
  ssl-cert
0 upgraded, 7 newly installed, 0 to remove and 5 not upgraded.
Need to get 4,899kB/4,952kB of archives.
After this operation, 20.6MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libpq5 8.4.8-0ubuntu0.10.04
  404  Not Found [IP: 91.189.92.181 80]
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main postgresql-client-8.4 8.4.8-0ubuntu0.10.04
  404  Not Found [IP: 91.189.92.181 80]
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/main ssl-cert 1.0.23ubuntu2 [10.9kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main postgresql-common 106ubuntu1 [88.2kB]
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main postgresql-8.4 8.4.8-0ubuntu0.10.04
  404  Not Found [IP: 91.189.92.181 80]
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main postgresql 8.4.8-0ubuntu0.10.04
  404  Not Found [IP: 91.189.92.181 80]
Fetched 99.2kB in 1s (91.7kB/s)
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/postgresql-8.4/libpq5_8.4.8-0ubuntu0.10.04_i386.deb  404  Not Found [IP: 91.189.92.181 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/postgresql-8.4/postgresql-client-8.4_8.4.8-0ubuntu0.10.04_i386.deb  404  Not Found [IP: 91.189.92.181 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/postgresql-8.4/postgresql-8.4_8.4.8-0ubuntu0.10.04_i386.deb  404  Not Found [IP: 91.189.92.181 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/p/postgresql-8.4/postgresql_8.4.8-0ubuntu0.10.04_all.deb  404  Not Found [IP: 91.189.92.181 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

expérience Tout le monde tel ou suis-je juste un mannequin? :)

Était-ce utile?

La solution

Lors d'une estimation: Votre index source mises en cache sont dépassées; run

apt-get clean; apt-get update

et puis essayez à nouveau. Une autre possibilité est un serveur proxy (éventuellement transparent) qui est la rupture de la demande, ou même un mauvais miroir. Si vous confirmez un proxy est pas le problème, essayez d'utiliser un miroir différent dans votre /etc/apt/sources.list.

Ce n'est pas vraiment une question PostgreSQL; suggère supprimez la marque.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top