Infinite loop in dpkg: Hang at 'Unpacking'

Bug #625676 reported by Kenny Strawn on 2010-08-28
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)

Bug Description

Binary package hint: apt

When I ran APT the last time successfully, the command hung at "Unpacking". I made the mistake of killing it, and so I decided to rm the /var/lib/dpkg/lock file and run 'sudo dpkg --configure -a'. I now definitely think that it might be an infinite loop causing the problem, as it hangs without consuming any CPU.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: apt 0.8.0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-19.26-generic
Uname: Linux 2.6.35-19-generic i686
Architecture: i386
Date: Fri Aug 27 22:40:53 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100812)
SourcePackage: apt

Kenny Strawn (kenny-strawn) wrote :
Kenny Strawn (kenny-strawn) wrote :

There definitely is an infinite loop in apt-get (see attached log).

Kenny Strawn (kenny-strawn) wrote :

As a follow-up to the last comment, APT actually hangs near the end of the terminal history log. In particular, it locks up without consuming any CPU. This is definitely what an infinite loop would do.

summary: - Terminating APT results in /var/lib/dpkg/lock being permanently
- unavailable
+ Infinite loop in APT: Hang at 'Unpacking'
description: updated
summary: - Infinite loop in APT: Hang at 'Unpacking'
+ Infinite loop in dpkg: Hang at 'Unpacking'
Kenny Strawn (kenny-strawn) wrote :

The fact that no one has ever cared about this bug scares me a little. How about I just switch to Linux Mint. I seem to have much better luck with Mint - no infinite loops in package managers or Live CD installers - than with Ubuntu.

C de-Avillez (hggdh2) wrote :

Thank you for opening this bug and helping make Ubuntu better. I am unsure where, exactly, the problem is, but it really does not sounds like an infinite loop, but rather as a wait.

You can try to run dpkg directly on what seems to be the problem package (libdbi0):

cd /var/cache/apt/archive
ls libdbi0*

then select the most update of them (say, 0.8.3-0ubuntu1), and try to install it:

sudo dpkg -i /var/cache/apt/archives/libdbi0_0.8.3-0ubuntu1_i386.deb

Then please post the results here.

p.s.1. Of course, you are free to switch to any other Linux distribution you wish to. Just please be aware that all of them (unless you pay for support) are supported by volunteers. Threatening to switch because you got no response after one day of a bug open will not make volunteers willing to help.

p.s.2. Although I am tending to transform this bug into a question (this sounds like a support problem, not as a bug in apt or dpkg), I will wait for your answer.

Changed in apt (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers