Packet bleibt in aptitude "stecken"

C

C:S

Foren As
Moin,
ich krieg nach einem aptitude install immer, egal was ich installiere:
Code:
ERROR: "/sbin/bastille-ipchains" not available!
invoke-rc.d: initscript bastille-firewall, action "stop" failed.
dpkg: error processing bastille (--remove):
 subprocess pre-removal script returned error exit status 1
ERROR: "/sbin/bastille-ipchains" not available!
invoke-rc.d: initscript bastille-firewall, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 bastille
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

das behindert andere Installationen an sich nicht, nur es nervt auf Dauer, aber ich kriegs nicht gebacken dieses bastille ding iwie zu beseitigen (hab schon alle möglichen de-/installationsflags ausprobiert). Finde bei google nichts passendes, obwohls whr nur 2 Befehle sind -.-
Kann mir jemand helfen?
Gruß, CS
 
nichts :-(
Code:
root:~# aptitude purge  bastille
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REMOVED:
  bastille{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 1520kB will be freed.
Do you want to continue? [Y/n/?] Y
Writing extended state information... Done
(Reading database ... 77368 files and directories currently installed.)
Removing bastille ...
ERROR: "/sbin/bastille-ipchains" not available!
invoke-rc.d: initscript bastille-firewall, action "stop" failed.
dpkg: error processing bastille (--purge):
 subprocess pre-removal script returned error exit status 1
ERROR: "/sbin/bastille-ipchains" not available!
invoke-rc.d: initscript bastille-firewall, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 bastille
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
Reading task descriptions... Done
Code:
root:~# aptitude install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REMOVED:
  bastille{p}
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 1520kB will be freed.
Do you want to continue? [Y/n/?] Y
(Reading database ... 77368 files and directories currently installed.)
Removing bastille ...
ERROR: "/sbin/bastille-ipchains" not available!
invoke-rc.d: initscript bastille-firewall, action "stop" failed.
dpkg: error processing bastille (--purge):
 subprocess pre-removal script returned error exit status 1
ERROR: "/sbin/bastille-ipchains" not available!
invoke-rc.d: initscript bastille-firewall, action "start" failed.
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 bastille
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
 
Code:
root:~# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up bastille (1:2.1.1-19) ...
ERROR: "/sbin/bastille-ipchains" not available!
invoke-rc.d: initscript bastille-firewall, action "start" failed.
dpkg: error processing bastille (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 bastille
E: Sub-process /usr/bin/dpkg returned an error code (1)
Code:
root:~# dpkg-reconfigure bastille
/usr/sbin/dpkg-reconfigure: bastille is broken or not fully installed

hmpf...
 
versuch doch mal mit
Code:
aptitude clean
bzw. aptitude autoclean

deinen Paketspeicher zu leeren
 
versuch doch mal mit
Code:

aptitude clean
bzw. aptitude autoclean

deinen Paketspeicher zu leeren

Das wird LEIDER wahrscheinlich nicht viel helfen.

Ein gängiger workaround wäre es das betreffende Script zu suchen und ein "exit 0" in die zweite Zeile zu schreiben ODER den ganzen Scheiss manuell zu löschen.

Zum Kotzen, aber einen besseren Weg gibt es AFAIK nicht.

IMHO eine der ganz großen Schwächen von dpgk und Konsorten.

Eigentlich eine völlige Disqualifikation für das Paket-Management, aber anscheinend hat das noch keine der verantwortlichen Personen als relevant erachtet.
 
Tja,

das ist eine gute Frage.

Mit großer Wahrscheinlichkeit irgendwo unter /var/lib/dpkg.

Genau sagen kann ich dir das nicht.

Poste doch mal die Ausgabe von:

Code:
grep -irsI bastille /var/lib/dpkg

Dann sehen wir weiter.

Noch eine kurze Anmerkung dazu:

Unter anderem wegen sowas wird es Linux - völlig zu Recht - niemals permanent auf den Desktop eines normalen Users schaffen.
 
Also habs mal angehängt, ist doch ziemlich viel auf einmal. Soll ich da einfach ma alles rauslöschen was mit bastille zu tun hat?
Gruß, CS
 

Anhänge

  • bastille_grep.txt
    22,6 KB · Aufrufe: 5
/var/lib/dpkg/info/bastille.postrm

Trag hier mal in die zweite Zeile nach der shebang (also dem #! am Anfang) ein

Code:
exit 0

ein und probier dann noch mal das "purge" bzw. die Installation weiterer Programme.
 
Code:
root:~# vi /var/lib/dpkg/info/bastille.postrm
root:~# aptitude purge
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following partially installed packages will be configured:
  bastille
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Setting up bastille (1:2.1.1-19) ...
ERROR: "/sbin/bastille-ipchains" not available!
invoke-rc.d: initscript bastille-firewall, action "start" failed.
dpkg: error processing bastille (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 bastille
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
man ist das hartnäckig...
 
Mach mal das "exit 0" wieder raus, dann ein "touch /sbin/bastille-ipchains" und dann nochmal "aptitude purge bastille" ...

Und wenn das nicht hilft, mach das "exit 0" mal lieber in die /var/lib/dpkg/info/bastille.postinst ... und dann nochmal entfernen ...
 
@Gott_in_schwarz
Hab ich tatsächlich schon gemacht, nur nicht diese Zeile. Aber genau dadurch hab ich jetzt die [link=http://rerun.lefant.net/pipermail/debienna/2007-August/000087.html]Lösung gefunden[/link] (ist mir jetzt echt nen weng peinlich, normalerweise bring ich google immer zum Glühen bevor ich in nem Forum frage...)
Danke für die Anregung ;-)

An die anderen auch viel Dank für die Antworten!!
Gruß, CS
 

Ähnliche Themen

Ich mag Dovecot nicht ...

Installationsabbruch

apt-get upgrade schlägt fehl...

Akonadi startet nicht mehr

hotkey-setup

Zurück
Oben