php4-gd installation unter etch scheitert.

Du kommst mit der Installation nicht voran oder willst noch was nachfragen? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
jadefalke
Beiträge: 4
Registriert: 21.05.2007 10:29:15

php4-gd installation unter etch scheitert.

Beitrag von jadefalke » 21.05.2007 10:36:27

Hallo ich benötige php4-gd für eine Programm die installation scheitert aber und ich drehe mich im Kreis...weiss jemand Rat?

/tmp# apt-get -f install php4-gd
Reading package lists... Done
Building dependency tree... Done
php4-gd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 25 not upgraded.
7 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up libapache2-mod-php4 (6:4.4.6-2+b1) ...
/usr/bin/ucf: line 351: getopt: command not found
dpkg: error processing libapache2-mod-php4 (--configure):
subprocess post-installation script returned error exit status 127
Setting up php4-cli (6:4.4.6-2+b1) ...
/usr/bin/ucf: line 351: getopt: command not found
dpkg: error processing php4-cli (--configure):
subprocess post-installation script returned error exit status 127
dpkg: dependency problems prevent configuration of php-pear:
php-pear depends on php5-cli | php4-cli; however:
Package php5-cli is not installed.
Package php4-cli is not configured yet.
dpkg: error processing php-pear (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php4:
php4 depends on libapache2-mod-php4 (>= 6:4.4.6-2) | libapache-mod-php4 (>= 6:4.4.6-2) | php4-cgi (>= 6:4.4.6-2); however:
Package libapache2-mod-php4 is not configured yet.
Package libapache-mod-php4 is not installed.
Package php4-cgi is not installed.
dpkg: error processing php4 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php4-gd:
php4-gd depends on phpapi-20050606+lfs; however:
Package phpapi-20050606+lfs is not installed.
Package libapache2-mod-php4 which provides phpapi-20050606+lfs is not configured yet.
Package php4-cli which provides phpapi-20050606+lfs is not configured yet.
dpkg: error processing php4-gd (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php4-mysql:
php4-mysql depends on phpapi-20050606+lfs; however:
Package phpapi-20050606+lfs is not installed.
Package libapache2-mod-php4 which provides phpapi-20050606+lfs is not configured yet.
Package php4-cli which provides phpapi-20050606+lfs is not configured yet.
dpkg: error processing php4-mysql (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of squirrelmail:
squirrelmail depends on libapache2-mod-php4 | libapache-mod-php4 | php4 | php4-cgi | libapache2-mod-php5 | libapache-mod-php5 | php5-cgi | php5; however:
Package libapache2-mod-php4 is not configured yet.
Package libapache-mod-php4 is not installed.
Package php4 is not configured yet.
Package php4-cgi is not installed.
Package libapache2-mod-php5 is not installed.
Package libapache-mod-php5 is not installed.
Package php5-cgi is not installed.
Package php5 is not installed.
dpkg: error processing squirrelmail (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libapache2-mod-php4
php4-cli
php-pear
php4
php4-gd
php4-mysql
squirrelmail
E: Sub-process /usr/bin/dpkg returned an error code (1)

Benutzeravatar
Cloonix
Beiträge: 589
Registriert: 20.11.2004 10:42:24
Wohnort: München
Kontaktdaten:

Beitrag von Cloonix » 21.05.2007 13:31:59

Da steht doch, dass Abhängigkeiten fehlen. Brauchst du squirrelmail? Kannst das ja mal entfernen und die dann noch fehlenden Abhängigkeiten mit installieren.

Ein apt-get -f empfiehlt sich übrigens nicht IMHO. Wenn es ohne -f nicht geht, dann solltest du auch nicht.
proud to be 100% M$ free (except X300T)
http://claus.freakempire.de
http://debian.freakempire.de

jadefalke
Beiträge: 4
Registriert: 21.05.2007 10:29:15

Beitrag von jadefalke » 21.05.2007 13:32:52

wie löse ich die Abhängigkeiten auf?

Benutzeravatar
herrchen
Beiträge: 3257
Registriert: 15.08.2005 20:45:28
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Berlin

Re: php4-gd installation unter etch scheitert.

Beitrag von herrchen » 21.05.2007 13:56:10

jadefalke hat geschrieben: /usr/bin/ucf: line 351: getopt: command not found
"getopt" ist im paket "util-linux". warum ist das denn nicht installiert?

zeig´ doch mal (vorsichtshalber) deine "sources.list".

herrchen

Geier0815
Beiträge: 361
Registriert: 07.04.2005 16:51:01

Beitrag von Geier0815 » 21.05.2007 14:04:32

An deiner Stelle würde ich mich erstmal entscheiden welche Version von Apache Du wirklich brauchst. Dann schau mal in welchem Paket der Befehl getopt enthalten ist und installier es. Das wäre mein Weg um an die Sache ranzugehen. Dann als Hinweis: "apt-get install Paketname" ist der normale Weg um etwas zu installieren. "apt-get -f install" verwendest Du nur um Abhängigkeitsprobleme aufzulösen und das auch nur wenn es zwingend notwendig ist. Aber so wie dein System reagiert, vermute ich mal das Du entweder weitere Quellen eingebunden hast die nicht so ganz in Ordnung waren oder aber das Du Software auf anderen Wegen ( zB --force-all) installiert hast.
Wenn Windows die Lösung ist...
kann ich dann bitte das Problem zurück haben?

jadefalke
Beiträge: 4
Registriert: 21.05.2007 10:29:15

Beitrag von jadefalke » 21.05.2007 14:40:38

Hallo,

@Herrchen @geier
Ihr habt beide in die Richtige Richtung getippt:

1. anscheind habe ich eine falsche sources.list gehabt (unstable etc.)
nun habe ich die auf folgendes gekürzt:

deb http://ftp.de.debian.org/debian etch main
deb-src http://ftp.de.debian.org/debian etch main
deb http://security.debian.org/ etch/updates main
deb-src http://security.debian.org/ etch/updates

2. habe ich mir bei dem letzen DIST Upgrade somit ein lenny/sid system zusammengebastelt. (klasse Aktion...)
Somit habe ich dank meiner unkenntniss mit falschen Sources gearbeitet und mir somit anscheinend
ernste Probleme eingehandelt.

3. getopt installieren scheitert anscheined an 2.
Da traue ich mir ja ein -f schon fast gar nicht mehr

apt-get install util-linux
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:

The following packages have unmet dependencies:
util-linux: Depends: tzdata (>= 2006c-2) but it is not going to be installed
E: Broken packages


Irgendwelche Ideen wie ich aus dem Schlamasel ohne neuinstallation wieder rauskomme?

Pawel
Beiträge: 284
Registriert: 27.11.2006 03:59:39

Beitrag von Pawel » 21.05.2007 14:47:34

jadefalke hat geschrieben:Irgendwelche Ideen wie ich aus dem Schlamasel ohne neuinstallation wieder rauskomme?
Schau dir dazu mal APT Pinning aus dem hiesigen Wiki an, vorallem die Einleitung des ersten Beispieles und danach das komplette dritte Beispiel.
Dessen ungeachtet würde ich in der sources.list anstatt etch stable schreiben. Schliesslich ist Etch stable.

jadefalke
Beiträge: 4
Registriert: 21.05.2007 10:29:15

Beitrag von jadefalke » 21.05.2007 15:16:29

hmmh ok,

hab dann mal die Priority auf 1001 gestellt wie im Beispiel und versucht util-linux zu installieren dann passiert folgendes:

/tmp/gd-2.0.34# apt-get install util-linux
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
binutils courier-base courier-imap cpio debianutils diff dpkg e2fslibs e2fsprogs fakeroot file findutils info iputils-ping ispell libc-client2002edebian
libc6 libc6-dev libcairo2 libcomerr2 libdbi-perl libgd2-xpm libglib2.0-0 libkrb53 libmagic1 libmysqlclient15off libpng12-0 libpng12-dev libpq4 libsasl2-2
libselinux1 libsepol1 libslang2 libsqlite3-0 libssl0.9.8 libusb-0.1-4 libuuid1 libxinerama1 libxrandr2 libxrender1 login lsof mailx man2html mktemp mlock
mysql-client-5.0 mysql-server-5.0 nano netkit-ping openssl passwd postfix postfix-ldap postfix-pcre psmisc python python-minimal python2.4
python2.4-minimal sed tzdata zlib1g zlib1g-dev
Suggested packages:
binutils-doc courier-doc courier-imap-ssl diff-doc lzma gpart parted e2fsck-static spell uw-mailutils glibc-doc dbishell libgd-tools krb5-doc krb5-user
swish++ tinyca ca-certificates postfix-mysql postfix-pgsql sasl2-bin resolvconf postfix-cdb python-doc python-tk python-profiler python2.4-doc kbd
console-tools dosfstools
Recommended packages:
wordlist libglib2.0-data libsasl2-modules
The following NEW packages will be installed:
tzdata util-linux
The following packages will be DOWNGRADED:
binutils courier-base courier-imap cpio debianutils diff dpkg e2fslibs e2fsprogs fakeroot file findutils info iputils-ping ispell libc-client2002edebian
libc6 libc6-dev libcairo2 libcomerr2 libdbi-perl libgd2-xpm libglib2.0-0 libkrb53 libmagic1 libmysqlclient15off libpng12-0 libpng12-dev libpq4 libsasl2-2
libselinux1 libsepol1 libslang2 libsqlite3-0 libssl0.9.8 libusb-0.1-4 libuuid1 libxinerama1 libxrandr2 libxrender1 login lsof mailx man2html mktemp mlock
mysql-client-5.0 mysql-server-5.0 nano netkit-ping openssl passwd postfix postfix-ldap postfix-pcre psmisc python python-minimal python2.4
python2.4-minimal sed zlib1g zlib1g-dev
0 upgraded, 2 newly installed, 63 downgraded, 0 to remove and 51 not upgraded.
7 not fully installed or removed.
Need to get 66.5MB of archives.
After unpacking 2066kB of additional disk space will be used.
Do you want to continue [Y/n]? y

Da habe ich noch Y gesagt dann passiert folgendes:

E: This installation run will require temporarily removing the essential package libc6 due to a Conflicts/Pre-Depends loop. This is often bad, but if you really want to do it, activate the APT::Force-LoopBreak option.
E: Reverse conflicts early remove for package 'tzdata' failed


nun bin ich unschlüssig ob ich das machen soll was da steht...

Antworten