#990747 apt-listchanges: sometimes apt-listchanges calls to get changelog aren't answered and it sort of hangs

Package:
aptitude
Source:
aptitude
Description:
terminal-based package manager
Submitter:
shirish शिरीष
Date:
2021-07-06 06:42:02 UTC
Severity:
normal
#990747#5
Date:
2017-07-26 02:57:53 UTC
From:
To:
Dear Maintainer,

First of all thank you for maintaining apt-listchanges as long as you have.

I know that you have made some changes so users can either explicitly
use it to call the network or have -no-network although do not know
for which use-case that option has been given ?

In some runs I have seen it hangs, for e.g. the ongoing run  -

$ sudo aptitude install appstream ca-certificates ca-certificates-java
cdparanoia devscripts flatpak fonts-alee gnome-keyring gnuplot
gnuplot-data gnuplot-qt libappstream4 libbasicusageenvironment1
libbuild-helper-maven-plugin-java libcdparanoia0 libdleyna-core-1.0-3
libeclipse-aether-java libesd0 libflatpak0 libgroupsock8
liblivemedia58 libmaven-archiver-java
libmaven-common-artifact-filters-java
libmaven-dependency-analyzer-java libmaven-file-management-java
libmaven-repository-builder-java libmaven-shared-io-java
libmaven-source-plugin-java libnss-myhostname libostree-1-1
libp11-kit0 libpam-gnome-keyring libplexus-io-java
libplexus-utils2-java libsurefire-java libudev-dev libudev1
libusageenvironment3 mutt p11-kit p11-kit-modules pristine-tar
python-click python-idna python-rope python3-click python3-idna
ruby-json ruby-pkg-config udev virt-manager virtinst xkb-data -y
The following NEW packages will be installed:
  libnotmuch5{a}
The following packages will be REMOVED:
  libnotmuch4{u}
The following packages will be upgraded:
appstream ca-certificates ca-certificates-java cdparanoia devscripts
flatpak fonts-alee gnome-keyring gnuplot gnuplot-data gnuplot-qt
libappstream4 libbasicusageenvironment1
libbuild-helper-maven-plugin-java libcdparanoia0 libdleyna-core-1.0-3
libeclipse-aether-java libesd0 libflatpak0 libgroupsock8
liblivemedia58 libmaven-archiver-java
libmaven-common-artifact-filters-java
libmaven-dependency-analyzer-java libmaven-file-management-java
libmaven-repository-builder-java libmaven-shared-io-java
libmaven-source-plugin-java libnss-myhostname libostree-1-1
libp11-kit0 libpam-gnome-keyring libplexus-io-java
libplexus-utils2-java libsurefire-java libudev-dev libudev1
libusageenvironment3 mutt p11-kit p11-kit-modules pristine-tar
python-click python-idna python-rope python3-click python3-idna
ruby-json ruby-pkg-config udev virt-manager virtinst xkb-data
53 packages upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 2,585 kB/13.5 MB of archives. After unpacking 2,259 kB will be used.
Get: 1 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libnotmuch5 amd64 0.25~rc1-2 [77.7 kB]
Get: 2 http://cdn-fastly.deb.debian.org/debian buster/main amd64
p11-kit-modules amd64 0.23.7-3 [229 kB]
Get: 3 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libp11-kit0 amd64 0.23.7-3 [190 kB]
Get: 4 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libappstream4 amd64 0.11.2-1 [95.8 kB]
Get: 5 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libcdparanoia0 amd64 3.10.2+debian-11+b2 [48.8 kB]
Get: 6 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libmaven-shared-io-java all 3.0.0-1 [33.1 kB]
Get: 7 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libmaven-file-management-java all 3.0.0-1 [35.1 kB]
Get: 8 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libbuild-helper-maven-plugin-java all 3.0.0-1 [55.4 kB]
Get: 9 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libdleyna-core-1.0-3 amd64 0.4.0-1+b2 [12.6 kB]
Get: 10 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libeclipse-aether-java all 1.0.2-3 [585 kB]
Get: 11 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libesd0 amd64 0.2.41-11+b2 [16.7 kB]
Get: 12 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libmaven-archiver-java all 3.1.1-1 [23.3 kB]
Get: 13 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libmaven-common-artifact-filters-java all 3.0.1-1 [48.7 kB]
Get: 14 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libmaven-dependency-analyzer-java all 1.7-1 [28.4 kB]
Get: 15 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libmaven-repository-builder-java all 1.0-1 [18.3 kB]
Get: 16 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libmaven-source-plugin-java all 3.0.1-1 [19.9 kB]
Get: 17 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libplexus-utils2-java all 3.0.24-3 [246 kB]
Get: 18 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libplexus-io-java all 3.0.0-1 [63.2 kB]
Get: 19 http://cdn-fastly.deb.debian.org/debian buster/main amd64
libsurefire-java all 2.19.1-1 [750 kB]
Get: 20 http://cdn-fastly.deb.debian.org/debian buster/main amd64
ruby-pkg-config all 1.2.3-2 [7,474 B]
Fetched 2,585 kB in 54s (47.2 kB/s)
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
serious bugs of ca-certificates-java (20161107 → 20170531+nmu1) <Outstanding>
 b1 - #864657 - ca-certificates-java has circular Depends on
openjdk-8-jre-headless
Summary:
 ca-certificates-java(1 bug)
Are you sure you want to install/upgrade the above packages? [Y/n/?/...] y
Calling ['apt-get', '-qq', 'changelog', 'libesd0=0.2.41-11+b2'] to
retrieve changelog

See the last line -

Calling ['apt-get', '-qq', 'changelog', 'libesd0=0.2.41-11+b2'] to
retrieve changelog

It is now 15 minutes since it is like this. It should not hang
indefinitely. It should give a timeout and ask whether we want to try
again or something which was the behavior before IIRC.

On another run many a times, the changelog would be downloaded and displayed.

Another thing which seems to be missing is percentage of how much of
the changelog is downloaded and at which speed which again IIRC was
the norm before.

Looking forward to seeing both the functionalities in apt-listchanges again.

#990747#8
Date:
2021-07-06 06:32:03 UTC
From:
To:
Hello, I am the new maintainer for apt-listchanges.  Why not just use
apt instead of aptitude?  aptitude is acting as wrapper around apt-get,
which looks to be causing problems with this package.

See if you have the same issue in apt as you see in aptitude.