Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
snvvOffline
Post subject: shorewall install: dpkg returned an error code (1) [solved]  PostPosted: 25.02.2012, 11:39



Joined: 2010-09-13
Posts: 300

Status: Offline
When I tried to purge the shorewall I get the following error
      Code:
root@aptosid:/etc# apt-get purge shorewall
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  shorewall*
0 upgraded, 0 newly installed, 1 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 1,843 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 212702 files and directories currently installed.)
Removing shorewall ...
: not found/shorewall: 25: /etc/default/shorewall: :q
Stopping "Shorewall firewall": not done (check /var/log/shorewall-init.log).
invoke-rc.d: initscript shorewall, action "stop" failed.
dpkg: error processing shorewall (--purge):
 subprocess installed pre-removal script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 shorewall
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@aptosid:/etc#


Any help on this?
Thanks
snvv

EDIT
With a litle of googling, I did

vi /var/lib/dpkg/info/shorewall.prerm
and I added exit 0 after #/bin/sh -e
After that the shorewall was purged without errors.
Regards
snvv
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio