Processing triggers for man-db lasting extremely long

Bug #1858777 reported by Thomas
56
This bug affects 12 people
Affects Status Importance Assigned to Milestone
man-db (Ubuntu)
Fix Released
High
Colin Watson

Bug Description

Installing any package is triggering man-db and it is taking 1 minute or more to complete stucking at following message:

Processing triggers for man-db (2.9.0-2) ...

There is no further message in journal or anywhere giving a clue about an underlying problem. The system is hosted on a SSD. During waiting time there is no process running high.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: man-db 2.9.0-2
ProcVersionSignature: Ubuntu 5.3.0-24.26-generic 5.3.10
Uname: Linux 5.3.0-24-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu15
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Jan 8 11:13:00 2020
InstallationDate: Installed on 2019-12-19 (20 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
SourcePackage: man-db
UpgradeStatus: Upgraded to focal on 2019-12-21 (17 days ago)

Revision history for this message
Thomas (t-hartwig) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in man-db (Ubuntu):
status: New → Confirmed
Revision history for this message
Tom Colley (tcolley) wrote :

I've had this same problem but on Ubuntu 18.04

Revision history for this message
Tom Colley (tcolley) wrote :

I tried one of the solutions/workarounds at https://unix.stackexchange.com/questions/626866/processing-triggers-for-man-db-not-building-database-man-db-auto-update-is-not The solution was to run the following command to allow updates to man-db

sudo touch /var/lib/man-db/auto-update

This worked for me.

Revision history for this message
SergeiS (sergei-redleafsoft) wrote :

I've got so annoyed by slow man-db updates, so I actually took time to look for the solution. It takes good 40 seconds on my otherwise super duper fast machine.

 root  ~  ls -lh /var/lib/man-db/auto-update
-rw-r--r-- 1 root root 0 Nov 5 2018 /var/lib/man-db/auto-update
 root  ~  cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Linux Lite 4.0"
 root  ~  dpkg -l man-db
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============================-====================-====================-====================================================================
ii man-db 2.8.3-2ubuntu0.1 amd64 on-line manual pager

Revision history for this message
James Hadley (james-hadley-6) wrote :

I've had the same problem since installing Ubuntu 20.04 a week ago.

Ubuntu 20.04.2 LTS
64-bit
Gnome version: 3.36.8
Windowing system: X11

Intel Core i5-2430M CPU @ 2.40GHz × 4

Revision history for this message
Dorian (marchal-dorian) wrote :

Same issue here, installed Ubuntu 20.04 yesterday and all `apt install` take a lot of time on "Processing triggers for man-db".

Ubuntu 20.04.3 LTS
64-bit
Gnome version: 3.36.8
Windowing system: X11

11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz × 8

Revision history for this message
Colin Watson (cjwatson) wrote :
Changed in man-db (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → High
assignee: nobody → Colin Watson (cjwatson)
tags: added: rls-jj-incoming
tags: removed: rls-jj-incoming
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package man-db - 2.10.0-2

---------------
man-db (2.10.0-2) unstable; urgency=medium

  * Fix occasional mandb-symlink-target-timestamp test failure.

 -- Colin Watson <email address hidden> Fri, 04 Feb 2022 19:21:06 +0000

Changed in man-db (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Fred (eldmannen+launchpad) wrote :

I had a similar issue where the system load would be very high when installing packages. The issue disappeared after uninstall the gnome-menus package.

Revision history for this message
Colin Watson (cjwatson) wrote :

Fred, in that case it is unlikely to be related to this bug.

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.