Jeremy Higgs wrote: >>Your new package is not the problem, here. It seems that the old >>version of your package provided a broken prerm script. So, when dpkg >>try to uninstall it before installing the new version, it just >>crashes. What you could do is just modifying the >>/var/lib/dpkg/info/rcf.prerm file, in order to remove the bad lines, >>those who try to remove /etc/init.d/firewall. Or, maybe cleaner, just >>do a : >> >>echo -n "" > /etc/init.d/firewall >> >>which will create an empty firewall file, which will be deleted by >>dpkg. >> >>But, be quiet, that isn't a problem (again! :) with your new package, >> JH> I did something to that effect, and deleted all the rcf.* files in JH> /var/lib/dpkg/info, and it now works! the replace/uninstall also JH> seems to work, which is good!
JH> However, I get some errors (both the same, though) in the JH> post-install (I think): JH> [EMAIL PROTECTED]:~/rcf-5.0.1# dpkg -i rcf_5.0.1-1_i386.deb JH> (Reading database ... 47289 files and directories currently installed.) JH> Preparing to replace rcf 5.0.1-1 (using rcf_5.0.1-1_i386.deb) ... JH> /etc/init.d/firewall: [: =: unary operator expected JH> Unpacking replacement rcf ... JH> Setting up rcf (5.0.1-1) ... JH> Installing new version of config file /etc/init.d/firewall ... JH> /etc/init.d/firewall: [: =: unary operator expected JH> --- JH> this is the /etc/init.d/firewall file: [cut] JH> --- JH> I cannot see any problems, however, and because of those 'unary JH> operator expected' errors, I cannot complete the install or start the JH> firewall! JH> Can anyone see any problems with the /etc/init.d/firewall file? It JH> works (I presume) on RedHat and other systems, since I have installed JH> it on my RedHat gateway and it works fine! This type of error is generally caused by a bad variable name in a if test. (e.g., in [ $a = 0 ] $a has not been set before). The only line which include a test with = (format [ * = * ]) is this one: [ ${NETWORKING} = "no" ] && exit 0 I think NETWORKING should be set to yes and no executing the /etc/init.d/networking file. In RH, that's done by /etc/sysconfig/network, but this doesn't exist in Debian. I don't think there's an equivalent. Maybe you can delete it, if you think it isn't necessary. Else, you can try some workaround, like: [ -z `ifconfig` ] or, more complicated, cat /proc/net/dev|grep -v "Inter-"|grep -v "face"|grep -v "lo" (didn't try) Or something like that. If you still think NETWORKING would be useful for Debian, you can contact Anthony Towns ([EMAIL PROTECTED]), the netbase maintainer, and suggest him to add a such variable to /etc/init.d/networking. JH> thanks bye, -- mmenal ____ _ _ _ __ __ _ __ __ __ / ___| ___ _ _ | | ( )_ __ _ ___ __ | | (o- \ \/ /(_)\ \/ / _ \ | | _ /'_ \| | | | | | | | '_ \| | | \ \/ / | | /\ \ / | | \ / | __/ | |_| | | | | |_| | | |__| | | | | |_| |> < |_| L_/_ \/ |_| \/ \___| \_____|_| |_|\__,_/ |____|_|_| |_|\__,_/_/\_\ (_) ______________________________________________________________________________ Vous avez un site perso ? 2 millions de francs à gagner sur i(france) ! Webmasters : ZE CONCOURS ! http://www.ifrance.com/_reloc/concours.emailif