Google Compute Engine: "Processing triggers for man-db (2.9.4-2) ..." it takes a long time every time i update or upgrade
Asked Answered
C

2

12

Every time I do an update or upgrade it takes a long time (several minutes) showing the following:

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

After that long wait, everything ends correctly.

Is there a way to get around this without putting the system at risk?

In this question, several solutions are suggested:

Solution 1:

sudo apt-get remove -y --purge man-db

Solution 2:

sudo mandb -t
rm -rf /var/cache/man
sudo mandb -c

Solution 3:

sudo apt install python3-pip

Is there a specific solution for Google Compute Engine?

Ceramic answered 3/7, 2023 at 17:45 Comment(0)
G
7

You could remove man-db (why on the Earth server needs man pages?):

sudo apt-get remove --purge man-db

or tell not to rebuild cache via debconf:

echo "set man-db/auto-update false" | sudo debconf-communicate && sudo dpkg-reconfigure man-db

Also you could disable the cache rebuilding in hackish way by removing "magic" file:

sudo rm -f /var/lib/man-db/auto-update
Gerry answered 18/1 at 18:48 Comment(0)
S
0

Try resizing your boot disk. In short, smaller disks have worse performance. Increasing the size of the book disk will improve the read and write speed.

Related to:

Google Compute Engine VM disk is very slow

Scutch answered 31/12, 2023 at 7:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.