*** gelöst *** Probleme mit dpkg und apt-get

Du kommst mit der Installation nicht voran oder willst noch was nachfragen? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
aysal
Beiträge: 25
Registriert: 15.09.2003 17:18:07
Kontaktdaten:

*** gelöst *** Probleme mit dpkg und apt-get

Beitrag von aysal » 20.03.2004 10:34:21

Hallo,

ich habe, nach einem Versuch, meinen Mailserver von stable auf testing upzudaten, ein ziemliches durcheinander angerichtet.

Das Problem ist momentan das paket cyrus-common. Das lässt sich nicht updaten, da sich Debian weigert, das alte Paket zu entfernen.

Hab schon versucht, das Paket nur zu enttfernen. Klappt auch nicht:
aysberg:/var/cache/apt/archives# apt-get install -f
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following packages will be REMOVED:
cyrus-imapd
0 upgraded, 0 newly installed, 1 to remove and 31 not upgraded.
2 not fully installed or removed.
Need to get 0B/417kB of archives.
After unpacking 325kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 38225 files and directories currently installed.)
Removing cyrus-imapd ...
(Reading database ... 38219 files and directories currently installed.)
Preparing to replace cyrus-common 1.5.19-9.1 (using .../cyrus-common_1.5.19-9.1_i386.deb) ...
Document `cyrus-manual' is not installed, cannot remove.
ls: /usr/sbin/pwcheck: No such file or directory
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
ls: /usr/sbin/pwcheck: No such file or directory
dpkg: error processing /var/cache/apt/archives/cyrus-common_1.5.19-9.1_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
ls: /usr/sbin/pwcheck: No such file or directory
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/cyrus-common_1.5.19-9.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


Habe auch schon mit dpkg und einigen Force-Optionen rumprobier.
Auf der Platte hab ich folgende Pakete:
cyrus-common_1.5.19-17_i386.deb
cyrus-common_1.5.19-9.1_i386.deb
dpkg -l gibt:
iFR cyrus-common 1.5.19-9.1 CMU Cyrus mail system (common files)
Weitere Versuche:
aysberg:/var/cache/apt/archives# dpkg -r cyrus-common
dpkg: error processing cyrus-common (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
cyrus-common
aysberg:/var/cache/apt/archives# dpkg -r cyrus-common
dpkg: error processing cyrus-common (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
cyrus-common
aysberg:/var/cache/apt/archives#
aysberg:/var/cache/apt/archives# dpkg -r --force-all cyrus-common
dpkg - warning, overriding problem because --force enabled:
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
(Reading database ... 38218 files and directories currently installed.)
Removing cyrus-common ...
Document `cyrus-manual' is not installed, cannot remove.
ls: /usr/sbin/pwcheck: No such file or directory
dpkg: error processing cyrus-common (--remove):
subprocess pre-removal script returned error exit status 1
ls: /usr/sbin/pwcheck: No such file or directory
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
cyrus-common
HHHIIILLLFFFEEE!!!!!

Bitte keine Privatmails. Die kann ich momentan wg. gegebenen Grund nicht lesen :-(((
Zuletzt geändert von aysal am 21.03.2004 07:32:01, insgesamt 1-mal geändert.

Benutzeravatar
larus
Beiträge: 587
Registriert: 03.11.2003 13:11:12
Wohnort: Wil (Schweiz)
Kontaktdaten:

Beitrag von larus » 20.03.2004 11:00:18

Die Frage stellt sich nach deiner sources.list
Und was sagt

Code: Alles auswählen

apt-get -f install
?
larus: die Mo:we

http://peter.l2p.net/ - Die Seite, die du brauchst.

aysal
Beiträge: 25
Registriert: 15.09.2003 17:18:07
Kontaktdaten:

Beitrag von aysal » 20.03.2004 11:08:36

Meile sourcen:
# This sources.list was generated by apt-sources v2.20
# Copyright(c) 2001 by Danny Rodriguez
#
# The following site was benchmarked at 36.88 kB/s
#deb ftp://ftp2.de.debian.org/debian/ sarge main contrib non-free
deb ftp://ftp2.de.debian.org/debian/ woody main contrib non-free
# The following site was benchmarked at 36.50 kB/s
#deb ftp://ftp.uni-erlangen.de/pub/Linux/debian/ stable contrib

# The following site was benchmarked at 33.73 kB/s
#deb ftp://mirror.ox.ac.uk/debian/ stable non-free

###########################################################################
# Below are sites you may want to consider adding but are commented out
#
# -----[ Uncomment below for HELIX CODE site (GNOME) ]-----
# deb http://spidermonkey.ximian.com/distributions/debian unstable main
# -----[ Uncomment below for KDE site (& Kdevelop) ]-----
# deb http://kde.tdyc.com potato main crypto optional qt1apps
# -----[ Uncomment below for debian security ]-----
deb http://security.debian.org stable/updates main contrib non-free
deb http://typo3.sunsite.dk/software/debian/ ./
deb-src http://typo3.sunsite.dk/software/debian/ ./

# OpenGroupWare
deb http://www.opengroupware.org/packages/ deb/

apt-get -f install :
aysberg:~# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
1 not fully installed or removed.
Need to get 0B/417kB of archives.
After unpacking 0B of additional disk space will be used.
Selecting previously deselected package cyrus-common.
(Reading database ... 38219 files and directories currently installed.)
Preparing to replace cyrus-common 1.5.19-9.1 (using .../cyrus-common_1.5.19-9.1_i386.deb) ...
Document `cyrus-manual' is not installed, cannot remove.
ls: /usr/sbin/pwcheck: No such file or directory
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
ls: /usr/sbin/pwcheck: No such file or directory
dpkg: error processing /var/cache/apt/archives/cyrus-common_1.5.19-9.1_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
ls: /usr/sbin/pwcheck: No such file or directory
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/cyrus-common_1.5.19-9.1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

aysal
Beiträge: 25
Registriert: 15.09.2003 17:18:07
Kontaktdaten:

lösung

Beitrag von aysal » 21.03.2004 07:34:19

Das Problem ist gelöst. Habe einfach in die prerm und postinstall files des Paketes ein exit 0 geschrieben und das Paket deinstalliert. Danach konnte ich das Paket drüberinstallieren.

Antworten