Apt update takes around a full minute to read state information when I run it for the first time since boot even though there are no updates available.

Bug #1875190 reported by Seija K.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

When I ran "sudo apt update && sudo apt dist-upgrade", apt hit all the repositories. However, when it was reading state information, that process took a full minute even though there were no new updates.

This is too slow, even though the subsequent time I ran the command, it was much faster. No, this was not the first time I ever ran the command on the current install, as I ran it the day before without reinstalling Ubuntu, on Ubuntu 20.04, and the process took less than 15 seconds.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: apt 2.0.2
ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30
Uname: Linux 5.4.0-26-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 26 11:42:21 2020
InstallationDate: Installed on 2020-04-25 (1 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-04-25 (1 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
Package: apt 2.0.2
PackageArchitecture: amd64
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30
Tags: focal
Uname: Linux 5.4.0-26-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Seija K. (rose128) wrote :
tags: added: apport-collected
description: updated
Revision history for this message
Seija K. (rose128) wrote : Dependencies.txt

apport information

Revision history for this message
Seija K. (rose128) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Julian Andres Klode (juliank) wrote :

I'm not aware of any performance issues in those parts of apt, and spent a considerable time optimizing it.

You probably want to strace or gdb apt when it's hanging and figure out where the issue is, because there's nothing that can be done here by anyone else so far.

Changed in apt (Ubuntu):
status: New → Incomplete
Revision history for this message
Seija K. (rose128) wrote :

Here is an strace

Revision history for this message
Julian Andres Klode (juliank) wrote :

No, that's the apt help output.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apt (Ubuntu) because there has been no activity for 60 days.]

Changed in apt (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.