frp
Posts: 5
Joined: Sat Feb 09, 2013 3:00 pm

Apache installation

Sat Feb 09, 2013 3:21 pm

Hello,

I tried to install Apache server (like here : https://www.youtube.com/watch?v=4OyJVDhoN0A), but there are some errors :

Code: Select all

$ sudo apt-get install apache2
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 apache2 : Depends: apache2-mpm-worker (= 2.2.22-12) but it is not going to be installed or
                    apache2-mpm-prefork (= 2.2.22-12) but it is not going to be installed or
                    apache2-mpm-event (= 2.2.22-12) but it is not going to be installed or
                    apache2-mpm-itk (= 2.2.22-12) but it is not going to be installed
           Depends: apache2.2-common (= 2.2.22-12) but it is not going to be installed
 libc6 : Depends: libgcc1 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Does anyone have some idea ? :P

Thanks !

User avatar
pluggy
Posts: 3635
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Apache installation

Sat Feb 09, 2013 4:56 pm

The Pi repositories are updated so often I would always run

Code: Select all

sudo apt-get update
Before trying to install anything. Any other platform/distro doesn't matter so much.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

frp
Posts: 5
Joined: Sat Feb 09, 2013 3:00 pm

Re: Apache installation

Sun Feb 10, 2013 12:54 pm

Thanks for your answer. I tried

Code: Select all

sudo apt-get update
but the same errors occur when I want to install Apache.

RobHenry
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK

Re: Apache installation

Sun Feb 10, 2013 1:06 pm

Did you try
apt-get -f install
as suggested?

I got apache going yesterday using the great walk through by penguin tutor here:

http://www.penguintutor.com/linux/raspberrypi-webserver

I then installed joomla and wordpress and both work perfectly.

frp
Posts: 5
Joined: Sat Feb 09, 2013 3:00 pm

Re: Apache installation

Sun Feb 10, 2013 2:14 pm

I tried

Code: Select all

apt-get -f install
and I saw an error regarding libgcc1...

I found a solution in another post (http://raspberrypi.org/phpBB//viewtopic ... 13#p198713).

Thanks !

User avatar
Jim JKla
Posts: 2218
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK

Re: Apache installation

Sun Feb 10, 2013 2:53 pm

That's a dead link frp
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Apache installation

Sun Feb 10, 2013 2:55 pm

frp wrote:I tried

Code: Select all

apt-get -f install
and I saw an error regarding libgcc1...

I found a solution in another post (http://raspberrypi.org/phpBB//viewtopic ... 13#p198713).

Thanks !
correct link is this
http://raspberrypi.org/phpBB3/viewtopic ... 13#p198713
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: Apache installation

Mon Feb 11, 2013 12:17 am

I have released a tool that installs Apache2 and Wordpress cleanly and automatically on Raspbian if anyone is struggling with this.

http://www.raspberrypi.org/phpBB3/viewt ... 66&t=31408

Return to “Beginners”