66

I'm new to Ubuntu 20.04. When I try to install or deinstall using Ubuntu Software I get this message:

Sorry, something went wrong: Error opening directory "/usr/share/appdata": No such file or directory.

How can fix this?

Thanks in advance.

popup message

Zanna
  • 72,312
Martin Lopez Funes
  • 841
  • 2
  • 7
  • 6

3 Answers3

91

Ran into the same issue today, ending the process and re-opening it resolved it for me.

Steps to reproduce what I did:

  • Open System Monitor and search for snap-store
  • Select the snap-store process and hit End Process
  • Re-open Ubuntu Software

On the technical side of things this looks like a minor permissions issue, not much to worry about.

iiiz
  • 1,011
2

I couldn't kill the snap-store process so I just restarted my computer to clear the error.

Jean W
  • 21
0

Get the pid and kill it:

$ ps -aux | grep snap-store

user1 1591 0.0 0.8 1338376 138668 ? Sl Feb01 3:04 /snap/snap-store/467/usr/bin/snap-store --gapplication-service

$ kill -9 1591

Reopen ubuntu software

jim smith
  • 910