On Wed, 19 Mar 2008, Justin Pryzby wrote: > $ aptitude search session manag > aptitude: error while loading shared libraries: libapt-pkg-libc6.7-6.so.4.6: > cannot open shared object file: No such file or directory
On Wed, Mar 19, 2008 at 06:01:52PM -0700, Daniel Burrows wrote: > You're saying that you see transient aptitude failures *while > upgrading aptitude and apt*, right? i.e., after the upgrade finished, > everything worked again? Correct. I can reproduce it at will by upgrading/downgrading apt. I was of the impression that dpkg attempts to let packages work normally even during upgrades. That's why statoverride exists (to give new permissions to the file before the rename()), and why it renames files atomically, and why an upgrade is more elaborate than "tar old files" && "remove" && "unpack new files" || "unpack old files". Of course, the package may not work during the upgrade interval for some higher-level reasons (inconsistencies between files in the new/old versions or such). Why does apt's library include the libc6 version? I guess that ultimately causes the problem. I know that dpkg doesn't remove files in oldver but not in new-ver until the other files in new-ver have been unpacked; however, I don't know if dpkg attempts to unpack files only in new-ver before unpacking the files common to both. (That alone wouldn't fix the problem anyway, since the order of unpacking isn't guaranteed by a normal dependency). Am I wrong to think that library transitions (libfoo1 => libfoo2) and ABI changes (gcc-4.0) are supposed to be supported without things breaking during the upgrade interval? On Thu, Mar 20, 2008 at 10:26:34AM +0100, Raphael Hertzog wrote: > And if you can try reproduce it (by downgrading/reupgrading) > it would be great to do a simple "ls -al > /usr/lib/libapt-pkg-libc6.7-6.so.4.6" at the time of the failure. dpkg - warning: downgrading aptitude from 0.4.10-1+b2 to 0.4.4-4. Preparing to replace aptitude 0.4.10-1+b2 (using .../aptitude_0.4.4-4_i386.deb) ... $ aptitude search || ls -l /usr/lib/libapt* aptitude: error while loading shared libraries: libapt-pkg-libc6.3-6.so.3.11: cannot open shared object file: No such file or directory lrwxrwxrwx 1 root root 1K 2008-03-21 10:35 /usr/lib/libapt-inst-libc6.3-6.so.1.1 -> libapt-inst-libc6.3-6.so.1.1.0 -rw-r--r-- 1 root root 81K 2007-02-26 16:22 /usr/lib/libapt-inst-libc6.3-6.so.1.1.0 lrwxrwxrwx 1 root root 1K 2008-03-21 10:32 /usr/lib/libapt-pkg-libc6.7-6.so.4.6 -> libapt-pkg-libc6.7-6.so.4.6.0 -rw-r--r-- 1 root root 801K 2008-02-16 19:15 /usr/lib/libapt-pkg-libc6.7-6.so.4.6.0 Without further ado, the original upgrade logs have: aptitude: =============================================================================== [INSTALL, DEPENDENCIES] libcwidget1 [UPGRADE] apt 0.6.46.4-0.1 -> 0.7.11 [UPGRADE] apt-utils 0.6.46.4-0.1 -> 0.7.11 [UPGRADE] aptitude 0.4.4-4 -> 0.4.10-1+b1 [UPGRADE] libstdc++6 4.1.1-21 -> 4.3.0-1 =============================================================================== dpkg.log: 2008-03-19 14:00:06 upgrade libstdc++6 4.1.1-21 4.3.0-1 2008-03-19 14:00:06 status half-configured libstdc++6 4.1.1-21 2008-03-19 14:00:06 status unpacked libstdc++6 4.1.1-21 2008-03-19 14:00:06 status half-installed libstdc++6 4.1.1-21 2008-03-19 14:00:06 status half-installed libstdc++6 4.1.1-21 2008-03-19 14:00:06 status unpacked libstdc++6 4.3.0-1 2008-03-19 14:00:06 status unpacked libstdc++6 4.3.0-1 2008-03-19 14:00:06 status unpacked libstdc++6 4.3.0-1 2008-03-19 14:00:06 status half-configured libstdc++6 4.3.0-1 2008-03-19 14:00:06 status installed libstdc++6 4.3.0-1 2008-03-19 14:00:06 install libcwidget1 <none> 0.5.6.1-3 2008-03-19 14:00:06 status half-installed libcwidget1 0.5.6.1-3 2008-03-19 14:00:06 status unpacked libcwidget1 0.5.6.1-3 2008-03-19 14:00:06 status unpacked libcwidget1 0.5.6.1-3 2008-03-19 14:00:06 upgrade aptitude 0.4.4-4 0.4.10-1+b1 2008-03-19 14:00:06 status half-configured aptitude 0.4.4-4 2008-03-19 14:00:06 status unpacked aptitude 0.4.4-4 2008-03-19 14:00:06 status half-installed aptitude 0.4.4-4 2008-03-19 14:00:06 status half-installed aptitude 0.4.4-4 2008-03-19 14:00:07 status unpacked aptitude 0.4.10-1+b1 2008-03-19 14:00:07 status unpacked aptitude 0.4.10-1+b1 2008-03-19 14:00:07 upgrade apt-utils 0.6.46.4-0.1 0.7.11 2008-03-19 14:00:07 status half-configured apt-utils 0.6.46.4-0.1 2008-03-19 14:00:07 status unpacked apt-utils 0.6.46.4-0.1 2008-03-19 14:00:07 status half-installed apt-utils 0.6.46.4-0.1 2008-03-19 14:00:07 status half-installed apt-utils 0.6.46.4-0.1 2008-03-19 14:00:07 status unpacked apt-utils 0.7.11 2008-03-19 14:00:07 status unpacked apt-utils 0.7.11 2008-03-19 14:00:07 upgrade apt 0.6.46.4-0.1 0.7.11 2008-03-19 14:00:07 status half-configured apt 0.6.46.4-0.1 2008-03-19 14:00:07 status unpacked apt 0.6.46.4-0.1 2008-03-19 14:00:07 status half-installed apt 0.6.46.4-0.1 2008-03-19 14:00:07 status half-installed apt 0.6.46.4-0.1 2008-03-19 14:00:07 status unpacked apt 0.7.11 2008-03-19 14:00:07 status unpacked apt 0.7.11 2008-03-19 14:00:07 status unpacked apt 0.7.11 2008-03-19 14:00:07 status unpacked apt 0.7.11 2008-03-19 14:00:07 status unpacked apt 0.7.11 2008-03-19 14:00:07 status unpacked apt 0.7.11 2008-03-19 14:00:07 status half-configured apt 0.7.11 2008-03-19 14:00:07 status installed apt 0.7.11 2008-03-19 14:00:07 status unpacked libcwidget1 0.5.6.1-3 2008-03-19 14:00:07 status half-configured libcwidget1 0.5.6.1-3 2008-03-19 14:00:07 status installed libcwidget1 0.5.6.1-3 2008-03-19 14:00:07 status unpacked aptitude 0.4.10-1+b1 2008-03-19 14:00:07 status unpacked aptitude 0.4.10-1+b1 2008-03-19 14:00:07 status unpacked aptitude 0.4.10-1+b1 2008-03-19 14:00:07 status half-configured aptitude 0.4.10-1+b1 2008-03-19 14:00:07 status installed aptitude 0.4.10-1+b1 2008-03-19 14:00:07 status unpacked apt-utils 0.7.11 2008-03-19 14:00:07 status half-configured apt-utils 0.7.11 2008-03-19 14:00:07 status installed apt-utils 0.7.11 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]