E: Unable to locate package Apache while installing Apache.
hi every body
am having a big issue installing apache on my linux Debian 6.0.2.1 netinst , whenever i install i get an error below Kindly assist me. apt-get install apache Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package apache |
Try
Code:
apt-get install apache2 |
I think the package is called apache2. check "apt-cache search apache"
|
Quote:
apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package apache2 i don't know why this happens |
after doing apt-get install apache2
am still getting the errors below apt-get install apache2 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package apache2 any help will be much appreciate |
Please post the contents of /etc/apt/sources.list.
|
Quote:
hi below is what i have in sources.list # # deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official amd64 NETINST Binary-1 20120129-00:39]/ squeeze main #deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official amd64 NETINST Binary-1 20120129-00:39]/ squeeze main deb http://security.debian.org/ squeeze/updates main deb-src http://security.debian.org/ squeeze/updates main |
OK, you are missing the main repos in your sources.list. This is why you can't install Apache. Add the line
Code:
deb http://ftp.tu-chemnitz.de/pub/linux/debian/debian/ squeeze main Code:
apt-get update Code:
apt-get install apache2 |
Quote:
hi i have just followed your reply and i add a a new line as you mentioned , but after i do apt-get update , i get the following error apt-get update Err http://ftp.tu-chemnitz.de squeeze Release.gpg Could not resolve 'ftp.tu-chemnitz.de' Err http://ftp.tu-chemnitz.de/pub/linux/debian/debian/ squeeze/main Translation- en Could not resolve 'ftp.tu-chemnitz.de' Err http://ftp.tu-chemnitz.de/pub/linux/debian/debian/ squeeze/main Translation- en_GB Could not resolve 'ftp.tu-chemnitz.de' Err http://security.debian.org squeeze/updates Release.gpg Could not resolve 'security.debian.org' Err http://security.debian.org/ squeeze/updates/main Translation-en Could not resolve 'security.debian.org' Err http://security.debian.org/ squeeze/updates/main Translation-en_GB Could not resolve 'security.debian.org' Reading package lists... Done W: Failed to fetch http://security.debian.org/dists/squ...es/Release.gpg Could not resolve 'security.debian.org' W: Failed to fetch http://security.debian.org/dists/squ...s/main/i18n/Tr anslation-en.gz Could not resolve 'security.debian.org' W: Failed to fetch http://security.debian.org/dists/squ...s/main/i18n/Tr anslation-en_GB.gz Could not resolve 'security.debian.org' W: Failed to fetch http://ftp.tu-chemnitz.de/pub/linux/...an/dists/squee ze/Release.gpg Could not resolve 'ftp.tu-chemnitz.de' W: Failed to fetch http://ftp.tu-chemnitz.de/pub/linux/...an/dists/squee ze/main/i18n/Translation-en.gz Could not resolve 'ftp.tu-chemnitz.de' W: Failed to fetch http://ftp.tu-chemnitz.de/pub/linux/...an/dists/squee ze/main/i18n/Translation-en_GB.gz Could not resolve 'ftp.tu-chemnitz.de' W: Some index files failed to download, they have been ignored, or old ones used instead. |
May it be possible that your network is not up and running, since it can't resolve two totally different hostnames?
|
All times are GMT -5. The time now is 12:18 AM. |