LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2012, 06:10 AM   #1
ft85
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Rep: Reputation: 0
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
 
Old 04-02-2012, 06:12 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Try
Code:
apt-get install apache2
Kind regards
 
1 members found this post helpful.
Old 04-02-2012, 06:13 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
I think the package is called apache2. check "apt-cache search apache"
 
Old 04-02-2012, 06:21 AM   #4
ft85
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
Try
Code:
apt-get install apache2
Kind regards
hi , i have tried with apt-get install apache2 , i still get the error saying
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
 
Old 04-02-2012, 06:23 AM   #5
ft85
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 04-02-2012, 06:37 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Please post the contents of /etc/apt/sources.list.
 
Old 04-02-2012, 11:34 AM   #7
ft85
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
Please post the contents of /etc/apt/sources.list.

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
 
Old 04-02-2012, 05:34 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
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
to your sources.list file (may be choose a mirror more appropriate to your location, mirror list is here), then launch the command
Code:
apt-get update
to update the package database and
Code:
apt-get install apache2
to install Apache.
 
Old 04-03-2012, 03:26 AM   #9
ft85
LQ Newbie
 
Registered: Feb 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
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
to your sources.list file (may be choose a mirror more appropriate to your location, mirror list is here), then launch the command
Code:
apt-get update
to update the package database and
Code:
apt-get install apache2
to install Apache.

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.
 
Old 04-03-2012, 07:16 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
May it be possible that your network is not up and running, since it can't resolve two totally different hostnames?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] E: Unable to locate package nova-comm E: Unable to locate package python-psycopq2 mint12 Linux - Virtualization and Cloud 2 01-05-2012 01:07 PM
[SOLVED] E: Unable to locate package nova-comm mint12 Linux Mint 1 01-05-2012 08:07 AM
Unable to locate package VSFTP LoneWolf69 Linux - Newbie 2 08-22-2011 05:58 PM
[SOLVED] E: Unable to locate package lamis0 Ubuntu 4 03-27-2011 07:33 AM
Apache Compile - 6.3. Building and installing PHP4 help - Unable to locate your libmc llee Linux - Software 5 05-16-2003 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration