Installations Problem

nukem

Registered User
Hallo, ich habe follgendes Prob:

# apt-get -f -y install proftpd
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
proftpd: Depends: proftpd-common (= 1.2.10-15sarge1) but it is not going to be installed
Conflicts: ftp-server
Conflicts: proftpd-mysql but 1.2.10-15sarge1 is to be installed
proftpd-mysql: Depends: proftpd-common (= 1.2.10-15sarge1) but it is not going to be installed
Conflicts: ftp-server
Conflicts: proftpd but 1.2.10-15sarge1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


Fehler beim Löschen des Pakets proftpd-common :

dpkg: dependency problems prevent removal of proftpd-common:
proftpd-mysql depends on proftpd-common (= 1.2.10-15sarge1).
dpkg: error processing proftpd-common (--remove):
dependency problems - not removing
Errors were encountered while processing:
proftpd-common


wie kann ich dieses lösen?
 
Last edited by a moderator:
Nein rtg meinte du sollst NUR "apt-get -f install" ausführen


Try 'apt-get -f install' with no packages (or specify a solution).
 
achso...naja geht ebenfalls nicht hier die message:

tux:~# apt-get -f install proftpd
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
proftpd-doc
The following packages will be REMOVED:
proftpd-mysql
The following NEW packages will be installed:
proftpd
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B/389kB of archives.
After unpacking 61.4kB disk space will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 22558 files and directories currently installed.)
Removing proftpd-mysql ...
invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
dpkg: error processing proftpd-mysql (--remove):
subprocess pre-removal script returned error exit status 100
Errors were encountered while processing:
proftpd-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Versuch erstmal proftpd-mysql einzeln zu deinstallieren/upzudaten oder auch neuzuinstallieren. Evtl hast du dir das Package davon ein wenig zerschossen. Schau evtl auch mal in die Manpage von apt-get evtl steht da was dazu drin.
 
hmm es steht nicht wirklich etwas in den manpages,


es lässt sich ja nicht mehr löschen!

tux:~# apt-get remove proftpd-mysql
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
proftpd-common proftpd-mysql
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 1233kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 22558 files and directories currently installed.)
Removing proftpd-mysql ...
invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
dpkg: error processing proftpd-mysql (--remove):
subprocess pre-removal script returned error exit status 100
dpkg: proftpd-common: dependency problems, but removing anyway as you request:
proftpd-mysql depends on proftpd-common (= 1.2.10-15sarge1).
Removing proftpd-common ...
Errors were encountered while processing:
proftpd-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)

Was hat das eigentlich mit dpkg zutun?

UPGRADE:
tux:~# apt-get -f upgrade proftpd-mysql
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following NEW packages will be installed:
proftpd-common
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/195kB of archives.
After unpacking 373kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously deselected package proftpd-common.
(Reading database ... 22538 files and directories currently installed.)
Unpacking proftpd-common (from .../proftpd-common_1.2.10-15sarge1_amd64.deb) ...
Setting up proftpd-common (1.2.10-15sarge1) .
 
Last edited by a moderator:
Geht denn auch ein reinstallieren nicht ?


Code:
apt-get install paketname --reinstall


"Diese Option installiert das gewünschte Paket komplett neu, auch wenn es bereits installiert ist. Beachten Sie, dass hierbei auch die Option install anzugeben ist!"


Edit : Besser : teste mit aptitude !
Code:
aptitude
(ist "grafisch")...
 
Last edited by a moderator:
geht leider auch nicht... ich weiß auch nicht mehr wirklich was ich anstellen soll!!!

tux:~# apt-get install proftpd --reinstall
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
proftpd-doc
The following packages will be REMOVED:
proftpd-mysql
The following NEW packages will be installed:
proftpd

tux:~# 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B/389kB of archives.
After unpacking 61.4kB disk space will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 22558 files and directories currently installed.)
Removing proftpd-mysql ...
invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
dpkg: error processing proftpd-mysql (--remove):
subprocess pre-removal script returned error exit status 100
Errors were encountered while processing:
proftpd-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)
debian3164lamp:~# apt-get -f install proftpd --reinstall
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
proftpd-doc
The following packages will be REMOVED:
proftpd-mysql
The following NEW packages will be installed:
proftpd
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B/389kB of archives.
After unpacking 61.4kB disk space will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 22558 files and directories currently installed.)
Removing proftpd-mysql ...
invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
dpkg: error processing proftpd-mysql (--remove):
subprocess pre-removal script returned error exit status 100
Errors were encountered while processing:
proftpd-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)

