package libc6-dev 2.38-1ubuntu6 failed to install/upgrade: trying to overwrite '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is also in package libc6:amd64 2.37-0ubuntu2.1

Bug #2042665 reported by ganesh
46
This bug affects 8 people
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Fix Released
Medium
Unassigned
Mantic
Won't Fix
Low
Unassigned
Noble
Fix Released
Medium
Unassigned

Bug Description

[Issue]
The file sotruss-lib.so has been moved from libc6 to libc6-dev in the 2.38 merge without the proper Replace statement being filed. This is normally not a problem during a standard upgrade process as ubuntu-release-upgrader adds --force-overwrite to the dpkg options to prevent this kind of issues from breaking upgrades.

However, if the upgrade breaks for unrelated reasons, the user will be left trying to upgrade manually via `apt full-upgrade`, which will trigger the issue.

[Workaround]
When invoking `apt full-upgrade` manually, do it with the following option:

apt full-upgrade -o Dpkg::Options::="--force-overwrite"

[Original Report]
I am unable to install ubuntu 23.10 ,

ProblemType: PackageDistroRelease: Ubuntu 23.10
Package: libc6-dev 2.38-1ubuntu6
ProcVersionSignature: Ubuntu 6.2.0-36.37-generic 6.2.16
Uname: Linux 6.2.0-36-generic x86_64
ApportVersion: 2.27.0-0ubuntu5
Architecture: amd64
CasperMD5CheckResult: pass
Date: Fri Nov 3 18:49:58 2023
DuplicateSignature:
 package:libc6-dev:2.38-1ubuntu6
 Unpacking libc6-dev:amd64 (2.38-1ubuntu6) over (2.37-0ubuntu2.1) ...
 dpkg: error processing archive /var/cache/apt/archives/libc6-dev_2.38-1ubuntu6_amd64.deb (--unpack):
  trying to overwrite '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is also in package libc6:amd64 2.37-0ubuntu2.1
ErrorMessage: trying to overwrite '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is also in package libc6:amd64 2.37-0ubuntu2.1
InstallationDate: Installed on 2023-02-08 (269 days ago)
InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
Python3Details: /usr/bin/python3.11, Python 3.11.6, python3-minimal, 3.11.4-5
PythonDetails: N/A
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions:
 dpkg 1.22.0ubuntu1
 apt 2.7.3SourcePackage: glibc
Title: package libc6-dev 2.38-1ubuntu6 failed to install/upgrade: trying to overwrite '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is also in package libc6:amd64 2.37-0ubuntu2.1
UpgradeStatus: Upgraded to mantic on 2023-11-03 (0 days ago)

CVE References

Revision history for this message
ganesh (iamganesh) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "It shows in terminal when I am installing ubuntu latest version." seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Simon Chopin (schopin) wrote : Re: [Bug 2042665] Re: package libc6-dev 2.38-1ubuntu6 failed to install/upgrade: trying to overwrite '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is also in package libc6:amd64 2.37-0ubuntu2.1
Download full text (3.4 KiB)

Hi,

Thanks for the report. Which steps did you take to upgrade?

On Fri, 3 Nov 2023, 18:25 Ubuntu Foundations Team Bug Bot, <
<email address hidden>> wrote:

