quagga build failing
Andrew Glen-Young
aglenyoung at gmail.com
Thu Oct 11 07:41:19 UTC 2007
On 11/10/2007, Noah <admin2 at enabled.com> wrote:
>
> Quagga build is failing. I am not sure how to fix this. Any help is
> appreciated.
>
> Starting Quagga daemons (prio:10):.
> Errors were encountered while processing:
> /var/cache/apt/archives/quagga_0.99.2-1ubuntu3.3_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> Reading package lists... Done
> Building dependency tree... Done
> Calculating upgrade... Done
> The following packages will be upgraded:
> quagga
> 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 90 not fully installed or removed.
> Need to get 0B/1199kB of archives.
> After unpacking 0B of additional disk space will be used.
> Preconfiguring packages ...
> (Reading database ... 128013 files and directories currently installed.)
> Preparing to replace quagga 0.99.2-1ubuntu3.1 (using
> .../quagga_0.99.2-1ubuntu3.3_i386.deb) ...
> As requested via Debconf, the Quagga daemon will not stop.
> dpkg: warning - old pre-removal script returned error exit status 1
> dpkg - trying script from the new package instead ...
> As requested via Debconf, the Quagga daemon will not stop.
> dpkg: error processing
> /var/cache/apt/archives/quagga_0.99.2-1ubuntu3.3_i386.deb (--unpack):
> subprocess new pre-removal script returned error exit status 1
> Loading capability module if not yet done.
> Starting Quagga daemons (prio:10):.
> Errors were encountered while processing:
> /var/cache/apt/archives/quagga_0.99.2-1ubuntu3.3_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
Looks to me that the process is failing to set the debconf key
'quagga/really_stop' to false. The scripts are below...
Here is the *new* prerm script:
#!/bin/bash -e
. /usr/share/debconf/confmodule
if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi
${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"}
# Trying to prevents the user from cutting his network connection...
db_fset quagga/really_stop seen false || true
db_input medium quagga/really_stop || true
db_go || true
db_get quagga/really_stop || true
if [ "$RET" = "false" ]; then
db_stop
echo "As requested via Debconf, the Quagga daemon will not stop." 1>&2
exit 1
fi
#DEBHELPER#
And the template file:
Template: quagga/really_stop
Type: boolean
Default: false
_Description: Do you really want to stop the Quagga daemon?
WARNING: The Quagga routing daemon has to be stopped to proceed. This
could lead to BGP flaps or loss of network connectivity.
Hope this helps.
- A.
More information about the ubuntu-users
mailing list