LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-21-2006, 02:14 PM   #1
dgapp
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Rep: Reputation: 0
apt-get : couldn't find apache2


Have a new installation of Ubuntu server here. Have my proxy and internet set up properly. However, when I run apt-get install apache2 (or pretty much anything else such as ssh or subversion), it reports E: Couldn't find package apache2. This is very frustrating. I uncommented the universe repositories from sources.list. What am I missing?
 
Old 12-21-2006, 03:02 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Are you using sudo (run as root user)? sudo aptitude update && sudo aptitude install apache2
 
Old 12-21-2006, 03:35 PM   #3
dgapp
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Yep, using sudo...

Here is what I am seeing

$ sudo apt-get install apache2

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package apache2
$
 
Old 12-21-2006, 03:50 PM   #4
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
Try:
Code:
sudo apt-get install apache2-common
 
Old 12-21-2006, 03:55 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Try searching the archives, apt-cache search apache
 
Old 12-21-2006, 04:18 PM   #6
dgapp
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Yeah same problem. I am starting to think it may be a network proxy issue? I have set the environment variable http_proxy to my proxy server. I am able to resolve network names through my DNS, I have an ip address assigned through DHCP.

I am able to download files off the internet with wget.

Is there more that I need to do for apt to function? I thought it was only using http to communicate. Do I need to open any ports on my machine or anything like that? Thanks all for the help
 
Old 12-21-2006, 04:21 PM   #7
dgapp
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
valdez--
"apt-cache search apache" gives me this output

libss10.9.8 - SSL shared libraries

Now that is promising at least. apt-get still does not find it though.
 
Old 12-21-2006, 04:26 PM   #8
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Did you setup your /etc/apt/apt.conf file with a line like
Code:
Acquire::http::Proxy "http://MYDOMAIN\MYNAME:MYPASS@MY.PROXY.COM:MYPORT"
 
Old 12-21-2006, 04:37 PM   #9
dgapp
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Had updated apt.conf earlier, double-checked it...found a slight discrpency between my environ var and what was in apt.conf. Got it working!!! Thanks for everything gang
 
  


Reply



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
Debian unstable - apt-get upgrade broke apache2 GT_Onizuka Debian 3 10-10-2006 06:06 PM
where to find apt-get links? newbieX Linux - Newbie 3 04-29-2005 10:48 AM
apt can't find 2.6 kernels Stan the caddy Debian 4 01-08-2005 03:03 PM
i can't find the file /etc/apt/apt.conf. lsj Linux - Newbie 1 05-21-2004 02:24 AM
where can I find mod_ssl for apache2 VoodooLiu Linux - Networking 4 09-07-2003 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:48 AM.

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
Open Source Consulting | Domain Registration