> The attachment "It shows in terminal when I am installing ubuntu latest
> version." seems to be a patch. If it isn't, please remove the "patch"
> flag from the attachment, remove the "patch" tag, and if you are a
> member of the ~ubuntu-reviewers, unsubscribe the team.
>
> [This is an automated message performed by a Launchpad user owned by
> ~brian-murray, for any issues please contact him.]
>
> ** Tags added: patch
>
> --
> You received this bug notification because you are a member of Ubuntu
> Toolchain Hackers, which is subscribed to glibc in Ubuntu.
> Matching subscriptions: glibc
> https://bugs.launchpad.net/bugs/2042665
>
> Title:
> package libc6-dev 2.38-1ubuntu6 failed to install/upgrade: trying to
> overwrite '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is
> also in package libc6:amd64 2.37-0ubuntu2.1
>
> Status in glibc package in Ubuntu:
> New
>
> Bug description:
> I am unable to install ubuntu 23.10 ,
>
> ProblemType: Package
> DistroRelease: Ubuntu 23.10
> Package: libc6-dev 2.38-1ubuntu6
> ProcVersionSignature: Ubuntu 6.2.0-36.37-generic 6.2.16
> Uname: Linux 6.2.0-36-generic x86_64
> ApportVersion: 2.27.0-0ubuntu5
> Architecture: amd64
> CasperMD5CheckResult: pass
> Date: Fri Nov 3 18:49:58 2023
> DuplicateSignature:
> package:libc6-dev:2.38-1ubuntu6
> Unpacking libc6-dev:amd64 (2.38-1ubuntu6) over (2.37-0ubuntu2.1) ...
> dpkg: error processing archive
> /var/cache/apt/archives/libc6-dev_2.38-1ubuntu6_amd64.deb (--unpack):
> trying to overwrite '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so',
> which is also in package libc6:amd64 2.37-0ubuntu2.1
> ErrorMessage: trying to overwrite
> '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is also in package
> libc6:amd64 2.37-0ubuntu2.1
> InstallationDate: Installed on 2023-02-08 (269 days ago)
> InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64
> (20220809.1)
> Python3Details: /usr/bin/python3.11, Python 3.11.6, python3-minimal,
> 3.11.4-5
> PythonDetails: N/A
> RebootRequiredPkgs: Error: path contained symlinks.
> RelatedPackageVersions:
> dpkg 1.22.0ubuntu1
> apt 2.7.3
> SourcePackage: glibc
> Title: package libc6-dev 2.38-1ubuntu6 failed to install/upgrade: trying
> to overwrite '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is
> also in package libc6:amd64 2.37-0ubuntu2.1
> UpgradeStatus: Upgraded to mantic on 2023-11-03 (0 days ago)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/2042665/+subscriptions
>
> Launchpad-Notification-Type: bug
> Launchpad-Bug: distribution=ubuntu; sourcepackage=glibc; component=main;
> status=New; importance=Undecided; assignee=None;
> Launchpad-Bug-Tags: amd64 apport-package mantic need-duplicate-check
> package-conflict patch
> Launchpad-Bug-Information-Type: Public
> Launchpad-Bug-Private: no
> Launchpad-Bug-Security-Vulnerability: no
> Launchpad-Bug-Commenters: crichton iamganesh
> Launchpad-Bug-Reporter: g...

Read more...

Revision history for this message
ganesh (iamganesh) wrote : Ubuntu Error Due To Upgrading 23.10

Hi,
I recently upgraded to Ubuntu 23.10 in the installation process this show
an error so, I am not completely install Ubuntu 23.10 and installed
partially. I attached a screenshot that is shown in my terminal. Please
suggest me fix which I install fully Ubuntu 23.10.
Thanks

Revision history for this message
Simon Chopin (schopin) wrote :

Are you *installing* Ubuntu or upgrading? If so, how did you upgrade? This looks like you tried to upgrade by manually editing your sources.list to point to Mantic, which isn't a supported method.

If so, you should be able to recover from the error by adding -o Dpkg::Options::="--force-overwrite" to the apt command you used to upgrade.

Revision history for this message
ganesh (iamganesh) wrote : Re: [Bug 2042665] Re: package libc6-dev 2.38-1ubuntu6 failed to install/upgrade: trying to overwrite '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is also in package libc6:amd64 2.37-0ubuntu2.1

On 11/5/23 2:13 PM, Simon Chopin wrote:
> Are you *installing* Ubuntu or upgrading? If so, how did you upgrade?
> This looks like you tried to upgrade by manually editing your
> sources.list to point to Mantic, which isn't a supported method.
>
> If so, you should be able to recover from the error by adding -o
> Dpkg::Options::="--force-overwrite" to the apt command you used to
> upgrade.
>
I am upgrading Ubuntu using*Software Updater *I am attaching *Software
Updater screenshot* and when I click continue then It shows error in
terminal that screenshot I have shared with you previously.

Please suggest me how can I fix this error.

Revision history for this message
ganesh (iamganesh) wrote : Fwd: [Bug 2042665] Re: package libc6-dev 2.38-1ubuntu6 failed to install/upgrade: trying to overwrite '/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is also in package libc6:amd64 2.37-0ubuntu2.1

---------- Forwarded message ---------
From: ganesh <email address hidden>
Date: Sun, 5 Nov 2023 at 14:45
Subject: Re: [Bug 2042665] Re: package libc6-dev 2.38-1ubuntu6 failed to
install/upgrade: trying to overwrite
'/usr/lib/x86_64-linux-gnu/audit/sotruss-lib.so', which is also in package
libc6:amd64 2.37-0ubuntu2.1
To: Bug 2042665 <email address hidden>

On 11/5/23 2:13 PM, Simon Chopin wrote:

Are you *installing* Ubuntu or upgrading? If so, how did you upgrade?
This looks like you tried to upgrade by manually editing your
sources.list to point to Mantic, which isn't a supported method.

If so, you should be able to recover from the error by adding -o
Dpkg::Options::="--force-overwrite" to the apt command you used to
upgrade.

I am upgrading Ubuntu using* Software Updater *I am attaching *Software
Updater screenshot* and when I click continue then It shows error in
terminal that screenshot I have shared with you previously.

Please suggest me how can I fix this error.

Revision history for this message
ganesh (iamganesh) wrote : Ubuntu Upgrade New Bug

This error is shown in my terminal when I type *sudo apt upgrade* in my
terminal.

