Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-21-2006, 02:14 PM
|
#1
|
LQ Newbie
Registered: Dec 2006
Posts: 6
Rep:
|
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?
|
|
|
12-21-2006, 03:02 PM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
Are you using sudo (run as root user)? sudo aptitude update && sudo aptitude install apache2
|
|
|
12-21-2006, 03:35 PM
|
#3
|
LQ Newbie
Registered: Dec 2006
Posts: 6
Original Poster
Rep:
|
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
$
|
|
|
12-21-2006, 03:50 PM
|
#4
|
Senior Member
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,465
|
Try:
Code:
sudo apt-get install apache2-common
|
|
|
12-21-2006, 03:55 PM
|
#5
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
Try searching the archives, apt-cache search apache
|
|
|
12-21-2006, 04:18 PM
|
#6
|
LQ Newbie
Registered: Dec 2006
Posts: 6
Original Poster
Rep:
|
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
|
|
|
12-21-2006, 04:21 PM
|
#7
|
LQ Newbie
Registered: Dec 2006
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
12-21-2006, 04:26 PM
|
#8
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
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"
|
|
|
12-21-2006, 04:37 PM
|
#9
|
LQ Newbie
Registered: Dec 2006
Posts: 6
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|