Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progress bar does not work properly after interruption and resumption #2019

Open
zektorum opened this issue Jan 23, 2025 · 0 comments
Open

Comments

@zektorum
Copy link

After interrupting and running dnf update progress bar does not work properly.

Expected behavior

[ 1/66] glibc-common-0:2.40.9000-30.fc42.x86_64                                                                                     100% |   1.2 MiB/s | 413.3 KiB |  00m00s
[ 2/66] glibc-0:2.40.9000-30.fc42.x86_64                                                                                            100% |   5.2 MiB/s |   2.3 MiB |  00m00s
[ 3/66] glib2-0:2.83.0-3.fc42.x86_64                                                                                                100% |   5.3 MiB/s |   3.0 MiB |  00m01s
[ 4/66] json-c-0:0.18-1.fc42.x86_64                                                                                                 100% | 331.3 KiB/s |  44.4 KiB |  00m00s

Current behavior

[ 1/66] glib2-0:2.83.0-3.fc42.x86_64                                                                             0% [<=>               ] |   2.0   B/s |   0.0   B |  18d03h
[ 1/66] glib2-0:2.83.0-3.fc42.x86_64                                                                             0% [<=>               ] |   2.0   B/s |   0.0   B |  18d03h
[ 1/66] glib2-0:2.83.0-3.fc42.x86_64                                                                             0% [                  ] |   2.0   B/s |  19.3 KiB |  18d00h
[ 1/66] glibc-common-0:2.40.9000-30.fc42.x86_64                                                                                     100% |   1.2 MiB/s | 413.3 KiB |  00m00s
[ 2/66] glib2-0:2.83.0-3.fc42.x86_64                                                                            11% [==                ] |   2.0   B/s | 352.0 KiB |  16d01h
[ 2/66] glib2-0:2.83.0-3.fc42.x86_64                                                                            12% [==                ] |   2.0   B/s | 368.0 KiB |  15d22h
[ 2/66] glibc-0:2.40.9000-30.fc42.x86_64                                                                                            100% |   5.2 MiB/s |   2.3 MiB |  00m00s
[ 3/66] glib2-0:2.83.0-3.fc42.x86_64                                                                            32% [======            ] |   2.0   B/s | 992.0 KiB |  12d05h
[ 3/66] glib2-0:2.83.0-3.fc42.x86_64                                                                            32% [======            ] |   2.0   B/s |   1.0 MiB |  12d03h
[ 3/66] glib2-0:2.83.0-3.fc42.x86_64                                                                                                100% |   5.3 MiB/s |   3.0 MiB |  00m01s
[ 4/66] glibc-minimal-langpack-0:2.40.9000-30.fc42.x86_64                                                       15% [===               ] |  19.2 KiB/s |  19.2 KiB |  00m05s
[ 4/66] glibc-minimal-langpack-0:2.40.9000-30.fc42.x86_64                                                       28% [=====             ] |  19.2 KiB/s |  35.2 KiB |  00m04s
[ 4/66] json-c-0:0.18-1.fc42.x86_64                                                                                                 100% | 331.3 KiB/s |  44.4 KiB |  00m00s

Steps to reproduce

  1. Run dnf update
  2. Wait for dnf to start downloading packages.
  3. Terminate the process with Ctrl + C before dnf finishes downloading packages.
  4. Run dnf update again.

To reproduce in a Docker image, before the first step you need to run dnf update dnf to install the latest version of dnf.

Context (environment)

This is reproduced on my system and in the fedora:42 docker image after updating dnf to the latest version (5.2.8.1).

Locally (Fedora 42)

$ uname -a
Linux fedora 6.12.7-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Dec 27 17:05:33 UTC 2024 x86_64 GNU/Linux

Docker image (fedora:42)

$ uname -a
Linux 00f4de05e7dd 6.12.7-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Dec 27 17:05:33 UTC 2024 x86_64 GNU/Linux

Both systems have the same version of dnf

$ dnf --version
dnf5 version 5.2.8.1
dnf5 plugin API version 2.0
libdnf5 version 5.2.8.1
libdnf5 plugin API version 2.0

Loaded dnf5 plugins:
  name: builddep
  version: 1.0.0
  API version: 2.0

  name: changelog
  version: 1.0.0
  API version: 2.0

  name: config-manager
  version: 0.1.0
  API version: 2.0

  name: copr
  version: 0.1.0
  API version: 2.0

  name: needs_restarting
  version: 1.0.0
  API version: 2.0

  name: repoclosure
  version: 1.0.0
  API version: 2.0

  name: reposync
  version: 1.0.0
  API version: 2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant