Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#972726: dh-python: uninstallable when python-is-python2 is installed

39 views
Skip to first unread message

Paul Wise

unread,
Oct 22, 2020, 9:50:04 PM10/22/20
to
Package: dh-python
Version: 4.20200925
Severity: normal

It appears to be impossible to install dh-python and python-is-python2
on the same system due to the dh-python `Breaks: python` field:

# apt install dh-python python-is-python2
Reading package lists... Done
Building dependency tree
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:
dh-python : Breaks: python
E: Unable to correct problems, you have held broken packages.

# apt-get install dh-python python-is-python2
Reading package lists... Done
Building dependency tree
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:
dh-python : Breaks: python
E: Unable to correct problems, you have held broken packages.

# aptitude install dh-python python-is-python2
The following NEW packages will be installed:
dh-python{b} libexpat1{a} libpython2-stdlib{a} libpython2.7-minimal{a}
libpython2.7-stdlib{a} libpython3-stdlib{a} libpython3.8-minimal{a}
libpython3.8-stdlib{a} libreadline8{a} mime-support{a} python-is-python2
python2{a} python2-minimal{a} python2.7{a} python2.7-minimal{a} python3{a}
python3-distutils{a} python3-lib2to3{a} python3-minimal{a}
python3.8{a} python3.8-minimal{a} readline-common{a}
The following packages are RECOMMENDED but will NOT be installed:
file
0 packages upgraded, 22 newly installed, 0 to remove and 0 not upgraded.
Need to get 226 kB/9599 kB of archives. After unpacking 38.6 MB will be used.
The following packages have unmet dependencies:
dh-python : Breaks: python but it is not going to be installed
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1) python-is-python2 [Not Installed]



Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1) dh-python [Not Installed]



Accept this solution? [Y/n/q/?] n

*** No more solutions available ***

The following actions will resolve these dependencies:

Keep the following packages at their current version:
1) dh-python [Not Installed]



Accept this solution? [Y/n/q/?] q
Abandoning all efforts to resolve these dependencies.
Abort.

-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.9.0-1-amd64 (SMP w/4 CPU threads)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /bin/dash
Init: unable to detect

Versions of packages dh-python depends on:
ii python3 3.8.6-1

dh-python recommends no packages.

Versions of packages dh-python suggests:
ii dpkg-dev 1.20.5
ii libdpkg-perl 1.20.5

--
bye,
pabs

https://wiki.debian.org/PaulWise
signature.asc

Raphaël Hertzog

unread,
Nov 9, 2020, 12:00:06 PM11/9/20
to
Package: dh-python
Version: 4.20200925
Followup-For: Bug #972726
User: de...@kali.org
Usertags: origin-kali

I made the same observation today. It seems to me that the breaks
was a bit too large. You can likely keep the same effect by using a
versioned breaks that would not conflict with the provides of
python-is-python2.

-- System Information:
Debian Release: bullseye/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-python depends on:
ii python3 3.8.6-1
ii python3-distutils 3.8.6-1

dh-python recommends no packages.

Versions of packages dh-python suggests:
ii dpkg-dev 1.20.5
ii libdpkg-perl 1.20.5

-- no debconf information

Norman Rasmussen

unread,
Mar 14, 2021, 8:40:04 PM3/14/21
to
Package: dh-python
Version: 4.20201102+nmu1
Followup-For: Bug #972726

I think this is due to the fix for #966832, which added breaks python.
I think that was reported as #968046, which was fixed by adding a
versioned breaks python2, but did not change the breaks python.

I assume the breaks on python should be versioned similar to the breaks
python2?

-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (700, 'testing'), (650, 'stable'), (500, 'testing-security')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 5.6.0-2-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-python depends on:
ii python3 3.9.2-2
ii python3-distutils 3.9.2-1

dh-python recommends no packages.

Versions of packages dh-python suggests:
ii dpkg-dev 1.20.7.1
ii libdpkg-perl 1.20.7.1

-- no debconf information

Norman Rasmussen

unread,
Mar 14, 2021, 9:10:03 PM3/14/21
to
Package: dh-python
Version: 4.20201102+nmu1
Followup-For: Bug #972726

Note that python-is-python2 (2.7.18-8) provides python (= 2.7.18-1), so
the breaks has to be python (<< 2.7.18-1), otherwise it will conflict
with python provided by python-is-python2.


-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (700, 'testing'), (650, 'stable'), (500, 'testing-security')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 5.6.0-2-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dh-python depends on:
ii python3 3.9.2-2
ii python3-distutils 3.9.2-1

dh-python recommends no packages.

Versions of packages dh-python suggests:
0 new messages