[Bug 1943124] Re: Upgrade fails due to "text file busy"
Didier L
1943124 at bugs.launchpad.net
Sat Jun 25 15:45:30 UTC 2022
Same issue for me on an old laptop installed from Ubuntu 14.04 according
to /var/log/installer/media-info, which was itself installed on
2014-10-10… and /usr/lib64 was itself created (or updated) on
2014-10-15, so clearly not through the installer.
I already had previously some issues with usrmerge complaining about other symlinks, I guess it was somehow related:
- /usr/lib64/ld-linux-x86-64.so.2
- /bin/ksh
Note that fixing this does not seem trivial as (re)moving /usr/lib64 essentially breaks the system. I couldn’t use sudo any more (file not found for any command run as root), but I was expecting it so I had kept a root terminal open. From there, I was able to fix my issue by moving the new lib64 directory I had prepared:
/usr# lib64-new/ld-linux-x86-64.so.2 /usr/bin/mv lib64-new lib64
After recreating the /usr/lib64 directory, I am able to proceed with the
upgrade (from 21.04 to 21.10 first).
--
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:
Confirmed
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