On Thu, Oct 25, 2007 at 02:42:36PM +0200, Andrea Lusuardi wrote:
> 
> Stopping xl2tpd: invoke-rc.d: initscript xl2tpd, action "stop" failed.
> dpkg: warning - old pre-removal script returned error exit status 1
> dpkg - trying script from the new package instead ...
> Stopping xl2tpd: invoke-rc.d: initscript xl2tpd, action "stop" failed.
> dpkg: error processing
> /var/cache/apt/archives/xl2tpd_1.1.12.dfsg.1-1_powerpc.deb (--unpack):
>  subprocess new pre-removal script returned error exit status 1
> Errors were encountered while processing:
>  /var/cache/apt/archives/xl2tpd_1.1.12.dfsg.1-1_powerpc.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)

OK.  So after looking at the start-stop-daemon man page and looking at
--oknodo, it appears that what may be going on is that you don't have
xl2tpd running at the time of upgrade.  Is this the case?

That is how I was able to replicate the problem on my system:

miami:~# dchroot
I: [sid chroot] Running login shell: ‘/bin/bash’
miami:~# ls
xl2tpd_1.1.11.dfsg.1-2_i386.deb
miami:~# aptitude install ppp
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Building tag database... Done
The following NEW packages will be automatically installed:
  libpcap0.8
The following NEW packages will be installed:
  libpcap0.8 ppp
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 427kB of archives. After unpacking 1245kB will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Get:1 http://localhost sid/main libpcap0.8 0.9.8-1 [93.0kB]
Get:2 http://localhost sid/main ppp 2.4.4rel-9 [334kB]
Fetched 427kB in 0s (527kB/s)
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package libpcap0.8.
(Reading database ... 13666 files and directories currently installed.)
Unpacking libpcap0.8 (from .../libpcap0.8_0.9.8-1_i386.deb) ...
Selecting previously deselected package ppp.
Unpacking ppp (from .../ppp_2.4.4rel-9_i386.deb) ...
 Removing any system startup links for /etc/init.d/ppp ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libpcap0.8 (0.9.8-1) ...
Setting up ppp (2.4.4rel-9) ...
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
Building tag database... Done
miami:~# dpkg -i xl2tpd_1.1.11.dfsg.1-2_i386.deb
Selecting previously deselected package xl2tpd.
(Reading database ... 13787 files and directories currently installed.)
Unpacking xl2tpd (from xl2tpd_1.1.11.dfsg.1-2_i386.deb) ...
Setting up xl2tpd (1.1.11.dfsg.1-2) ...
Starting xl2tpd: xl2tpd.
miami:~# /etc/init.d/xl2tpd stop
Stopping xl2tpd: xl2tpd.
miami:~# aptitude install xl2tpd
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
Building tag database... Done
The following packages will be upgraded:
  xl2tpd
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 57.5kB of archives. After unpacking 0B will be used.
Do you want to continue? [Y/n/?]
Writing extended state information... Done
Get:1 http://localhost sid/main xl2tpd 1.1.12.dfsg.1-1 [57.5kB]
Fetched 57.5kB in 0s (450kB/s)
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 13804 files and directories currently installed.)
Preparing to replace xl2tpd 1.1.11.dfsg.1-2 (using 
.../xl2tpd_1.1.12.dfsg.1-1_i386.deb) ...
Stopping xl2tpd: invoke-rc.d: initscript xl2tpd, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Stopping xl2tpd: invoke-rc.d: initscript xl2tpd, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/xl2tpd_1.1.12.dfsg.1-1_i386.deb 
(--unpack):
 subprocess new pre-removal script returned error exit status 1
Starting xl2tpd: xl2tpd.
Errors were encountered while processing:
 /var/cache/apt/archives/xl2tpd_1.1.12.dfsg.1-1_i386.deb
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
Building tag database... Done

Regards,

-Roberto
-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com

Attachment: signature.asc
Description: Digital signature

Reply via email to