apt-get -f install proftpd --reinstall
Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
proftpd-doc
The following packages will be REMOVED:
proftpd-mysql
The following NEW packages will be installed:
proftpd
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B/389kB of archives.
After unpacking 61.4kB disk space will be freed.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 22558 files and directories currently installed.)
Removing proftpd-mysql ...
invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
dpkg: error processing proftpd-mysql (--remove):
subprocess pre-removal script returned error exit status 100
Errors were encountered while processing:
proftpd-mysql
E: Sub-process /usr/bin/dpkg returned an error code (1)

tux:~# apt-get -f install proftpd-mysql --reinstall
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 415kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://security.debian.org stable/updates/main proftpd-mysql 1.2.10-15sarge1 [415kB]
Fetched 415kB in 2s (181kB/s)
Preconfiguring packages ...
Selecting previously deselected package proftpd-mysql.
(Reading database ... 22561 files and directories currently installed.)
Preparing to replace proftpd-mysql 1.2.10-15sarge1 (using .../proftpd-mysql_1.2.10-15sarge1_amd64.deb) ...
invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
dpkg: warning - old pre-removal script returned error exit status 100
dpkg - trying script from the new package instead ...
invoke-rc.d: unknown initscript, /etc/init.d/proftpd not found.
dpkg: error processing /var/cache/apt/archives/proftpd-mysql_1.2.10-15sarge1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 100
Errors were encountered while processing:
/var/cache/apt/archives/proftpd-mysql_1.2.10-15sarge1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
MrMasterJPsy said:
Wo liegt denn der Zusammenhang zwischen dpkg / apt-get /aptitude und den init scripten ?
das würde mich auch mal intressieren!

Danke, jetzt ging es ohne Probs ;)

Vielen dank :)
 
@MrMasterJPsy - Die Posts bitte mal ganz und aufmerksam lesen.

@nukem Bitte!:)


Edit:
Wenn dpkg ein Paket deinstallieren will versucht es natürlich zuerst den Dienst zu stoppen (über Init-Skript). Ist kein Init-Skript vorhanden kann dpkg den Dienst nicht stoppen und somit auch nicht entfernen (dpkg ist nicht so radikal ala kill -9)
 
Last edited by a moderator:
tux:~# apt-get -f upgrade upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following NEW packages will be installed:
proftpd-common
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 610kB of archives.
After unpacking 373kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://security.debian.org stable/updates/main proftpd-common 1.2.10-15sarge1 [195kB]
Get:2 http://security.debian.org stable/updates/main proftpd-mysql 1.2.10-15sarge1 [415kB]
Fetched 610kB in 4s (130kB/s)
Preconfiguring packages ...
Selecting previously deselected package proftpd-common.
(Reading database ... 23862 files and directories currently installed.)
Unpacking proftpd-common (from .../proftpd-common_1.2.10-15sarge1_amd64.deb) ...
Selecting previously deselected package proftpd-mysql.
Preparing to replace proftpd-mysql 1.2.10-15sarge1 (using .../proftpd-mysql_1.2.10-15sarge1_amd64.deb) ...
: No such file or directory
invoke-rc.d: initscript proftpd, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
: No such file or directory
invoke-rc.d: initscript proftpd, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/proftpd-mysql_1.2.10-15sarge1_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
: No such file or directory
invoke-rc.d: initscript proftpd, action "start" failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/proftpd-mysql_1.2.10-15sarge1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



Wie kann ich diesen fehler beheben? Google gab leider nicht wirklich etwas her...
 
Hallo nukem,

bitte entsinne Dich auf Punkt 3 der Boardregeln und nutze bitte die CODE-Tags für die Linux-Auszüge.

Und anscheinend hast Du den eigendlichen Wink mit dem Zaunpfahl von TheSandman nicht verstanden:
Du mußt das fehlende Startscript installieren.

Es geht allerdings auch etwas einfacher:
Code:
echo "#!/bin/sh" >/etc/init.d/proftpd
chmod +x /etc/init.d/proftpd

Und dann versuchst Du erstmal die Deinstallation bis das funzt.

huschi.
 
Back
Top