dist-upgrade takes too long to load

Asked by Seija K.

It happens when running sudo apt update && sudo apt dist-upgrade. The download takes a few minutes, but the upgrade portion can take minutes or even up to half an hour, especially when running after installing 18.04.4

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: ubuntu-release-upgrader-core 1:19.10.15.4
ProcVersionSignature: Ubuntu 5.3.0-45.37-generic 5.3.18
Uname: Linux 5.3.0-45-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.8
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 3 15:42:15 2020
InstallationDate: Installed on 2020-04-03 (0 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: dist-upgrade
UpgradeStatus: No upgrade log present (probably fresh install)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ubuntu-release-upgrader Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #1870610.

Revision history for this message
Michael Haworth (bailtree) said :
#1

Not a bug per se, in fact the description is more or less expected, as dist-upgrades can cause many packages to be installed.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

If you install and use apt-fast it can help speed up updates.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Can you specify more in detail, which part of the upgrade takes longer than expected?

When you do "sudo apt update && sudo apt dist-upgrade" there are several different steps:

1. apt update downloads the repository information (which packages are available, with which version). Duration depends among others on network speed, a summary line should be shown "Fetched xxx kB in xxx s (x kB/s)"
2. apt dist-upgrade identifies the packages to be updated and asks for confirmation
3. apt dist-upgrade downloads the new or updated packages to install. Duration depends on number and size of packages and on network speed, a summary line should be shown "Fetched xxx kB in xxx s (x kB/s)"
4. apt dist-upgrade installs the new or updated packages. Duration mainly depends on number of packages to install and the performance of your system. In case that creating a new initramfs is required, this will add also to the time needed.

Which of the steps takes so long?
What network speed is shown for the two download steps?

Can you help with this problem?

Provide an answer of your own, or ask Seija K. for more information if necessary.

To post a message you must log in.