[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Having problems with my (newly created) debian package



Jeremy Higgs wrote:

JH> Ok, thanks to the help of some, I've configured a lot of the debian
JH> package for RCf, but when I install (after running dpkg-buildpackage
JH> and lintian), I get a whole lot of errors:

JH> root@debian:~/rcf-5.0.1# lintian -i rcf_5.0.1-1_i386.changes
JH> warning: lintian's authors do not recommend running it with root privileges!
JH> root@debian:~/rcf-5.0.1# dpkg -i rcf_5.0.1-1_i386.deb
JH> (Reading database ... 47288 files and directories currently installed.)
JH> Preparing to replace rcf 5.0.1-1 (using rcf_5.0.1-1_i386.deb) ...
JH> /var/lib/dpkg/info/rcf.prerm: /etc/init.d/firewall: No such file or directory
JH> dpkg: warning - old pre-removal script returned error exit status 1
JH> dpkg - trying script from the new package instead ...
JH> /var/lib/dpkg/tmp.ci/prerm: /etc/init.d/firewall: No such file or directory
JH> dpkg: error processing rcf_5.0.1-1_i386.deb (--install):
JH>   subprocess new pre-removal script returned error exit status 1
JH> update-rc.d: /etc/init.d/firewall: file does not exist
JH> dpkg: error while cleaning up:
JH>   subprocess post-installation script returned error exit status 1
JH> Errors were encountered while processing:
JH>   rcf_5.0.1-1_i386.deb

JH> ---

JH> however, I am pretty sure that I've configured it properly!!!

JH> If I use mc to browse through the .deb package, and then into the
JH> contents, I can see a file called "firewall" in etc/init.d , which is
JH> correct, but when I try and install, I get errors!

JH> any ideas?

JH> thankyou...!


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,

--
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




Reply to: