python3-distutils : Depends: python3-lib2to3 (= 3.12.2-3ubuntu1.1) but 3.12.2-3ubuntu4 is to be installed

Bug #2060772 reported by Ramana Reddy
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python3-stdlib-extensions (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

In the ubuntu 24.04 daily build, when we are trying install python3-distutils, its failing due to unmet dependencies.

ubuntu@ubuntu24:~$ sudo apt-get install python3-distutils
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-distutils : Depends: python3-lib2to3 (= 3.12.2-3ubuntu1.1) but 3.12.2-3ubuntu4 is to be installed
N: Ignoring file 'ubuntu.sources.curtin.old' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to correct problems, you have held broken packages.

Revision history for this message
satmandu (satadru-umich) wrote :

It looks like python3-distutils package didn't get generated from the build?

https://launchpad.net/ubuntu/+source/python3-stdlib-extensions/3.12.2-3ubuntu4

Also, the file list of the current python3-distutils package looks like it is all python 3.11 files.

Revision history for this message
Steve Langasek (vorlon) wrote :

distutils is obsoleted in Python 3.12. It is currently visible in the archive because the removal is in process.

Changed in python3-stdlib-extensions (Ubuntu):
status: New → Invalid
Revision history for this message
Ramana Reddy (gtvrreddy) wrote : Re: [Bug 2060772] Re: python3-distutils : Depends: python3-lib2to3 (= 3.12.2-3ubuntu1.1) but 3.12.2-3ubuntu4 is to be installed

Thanks for your prompt response.
If that is the case, could you please suggest the equivalent package in
ubuntu 24.04

On Wed, Apr 10, 2024 at 9:41 PM Steve Langasek <email address hidden>
wrote:

> distutils is obsoleted in Python 3.12. It is currently visible in the
> archive because the removal is in process.
>
> ** Changed in: python3-stdlib-extensions (Ubuntu)
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2060772
>
> Title:
> python3-distutils : Depends: python3-lib2to3 (= 3.12.2-3ubuntu1.1) but
> 3.12.2-3ubuntu4 is to be installed
>
> Status in python3-stdlib-extensions package in Ubuntu:
> Invalid
>
> Bug description:
> In the ubuntu 24.04 daily build, when we are trying install
> python3-distutils, its failing due to unmet dependencies.
>
>
> ubuntu@ubuntu24:~$ sudo apt-get install python3-distutils
> [sudo] password for ubuntu:
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
>
> The following packages have unmet dependencies:
> python3-distutils : Depends: python3-lib2to3 (= 3.12.2-3ubuntu1.1) but
> 3.12.2-3ubuntu4 is to be installed
> N: Ignoring file 'ubuntu.sources.curtin.old' in directory
> '/etc/apt/sources.list.d/' as it has an invalid filename extension
> E: Unable to correct problems, you have held broken packages.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/python3-stdlib-extensions/+bug/2060772/+subscriptions
>
>

Revision history for this message
Steve Langasek (vorlon) wrote :

On Wed, Apr 10, 2024 at 07:45:57PM -0000, Ramana Reddy wrote:
> Thanks for your prompt response.
> If that is the case, could you please suggest the equivalent package in
> ubuntu 24.04

There is no equivalent package. distutils is obsolete. You can consult
python upstream porting guides for migrating off of distutils.

Revision history for this message
Davide Palma (eldavo) wrote :

Same problem, I'm trying to install python3.11-venv , which depends on python3.11-distutils , which however is a virtual package pointing to python3-distutils , which is the python3.12 version.

Revision history for this message
Steve Langasek (vorlon) wrote :

On Thu, Apr 11, 2024 at 08:41:05AM -0000, Davide Palma wrote:
> Same problem, I'm trying to install python3.11-venv , which depends on
> python3.11-distutils , which however is a virtual package pointing to
> python3-distutils , which is the python3.12 version.

python3.11 will be dropped entirely before 24.04 releases.

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.