1

When I select the 'Power Off / Log Out' option from the top bar and then select the 'Power Off...' option, the shutdown dialog (the one that adds a gray overlay to desktop) is taking something like 5 to 30 seconds (randomly) to appear.

I have these GNOME Shell extensions active:

  • Blyr
  • Clipboard Indicator
  • Impatience
  • Keep awake!
  • NetSpeed
  • NoAnnoyance

The problem is present when all of them are disabled. The problem persists on both Xorg and Wayland.

What could be possibly the cause and how can I fix it?

Update: I get this error in journal when trying to shutdown:

Failed to load the backend: Failed to execute statement 'PRAGMA synchronous=OFF': file is not a database

and when the dialog appears:

Failed to get update info from PackageKit: Timeout was reached
pomsky
  • 70,557
HosseyNJF
  • 121

1 Answers1

1

Turns out there is a software named PackageKit, and the database of this software was corrupted, leading to this error. I fixed it using the commands from this question:

sudo apt-get remove --purge packagekit
sudo apt-get install ubuntu-software

(Other symptoms include getting this at the end of every single apt command: Error: timeout was reached)

HosseyNJF
  • 121