2

for ex. sudo apt install gthumb will spend a small time doing everything else. When it calls update-mime-database /usr/share/mime it spends more than 10 minutes!!!

I wonder if I could install everything w/o calling update-mime-database, then manually call it with ionice update-mime-database /usr/share/mime (as it also generates a lot of IO despite writing just about 4MB iotop) in a child/background process?

any other tip/idea?

ubuntu 20.04

Aquarius Power
  • 3,921
  • 6
  • 39
  • 67
  • Same issue here! Not only is it slow, but it makes my whole system laggy, killing IO performances. This seems to be related to https://bbs.archlinux.org/viewtopic.php?id=255817 but I didn't find any Ubuntu-related fix. – Pierre-Antoine Feb 10 '21 at 10:13
  • until it is fixed, may be, we could kill update-mime-database in a way that still let the install finish properly (SIGTERM?), so we can continue installing other things, and run update-mime-database again with ionice idle background process later. – Aquarius Power Feb 10 '21 at 19:53
  • There is an issue on launchpad, actually: https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/1816674 – Pierre-Antoine Feb 12 '21 at 11:50
  • I think that killing update-mime-database would make dpkg consider that the installation failed, and pollute its database... What I didn't try is to run `apt update` after setting the env variable PKGSYSTEM_ENABLE_FSYNC=0, as suggested in the ArchLinux forum. – Pierre-Antoine Feb 12 '21 at 11:55

0 Answers0