How to install gd library for apache without 404 errors

I tried to install gd library on our production server and used the following command:

apt-get install php5-gd

And the above command throw-ed lot of the 404 errors.   As mentioned in many forums I tried to modify my sources.list file located at /etc/apt/ folder.  But still many errors not resolved. So I replaced the file with a working file from one of our other servers.

This file worked for me like a charm. Just replace the content in your sources.list with the below content and run the below 2 commands:
apt-get update

apt-get install php5-gd

#
# deb cdrom:[Ubuntu-Server 8.10 _Intrepid Ibex_ - Release i386 (20081028.1)]/ intrepid main restricted

# deb cdrom:[Ubuntu-Server 8.10 _Intrepid Ibex_ - Release i386 (20081028.1)]/ intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty main restricted
deb-src http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty-updates main restricted
deb-src http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty universe
deb-src http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty universe
deb http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty-updates universe
deb-src http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty multiverse
deb-src http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty multiverse
deb http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty-updates multiverse
deb-src http://ftp.ussg.iu.edu/linux/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ftp.ussg.iu.edu/linux/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://ftp.ussg.iu.edu/linux/ubuntu/ intrepid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu intrepid partner
# deb-src http://archive.canonical.com/ubuntu intrepid partner

deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb http://security.ubuntu.com/ubuntu jaunty-security universe
deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse

# deb http://de.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

No Comments so far

Leave a comment

(required)

(required)




AUTHOR

profileWeb Developer working in advertising agency.

Recent tweets

The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.