package libpython3.10-minimal 3.10.4-1+focal1 failed to install/upgrade: trying to overwrite '/usr/lib/python3.10/typing', which is also in package libpython3.10-stdlib:amd64 3.10.4-1+focal3

Bug #1969190 reported by Valeriu Ionut Pavel
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python3.10 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

software update is crashing

ProblemType: Package
Architecture: amd64
Date: Fri Apr 15 09:20:26 2022
Package: libpython3.10-minimal 3.10.4-1+focal2
SourcePackage: python3.10
ErrorMessage:
 trying to overwrite '/usr/lib/python3.10/typing.py', which is also in package libpython3.10-stdlib:amd64 3.10.4-1+foca
DuplicateSignature:
 package:libpython3.10-minimal:3.10.4-1+focal1 [origin: unknown]
 Unpacking libpython3.10-stdlib:amd64 (3.10.4-1+focal2) over (3.10.4-1+focal1) ...
 dpkg: error processing archive /tmp/apt-dpkg-install-Tno8nW/05-libpython3.10-stdlib_3.10.4-1+focal2_amd64.deb (--unpack):
  trying to overwrite '/usr/lib/python3.10/_sysconfigdata__linux_x86_64-linux-gnu.py', which is also in package libpython3.10-minimal:amd64 3.10.4-1+focal1
...
ProcVersionSignature: Ubuntu 5.13.0-39.44~20.04.1-generic 5.13.19
Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python3.10, Python 3.10.4, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.6
Tags: third-party-packages focal package-conflict
Title: package libpython3.10-minimal 3.10.4-1+focal1 [origin: unknown] failed to install/upgrade: trying to overwrite '/usr/lib/python3.10/typing.py', which is also in package libpython3.10-stdlib:amd64 3.10.4-1+focal1
Uname: Linux 5.13.0-39-generic x86_64
UnreportableReason: This is not an official Ubuntu package. Please remove any third party package and try again.
UpgradeStatus: No upgrade log present (probably fresh install)

affects: python3.9 (Ubuntu) → python3.10 (Ubuntu)
Revision history for this message
Robert Los (robert-robertlos) wrote (last edit ):

I got a similar error while running an update:

Preparing to unpack .../libpython3.10-stdlib_3.10.4-3~20.04.sav0_amd64.deb ...
Unpacking libpython3.10-stdlib:amd64 (3.10.4-3~20.04.sav0) over (3.10.4-1+focal1) ...
dpkg: error processing archive /var/cache/apt/archives/libpython3.10-stdlib_3.10.4-3~20.04.sav0_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/python3.10/_sysconfigdata__linux_x86_64-linux-gnu.py', which is also in package libpython3.10-minimal:amd64 3.10.4-1+focal1
Preparing to unpack .../libpython3.10-minimal_3.10.4-3~20.04.sav0_amd64.deb ...
Unpacking libpython3.10-minimal:amd64 (3.10.4-3~20.04.sav0) over (3.10.4-1+focal1) ...
dpkg: error processing archive /var/cache/apt/archives/libpython3.10-minimal_3.10.4-3~20.04.sav0_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/python3.10/typing.py', which is also in package libpython3.10-stdlib:amd64 3.10.4-1+focal1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libpython3.10-stdlib_3.10.4-3~20.04.sav0_amd64.deb
 /var/cache/apt/archives/libpython3.10-minimal_3.10.4-3~20.04.sav0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

this while doing a sudo apt update && sudo apt upgrade

Revision history for this message
William Andrea (wjandrea) wrote :

I think this is caused by a deadsnakes issue (https://github.com/deadsnakes/issues/issues/207), which I was experiencing myself (and resolved by following the instructions on GitHub), but it was just making the upgrade fail, not making update crash. It might be affecting you worse because it looks like you've set python3.10 as "python", probably by symlinking /usr/bin/python -> /usr/bin/python3.10, which contradicts python-is-python2.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in python3.10 (Ubuntu):
status: New → Confirmed
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.