I am also attaching the error image that shows in my terminal.

Bug more information click this link
<https://askubuntu.com/questions/1491726/dpkg-error-after-upgrading-to-ubuntu-23-10>

Please help me to fix this issue.

Thank you

Revision history for this message
ganesh (iamganesh) wrote : Fwd: Ubuntu Upgrade New Bug

---------- Forwarded message ---------
From: Ganesh Mishra <email address hidden>
Date: Tue, 7 Nov 2023 at 18:58
Subject: Ubuntu Upgrade New Bug
To: Bug 2042665 <email address hidden>

This error is shown in my terminal when I type *sudo apt upgrade* in my
terminal.

I am also attaching the error image that shows in my terminal.

Bug more information click this link
<https://askubuntu.com/questions/1491726/dpkg-error-after-upgrading-to-ubuntu-23-10>

Please help me to fix this issue.

Thank you

Revision history for this message
Simon Chopin (schopin) wrote :

Hi,

The latter problem is unrelated to the issue at hand, as the folks at AskUbuntu have indicated it is an issue with grub-customizer, which incidentally hasn't been part of Ubuntu since *before* Jammy. Since your system used to be a Jammy one, which logically means you installed it from a third-party, e.g. a PPA. Please get in touch with whoever supplied it so that they can help you with this.

Now, that said, I can at least advise you to immediately back up your personal data before doing anything else, including attempting a reboot of the machine, since you're having issues with the bootloader.

Regarding the initial issue, there is indeed a small issue with a file that moved between libc6 and libc-dev between Lunar and Mantic without the proper metadata having been updated. However, upgrading from one version of Ubuntu to another isn't supposed to be done via the standard updater nor a simple `apt upgrade`, but rather through dedicated upgrade tooling, e.g. https://ubuntu.com/tutorials/upgrading-ubuntu-desktop#1-before-you-start for a graphical UI, or `do-release-upgrade` in a terminal.

To quickly unstuck you on the libc6/libc-dev issue, something along the lines of `sudo apt -o Dpkg::Options::="--force-overwrite" full-upgrade` should force through that part of the upgrade. However, that's a band-aid, but even assuming you manage to sort out your grub-customizer issues, you're likely to face further issues, since it appears you've tried to force the upgrade once the first problem was encountered, making it pretty hard to recover. My advice is to either restore from an earlier backup, or even simply reinstall.

Changed in glibc (Ubuntu):
importance: Undecided → Medium
Changed in glibc (Ubuntu Mantic):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in glibc (Ubuntu Mantic):
status: New → Confirmed
Changed in glibc (Ubuntu):
status: New → Confirmed
Simon Chopin (schopin)
Changed in glibc (Ubuntu Noble):
status: Confirmed → Triaged
tags: added: foundations-todo
Simon Chopin (schopin)
Changed in glibc (Ubuntu Noble):
status: Triaged → In Progress
Revision history for this message
Simon Chopin (schopin) wrote :

I'm not going to prepare a fix for this for Mantic, as any glibc SRU is fairly risky and the normal (and only supported) upgrade path should work around the issue. I might revisit this decision if we have to do an SRU for a more critical bug anyway.

This *will* get fixed for Noble, in any case.

Simon Chopin (schopin)
Changed in glibc (Ubuntu Mantic):
status: Confirmed → Won't Fix
Simon Chopin (schopin)
description: updated
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package glibc - 2.39-0ubuntu1

---------------
glibc (2.39-0ubuntu1) noble; urgency=medium

  * New upstream release
    Contains fixes for the following CVEs:
    - CVE-2023-6246: Heap buffer overflow in __vsyslog_internal()
    - CVE-2023-6779: Heap buffer overflow in __vsyslog_internal()
    - CVE-2023-6780: Integer overflow in __vsyslog_internal()
    Patches:
    - Several patches refreshed
    - d/p/localedata/lv_LV-current.patch: dropped, applied upstream
    - d/p/lp{2031495,2032624}: dropped, applied upstream
    - d/p/any/git-c-utf-8-language.diff: dropped, applied upstream
  * d/p/ubuntu/submitted-tests-gracefully-handle-AppArmor-userns-containment.patch:
    Fix the tests in recent apparmor environments (LP: #2048375)
  * Drop libnss-nis and libnss-nisplus to Suggests (LP: #2045241)
  * Fix Replaces version for libsotruss.so file move (LP: #2042665)
  * Remove libc6-dev dependency on libtirpc-dev (LP: #2045763)
  * Dropped a lot of Ubuntu-specific xfails that are now passing.
  * Drop the -prof variant to instead use frame pointers on all 64-bit
    architectures by default to match the rest of the distro (LP: #2042790)

 -- Simon Chopin <email address hidden> Thu, 01 Feb 2024 09:44:24 +0100

Changed in glibc (Ubuntu Noble):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.