Page MenuHomePureOS Tracker

Dependency problems, can't install apt-listchanges in Byzantium
Open, NormalPublic

Description

"apt install apt-listchanges" gives the following output:

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:
python3-apt : Depends: python3 (< 3.8) but 3.8.2-3 is to be installed
E: Unable to correct problems, you have held broken packages.

Event Timeline

alexngould created this task.Sun, Jun 14, 12:43
jeremiah.foster triaged this task as Normal priority.Tue, Jun 23, 10:47

I can't reproduce;

$ sudo apt install apt-listchanges
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python3-debconf
The following NEW packages will be installed:
  apt-listchanges python3-debconf
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 132 kB of archives.
After this operation, 439 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 https://repo.puri.sm/pureos byzantium/main amd64 python3-debconf all 1.5.74 [4,020 B]
Get:2 https://repo.puri.sm/pureos byzantium/main amd64 apt-listchanges all 3.22 [128 kB]
Fetched 132 kB in 1s (144 kB/s)      
Preconfiguring packages ...
Deferring configuration of apt-listchanges until /usr/bin/python3
and python's debconf module are available
Selecting previously unselected package python3-debconf.
(Reading database ... 422305 files and directories currently installed.)
Preparing to unpack .../python3-debconf_1.5.74_all.deb ...
Unpacking python3-debconf (1.5.74) ...
Selecting previously unselected package apt-listchanges.
Preparing to unpack .../apt-listchanges_3.22_all.deb ...
Unpacking apt-listchanges (3.22) ...
Setting up python3-debconf (1.5.74) ...
Setting up apt-listchanges (3.22) ...

Creating config file /etc/apt/listchanges.conf with new version
Processing triggers for man-db (2.9.2-1) ...

Very strange. Are we using different repositories?

$ apt show python3-apt
Package: python3-apt
Version: 1.8.4pureos3
Priority: optional
Section: python
Source: python-apt
Maintainer: PureOS Maintainers <pureos-project@lists.puri.sm>
Original-Maintainer: APT Development Team <deity@lists.debian.org>
Installed-Size: 699 kB
Provides: python3.7-apt
Depends: python3 (<< 3.8), python3 (>= 3.7~), python3:any (>= 3.3~), libapt-inst2.0 (>= 1.7~alpha2ubuntu1~), libapt-pkg5.0 (>= 1.7.0~alpha3~), libc6 (>= 2.14), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2), python-apt-common
Recommends: lsb-release, iso-codes
Suggests: python3-apt-dbg, python-apt-doc, apt
Breaks: python-apt (<< 0.7.98+nmu1)
Replaces: python-apt (<< 0.7.98+nmu1)
$ apt show python3
Package: python3
Version: 3.8.2-3
Priority: optional
Section: python
Source: python3-defaults
Maintainer: Matthias Klose <doko@debian.org>
Installed-Size: 196 kB
Provides: python3-profiler
Pre-Depends: python3-minimal (= 3.8.2-3)
Depends: python3.8 (>= 3.8.2-1~), libpython3-stdlib (= 3.8.2-3)
Suggests: python3-doc (>= 3.8.2-3), python3-tk (>= 3.8.2-1~), python3-venv (>= 3.8.2-3)
Replaces: python3-minimal (<< 3.1.2-2)
Homepage: https://www.python.org/
Cnf-Extra-Commands: python
Cnf-Priority-Bonus: 5
Download-Size: 63.7 kB
APT-Manual-Installed: yes
APT-Sources: https://mirrors.sonic.net/pureos/repo/pureos byzantium/main amd64 Packages
$ cat /etc/apt/sources.list
# deb https://mirrors.sonic.net/pureos/repo/pureos/ amber main

# deb https://repo.pureos.net/pureos/ amber-security main
# deb https://repo.pureos.net/pureos/ amber-updates main

# deb https://repo.pureos.net/pureos/ byzantium main
# deb https://repo.pureos.net/pureos/ byzantium-security main
# deb https://repo.pureos.net/pureos/ byzantium-updates main

