[Bug 1943124] Re: Upgrade fails due to "text file busy"

David Kastrup 1943124 at bugs.launchpad.net
Sat Sep 11 12:45:53 UTC 2021


Ok, here is another possible problem source: I just did 'ls /etc/ld*' by
accident and got this:

$ ls /etc/ld*
/etc/ld.so.conf  /etc/ld.so.nohwcap

/etc/ldap:
ldap.conf

/etc/ld.so.conf.d:
fakeroot-i386-linux-gnu.conf    i386-linux-gnu.conf           libc.conf           x86_64-linux-gnu.conf            zz_amd64-biarch-compat.conf  zz_i386-biarch-compat.conf.dpkg-new
fakeroot-x86_64-linux-gnu.conf  i386-linux-gnu.conf.dpkg-new  libc.conf.dpkg-new  x86_64-linux-gnu_guile-1.8.conf  zz_i386-biarch-compat.conf   zz_x32-biarch-compat.conf

So there is a number of .dpkg-new files in /etc/ld.so.conf.d left over
that might sabotage the update.  Removing them now, rerunning ldconfig
and trying again...

Nope.  The .dpkg-new files remain gone but the upgrade still fails in
the same manner and there is no /etc/ld.so.cache anymore afterwards.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1943124

Title:
  Upgrade fails due to "text file busy"

Status in glibc package in Ubuntu:
  New

Bug description:
  I cannot upgrade to the current impish, getting the following error
  (even in a root shell in recovery mode):

  $ sudo apt --fix-broken install
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  Correcting dependencies... Done
  The following additional packages will be installed:
    libc6 linux-headers-lowlatency linux-lowlatency
  The following packages will be upgraded:
    libc6 linux-headers-lowlatency linux-lowlatency
  3 upgraded, 0 newly installed, 0 to remove and 1855 not upgraded.
  8 not fully installed or removed.
  Need to get 0 B/3032 kB of archives.
  After this operation, 391 kB disk space will be freed.
  Do you want to continue? [Y/n] 
  locale: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by locale)
  Preconfiguring packages ...
  (Reading database ... 683369 files and directories currently installed.)
  Preparing to unpack .../libc6_2.34-0ubuntu2_amd64.deb ...
  locale: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by locale)
  Checking for services that may need to be restarted...
  Checking init scripts...
  Checking for services that may need to be restarted...
  Checking init scripts...
  Stopping some services possibly affected by the upgrade (will be restarted later):

  Unpacking libc6:amd64 (2.34-0ubuntu2) over (2.33-0ubuntu5) ...
  dpkg: error processing archive /var/cache/apt/archives/libc6_2.34-0ubuntu2_amd64.deb (--unpack):
   unable to open '/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2.dpkg-new': Text file busy
  Errors were encountered while processing:
   /var/cache/apt/archives/libc6_2.34-0ubuntu2_amd64.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  There is no actual file '/lib/x86_64-linux-gnu/ld-
  linux-x86-64.so.2.dpkg-new' left after the aborted install.  Renaming
  the file '/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2' manually turns
  out to be a rather bad idea.  Not found a recipe to get past that so
  far.

  ProblemType: Bug
  DistroRelease: Ubuntu 21.04
  Package: libc6 2.33-0ubuntu5 [modified: usr/share/doc/libc6/NEWS.gz usr/share/doc/libc6/changelog.Debian.gz usr/share/lintian/overrides/libc6]
  ProcVersionSignature: Ubuntu 5.13.0-14.14-lowlatency 5.13.1
  Uname: Linux 5.13.0-14-lowlatency x86_64
  ApportVersion: 2.20.11-0ubuntu65.1
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: XFCE
  Date: Thu Sep  9 12:51:28 2021
  InstallationDate: Installed on 2011-10-14 (3617 days ago)
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111011)
  SourcePackage: glibc
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1943124/+subscriptions




More information about the foundations-bugs mailing list