Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 331
A. Cedano Avatar asked Jan 18 '26 12:01

A. Cedano


1 Answers

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
like image 137
gavenkoa Avatar answered Jan 20 '26 09:01

gavenkoa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!