deb https://mirrors.sonic.net/pureos/repo/pureos/ byzantium main
deb https://mirrors.sonic.net/pureos/repo/pureos/ byzantium-security main
deb https://mirrors.sonic.net/pureos/repo/pureos/ byzantium-updates main

It looks like you're using the Sonic mirror.

My /etc/apt/sources.list file looks like;

deb https://repo.puri.sm/pureos byzantium main
deb-src https://repo.puri.sm/pureos byzantium main
deb https://repo.pureos.net/pureos/ byzantium main

I tried switching to repo.puri.sm, apt update, and install apt-listchanges. I still get the same dependency error.

I'm seeing the same version discrepancy in python3-apt between Byzantium and Debian Testing as described here https://tracker.pureos.net/T910#16983 .

Could it be that you have a newer version of python3-apt installed somehow? That would prevent you from reproducing the bug.

alexngould added a comment.EditedFri, Jul 3, 14:31

I'm not sure what this means but I think it is related:

https://master.pureos.net/depcheck/byzantium/issue/6627c88c-d1bc-416b-adda-2c6523c0b279

Edited: I guess the URL is not permanent! Anyway, if you look at the list here https://master.pureos.net/depcheck/byzantium/binary/amd64/1 , you will find the python3-apt package.

I'm getting a "page not found" for the depcheck byzantium issue.

I can't reproduce this. I just installed apt-listchanges in Byzantium

 apt install apt-listchanges
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
  apt apt-utils debconf debconf-i18n distro-info-data gcc-10-base iso-codes libapt-pkg6.0 libc-bin libc-l10n libc6 libcrypt1 libffi7 libgcc-s1 libgnutls30 libpython3-stdlib libpython3.8-minimal libpython3.8-stdlib libseccomp2 libstdc++6 locales lsb-release python-apt-common
  python3 python3-apt python3-debconf python3-minimal python3-netifaces python3-yaml python3.8 python3.8-minimal ucf
Suggested packages:
  apt-doc aptitude | synaptic | wajig dpkg-dev powermgmt-base default-mta | mail-transport-agent python3-gi www-browser x-terminal-emulator debconf-doc debconf-utils libterm-readline-gnu-perl libgtk3-perl libnet-ldap-perl perl debconf-kde-helper isoquery glibc-doc gnutls-bin
  python3-doc python3-tk python3-venv python3-apt-dbg python-apt-doc python3.8-venv python3.8-doc binutils binfmt-support
Recommended packages:
  manpages
The following NEW packages will be installed:
  apt-listchanges distro-info-data gcc-10-base iso-codes libapt-pkg6.0 libcrypt1 libffi7 libgcc-s1 libpython3.8-minimal libpython3.8-stdlib lsb-release python-apt-common python3-apt python3-debconf python3.8 python3.8-minimal ucf
The following packages will be upgraded:
  apt apt-utils debconf debconf-i18n libc-bin libc-l10n libc6 libgnutls30 libpython3-stdlib libseccomp2 libstdc++6 locales python3 python3-minimal python3-netifaces python3-yaml
16 upgraded, 17 newly installed, 0 to remove and 157 not upgraded.
Need to get 22.3 MB of archives.
After this operation, 46.8 MB of additional disk space will be used.
 
. . .
Setting up ucf (3.0043) ...
Setting up python-apt-common (2.1.3pureos1) ...
Setting up libpython3.8-stdlib:amd64 (3.8.4~rc1-1) ...
Setting up python3.8 (3.8.4~rc1-1) ...
Setting up iso-codes (4.5.0-1) ...
Setting up libpython3-stdlib:amd64 (3.8.2-3) ...
Setting up python3 (3.8.2-3) ...
running python rtupdate hooks for python3.8...
running python post-rtupdate hooks for python3.8...
Setting up python3-netifaces (0.10.9-0.2+b1) ...
Setting up lsb-release (11.1.0pureos1) ...
Setting up python3-apt (2.1.3pureos1) ...
Setting up python3-debconf (1.5.74) ...
Setting up python3-yaml (5.3.1-2) ...
Setting up apt-listchanges (3.22) ...

Creating config file /etc/apt/listchanges.conf with new version
Processing triggers for libc-bin (2.30-4) ...
Processing triggers for mime-support (3.64) ...