/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
Apache install problem
Fra : Ivar Madsen


Dato : 23-01-02 12:57

Jeg har forsøgt at installere Apache på min Debian, som der står på
http://www.linuxguide.dk/debian/webserver.html, når jeg så vil rette
/etc/apache/httpd.conf med vim /etc/apache/httpd.conf så er det en tom
ny fil der bliver oprettet,



| debian:/# apt-get install apache php3 php3-mysql mysql-server
| Reading Package Lists... Done
| Building Dependency Tree... Done
| Sorry, apache is already the newest version.
| Sorry, php3 is already the newest version.
| Sorry, php3-mysql is already the newest version.
| Sorry, mysql-server is already the newest version.
| 0 packages upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
| 1 packages not fully installed or removed.

Den linie lægger vi lige specielt mærke til,,,

| Need to get 0B of archives. After unpacking 0B will be used.
| Setting up apache (1.3.22-6) ...
| awk: cannot open /etc/apache/*.conf (No such file or directory)
| awk: cannot open /etc/apache/*.conf (No such file or directory)
| dpkg: error processing apache (--configure):
| subprocess post-installation script returned error exit status 2
| Errors were encountered while processing:
| apache
| E: Sub-process /usr/bin/dpkg returned an error code (1)
| debian:/#

Jeg nåede ikke at lægge mærke til nogen fejl ved install af Apache, hvad
kan der være gået galt? Jeg har tiderliger haft det til at virke, der
installerte jeg dog ikke mysql-server,,,

--
Ivar Madsen Der med dette indlæg, repræsentere mig selv,
og dem der er enig med mig,,,
http://news.milli.dk med info om news.milli.dk opdateret 1/1
WEB serveren køre nu VirtualHost, og vil blive kraftigt ændret snarest

 
 
Christian Joergensen (23-01-2002)
Kommentar
Fra : Christian Joergensen


Dato : 23-01-02 13:07

Ivar Madsen <news-02-01-02@milli.dk> wrote:

> | 1 packages not fully installed or removed.

Der er åbentbart en pakke der har sat sig fast :(

> | Need to get 0B of archives. After unpacking 0B will be used.
> | Setting up apache (1.3.22-6) ...
> | awk: cannot open /etc/apache/*.conf (No such file or directory)
> | awk: cannot open /etc/apache/*.conf (No such file or directory)

Prøv med en total reinstall af apache:

# apt-get --purge remove apache
# apt-get install apache

'--purge' fjerner også eventuelle konfigurationsfiler.

--
Christian Jørgensen / Use the Source, Luke!
http://www.razor.dk /


Ivar Madsen (23-01-2002)
Kommentar
Fra : Ivar Madsen


Dato : 23-01-02 14:36

On Wed, 23 Jan 2002 13:07:19 +0100, Christian Joergensen
<mail@phpguru.dk> wrote:

>> | 1 packages not fully installed or removed.
>Der er åbentbart en pakke der har sat sig fast :(
>> | Need to get 0B of archives. After unpacking 0B will be used.
>> | Setting up apache (1.3.22-6) ...
>> | awk: cannot open /etc/apache/*.conf (No such file or directory)
>> | awk: cannot open /etc/apache/*.conf (No such file or directory)
>Prøv med en total reinstall af apache:
> # apt-get --purge remove apache
> # apt-get install apache
>'--purge' fjerner også eventuelle konfigurationsfiler.

OK, men det hjalp ikke meget,,,

| debian# apt-get --purge remove apache
| Reading Package Lists... Done
| Building Dependency Tree... Done
| The following packages will be REMOVED:
| apache*
|0 packages upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
|1 packages not fully installed or removed.
| Need to get 0B of archives. After unpacking 791kB will be freed.
| Do you want to continue? [Y/n] y
| (Reading database ... 7831 files and directories currently installed.)
| Removing apache ...
| egrep: /etc/apache/httpd.conf: No such file or directory
| Stopping web server: apacheNo /usr/sbin/apache found running; none killed.
| .
| dpkg - warning: while removing apache, directory `/etc/apache' not empty so not removed.
| Purging configuration files for apache ...
| debian# apt-get install apache
| Reading Package Lists... Done
| Building Dependency Tree... Done
| The following NEW packages will be installed:
| apache
| 0 packages upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
| Need to get 0B/376kB of archives. After unpacking 791kB will be used.
| Selecting previously deselected package apache.
| (Reading database ... 7793 files and directories currently installed.)
| Unpacking apache (from .../apache_1.3.22-6_i386.deb) ...
| Setting up apache (1.3.22-6) ...
| awk: cannot open /etc/apache/*.conf (No such file or directory)
| awk: cannot open /etc/apache/*.conf (No such file or directory)
| dpkg: error processing apache (--configure):
| subprocess post-installation script returned error exit status 2
| Errors were encountered while processing:
| apache
| E: Sub-process /usr/bin/dpkg returned an error code (1)
| debian#

Prøver at tage PHP og MySQL med ud,,,

--
Ivar Madsen Der med dette indlæg, repræsentere mig selv,
og dem der er enig med mig,,,
http://news.milli.dk med info om news.milli.dk opdateret 1/1
WEB serveren køre nu VirtualHost, og vil blive kraftigt ændret snarest

Ivar Madsen (23-01-2002)
Kommentar
Fra : Ivar Madsen


Dato : 23-01-02 14:44

On Wed, 23 Jan 2002 14:36:25 +0100, Ivar Madsen <news-02-01-02@milli.dk>
wrote:

>Prøver at tage PHP og MySQL med ud,,,

Det hjalp ikke, samme fejl, ved install af Apache alene,,,

Min sources.list ser således ud,

|deb http://ftp.se.debian.org/debian stable main contrib non-free
|deb-src http://ftp.se.debian.org/debian stable main contrib non-free
|deb http://ftp.se.debian.org/debian unstable main contrib non-free
|deb-src http://ftp.se.debian.org/debian unstable main contrib non-free
|deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
|deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
|deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free
|deb-src http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free

|deb http://security.debian.org/ potato/updates main contrib non-free
|deb http://security.debian.org/ stable/updates main contrib non-free
|deb http://security.debian.org/debian-non-US potato/non-US main contrib non-free

|deb http://http.us.debian.org/debian dists/proposed-updates/
|deb http://non-us.debian.org/debian-non-US dists/proposed-updates/

Skulle man mon prøve at sætte # foran alle linier med unstble og
Portato, så det er sikkert at den hentes fra en stabil version?


--
Ivar Madsen Der med dette indlæg, repræsentere mig selv,
og dem der er enig med mig,,,
http://news.milli.dk med info om news.milli.dk opdateret 1/1
WEB serveren køre nu VirtualHost, og vil blive kraftigt ændret snarest

Ivar Madsen (23-01-2002)
Kommentar
Fra : Ivar Madsen


Dato : 23-01-02 14:59

On Wed, 23 Jan 2002 14:43:41 +0100, Ivar Madsen <news-02-01-02@milli.dk>
wrote:

>Skulle man mon prøve at sætte # foran alle linier med unstble og
>Portato, så det er sikkert at den hentes fra en stabil version?

Hjalp ikke,,,
|debian# apt-get dist-upgrade
|Reading Package Lists... Done
|Building Dependency Tree... Done
|Calculating Upgrade... Done
|0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
|debian# apt-get install apache
|Reading Package Lists... Done
|Building Dependency Tree... Done
|Some packages could not be installed. This may mean that you have
|requested an impossible situation or if you are using the unstable
|distribution that some required packages have not yet been created
|or been moved out of Incoming.

|Since you only requested a single operation it is extremely likely that
|the package is simply not installable and a bug report against
|that package should be filed.
|The following information may help to resolve the situation:

|Sorry, but the following packages have unmet dependencies:
| apache: Depends: apache-common (< 1.3.10) but 1.3.22-6 is to be installed
|E: Sorry, broken packages
|debian#


--
Ivar Madsen Der med dette indlæg, repræsentere mig selv,
og dem der er enig med mig,,,
http://news.milli.dk med info om news.milli.dk opdateret 1/1
WEB serveren køre nu VirtualHost, og vil blive kraftigt ændret snarest

Søg
Reklame
Statistik
Spørgsmål : 177558
Tips : 31968
Nyheder : 719565
Indlæg : 6408899
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste