I'm not sure this is the right way to reply to the Debian bug tracking system... A friend of mine explained to me that if you create a shell script that checks for every package in dpkg -l (I think) that has a capital letter in the status field, and call dpkg --configure for each of those, it will work. It's an ugly workaround, though. Another way is to manually see what packages are listed by aptitude after hitting g once. Write those down, purge them, and reinstall them one by one and things will be fine for while.

Kasper

Nick Leverton schreef:
Package: dpkg
Version: 1.14.20
Followup-For: Bug #486843

severity 486843 important
thanks

dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' 
failed.

Regrettably one of my machines is now giving this error and I cannot find
a way to recover from it.  The machine was doing a substantial "aptitude
dist-upgrade" of the last month's worth of Lenny updates (approx 700
packages), and during the configuration phase dpkg spontaneously aborted
with the above error.

Earlier in the upgrade I had a dpkg error but it seemed to recover OK,
I've included both errors from the logs in case it is relevant.

I cannot find a way to recover from this and I am now stuck with a
half-updated system.  I've increased the severity to Important because
this bug seems to be a blocker once it has hit.  I'd welcome any clues
for how to recover.


nickl:~# aptitude -V dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

... snips ...
655 packages upgraded, 63 newly installed, 44 to remove and 2 not upgraded.

(2,000 lines of output deleted)

Unpacking replacement vpnc ...
Processing triggers for menu ...
Processing triggers for doc-base ...
Processing 23 changed, 2 added doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for gxine ...
/var/lib/dpkg/info/gxine.postinst: line 5: 30901 Segmentation fault
/usr/bin/xine-list-1.1
dpkg: subprocess post-installation script returned error exit status 139
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install.  Trying to recover:
Setting up libmozjs1d (1.9.0.1-1) ...
Setting up exim4-config (4.69-6) ...
Setting up dash (0.5.4-11) ...

(1,400 lines of output deleted)

Setting up kalarm (4:3.5.9-5) ...
Setting up kmail (4:3.5.9-5) ...
Setting up korganizer (4:3.5.9-5) ...
Setting up kdeartwork (4:3.5.9-2) ...
Setting up konqueror-nsplugins (4:3.5.9.dfsg.1-5) ...
Processing triggers for menu ...
Setting up kdenetwork (4:3.5.9-3) ...
Setting up kmailcvt (4:3.5.9-5) ...
Setting up openoffice.org-impress (1:2.4.1-6) ...
Setting up openoffice.org-help-en-gb (1:2.4.1-6) ...
Setting up kdebase (4:3.5.9.dfsg.1-5) ...
Setting up tasksel (2.75) ...
Setting up krec (4:3.5.9-2) ...
Setting up kbabel-dev (4:3.5.9-2) ...
Setting up bwidget (1.8.0-3) ...
Setting up kdesdk-dbg (4:3.5.9-2) ...
Setting up noatun (4:3.5.9-2) ...
Setting up kdepim (4:3.5.9-5) ...
Setting up kdemultimedia-kappfinder-data (4:3.5.9-2) ...
Setting up gnome-accessibility (1:2.22.2~4) ...
Setting up openoffice.org (1:2.4.1-6) ...
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' 
failed.
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct 
the problem.
E: Could not regain the system lock!  (Perhaps another apt or dpkg is running?)
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct 
the problem.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done

Current status: 1 update [-664], 23953 new [-2].
W: Could not lock the cache file; this usually means that dpkg or
another apt tool is already installing packages.  Opening in read-only
mode; any changes you make to the states of packages will NOT be
preserved!
nickl:~# dpkg --configure -a
Processing triggers for menu ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.25-2-686
Processing triggers for python-support ...
Setting up gparted (0.3.8-1) ...
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' 
failed.
Aborted
nickl:~# dpkg --configure -a
Processing triggers for menu ...
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' 
failed.
Aborted
nickl:~# dpkg --configure -a
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' 
failed.
Aborted
nickl:~# dpkg --triggers-only -a
nickl:~# dpkg --configure -a
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' 
failed.
Aborted
nickl:~# dpkg --configure -a
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' 
failed.
Aborted
nickl:~# dpkg --triggers-only --pending
nickl:~# dpkg --configure --pending
dpkg: ../../src/packages.c:221: process_queue: Assertion `dependtry <= 4' 
failed.
Aborted



-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (850, 'testing'), (600, 'stable'), (3, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dpkg depends on:
ii  coreutils                     6.10-6     The GNU core utilities
ii  libc6                         2.7-13     GNU C Library: Shared libraries

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt                           0.7.14+b1  Advanced front-end for dpkg
ii  lzma                          4.43-14    Compression method of 7z format in

-- no debconf information



--
To unsubscribe, send mail to [EMAIL PROTECTED]




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to