Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
# sudo pecl install apc
downloading APC-3.1.6.tgz ...
Starting to download APC-3.1.6.tgz (-1 bytes)
....done: 3,585 bytes
Could not get contents of package "/tmp/tmpspT8Og/APC-3.1.6.tgz". Invalid tgz file.
Download of "pecl/apc" succeeded, but it is not a valid package archive
Error: cannot download "pecl/APC"
[root@D18634 tmp]# 

What does this error mean? How do I fix it, thank you.

share|improve this question
it looks like it doesn't download the archive correctly. try again later. – Paul Jan 9 '11 at 7:02
Is /tmp (or /) full? Always the first thing to check! – mattdm Jan 9 '11 at 19:48
It is a known bug that has a workaround, as posted on… – Werner May 23 '14 at 8:21

would not be surprised to find that 3k file is an html page. perhaps a 404 or a 503? Also, did you install the pre-requisites? The default CentOS 5.5 requires up-to-date php-pear, php-devel, and httpd-devel before pecl can run and compile apc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.