Update PHP Error
I tried to update PHP, apt-get install php5 and get this error;
WARNING: The following packages cannot be authenticated!
php5-cli php5-mysql php5-curl php5-xmlrpc php5-gd libapache2-mod-php5 php5-common php5
Install these packages without verification [y/N]? y
Err http://security.ubuntu.com/ubuntu/ lucid-security/main php5-cli 5.3.2-1ubuntu4.30
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com/ubuntu/ lucid-security/main php5-mysql 5.3.2-1ubuntu4.30
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com/ubuntu/ lucid-security/main php5-curl 5.3.2-1ubuntu4.30
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com/ubuntu/ lucid-security/main php5-xmlrpc 5.3.2-1ubuntu4.30
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com/ubuntu/ lucid-security/main php5-gd 5.3.2-1ubuntu4.30
404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com/ubuntu/ lucid-security/main libapache2-mod-php5 5.3.2-1ubuntu4.30 404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com/ubuntu/ lucid-security/main php5-common 5.3.2-1ubuntu4.30
404 Not Found [IP: 91.189.91.23 80]]
Err http://security.ubuntu.com/ubuntu/ lucid-security/main php5 5.3.2-1ubuntu4.30
404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-cli5.3.2-1ubuntu4.30i386.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-mysql5.3.2-1ubuntu4.30i386.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-curl5.3.2-1ubuntu4.30i386.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-xmlrpc5.3.2-1ubuntu4.30i386.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-gd5.3.2-1ubuntu4.30i386.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/libapache2-mod-php55.3.2-1ubuntu4.30i386.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php5-common5.3.2-1ubuntu4.30i386.deb 404 Not Found [IP: 91.189.91.23 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php5/php55.3.2-1ubuntu4.30all.deb 404 Not Found [IP: 91.189.91.23 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
1 Reply
Hello,
It appears you are using deprecated repositories.
Ubuntu provides a repository for old releases, called old-releases.ubuntu.com.
To add the old releases to the repository list run the below command:
sudo nano /etc/apt/sources.list
Replace all occurrences of archive.ubuntu.com or security.ubuntu.com with old-releases.ubuntu.com.
try adding the following
deb http://old-releases.ubuntu.com/ubuntu/ lucid main
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid main
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates main
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid-updates main
deb http://old-releases.ubuntu.com/ubuntu/ lucid universe
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://old-releases.ubuntu.com/ubuntu/ lucid-updates universe
deb http://old-releases.ubuntu.com/ubuntu lucid-security main
deb-src http://old-releases.ubuntu.com/ubuntu lucid-security main
deb http://old-releases.ubuntu.com/ubuntu lucid-security universe
deb-src http://old-releases.ubuntu.com/ubuntu lucid-security universe
Also replace/comment out all instances of the $Datacenter.mirror.linode.com
After you added the above run:
apt-get update && apt-get upgrade