sid perl update problem with 5.12.4-2: text file busy
Niko Tyni
ntyni at debian.org
Wed Aug 10 19:03:58 UTC 2011
On Wed, Aug 10, 2011 at 06:28:39PM +0200, Peter Gervai wrote:
> So, I have sid not updated for a few weeks now. Needed to update perl
> from 5.12.4-1 to 5.12.4-2, and got the following:
>
> dpkg: error processing
> /var/cache/apt/archives/perl-base_5.12.4-2_i386.deb (--install):
> unable to open '/usr/bin/perl5.12.4.dpkg-new': Text file busy
Thanks for the report and the strace output. You're not the only one
to see this. See #635683 (cc'd as you gave your permission to make this
into a bug report.)
Looks like dpkg tries to sync /usr/bin/perl5.12.4.dpkg-new when a hard
link has already been renamed to /usr/bin/perl and presumably gotten
executed by someone else.
You might want to comment on the bug and report the dpkg version you're
using.
Selected parts of your full trace:
link("/./usr/bin/perl5.12.4.dpkg-new", "/usr/bin/perl.dpkg-new") = 0
chown32("/usr/bin/perl.dpkg-new", 0, 0) = 0
chmod("/usr/bin/perl.dpkg-new", 0755) = 0
utimes("/usr/bin/perl.dpkg-new", {{1312992330, 0}, {1311796173, 0}}) = 0
readlink("/usr/bin/perl", "perl5.12.4"..., 22) = 10
symlink("perl5.12.4", "/usr/bin/perl.dpkg-tmp") = 0
lchown32("/usr/bin/perl.dpkg-tmp", 0, 0) = 0
rename("/usr/bin/perl.dpkg-new", "/usr/bin/perl") = 0
[...]
open("/usr/bin/perl5.12.4.dpkg-new", O_WRONLY|O_LARGEFILE) = 9
sync_file_range(0x9, 0, 0, 0) = 0
close(9) = 0
[...]
open("/usr/lib/perl/5.12.4/lib.pm.dpkg-new", O_WRONLY|O_LARGEFILE) = 9
fsync(9) = 0
close(9) = 0
rename("/usr/lib/perl/5.12.4/lib.pm.dpkg-new", "/usr/lib/perl/5.12.4/lib.pm") = 0
open("/usr/bin/perl5.12.4.dpkg-new", O_WRONLY|O_LARGEFILE) = -1 ETXTBSY (Text file busy)
perl-base has had hard links for ages without any reported problems;
the relevant one here is (from perl-base_5.12.4-1_i386.deb of
snapshot.debian.org):
-rwxr-xr-x root/root 1434064 2011-06-29 01:41 ./usr/bin/perl5.12.4
hrwxr-xr-x root/root 0 2011-06-29 01:41 ./usr/bin/perl link to ./usr/bin/perl5.12.4
--
Niko Tyni ntyni at debian.org
More information about the Perl-maintainers
mailing list