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
  • 69,223
  • 56
  • 216
  • 327
Martin Lopez Funes
  • 821
  • 1
  • 6
  • 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
  • 4
  • 4
2

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

Jean W
  • 21
  • 4
  • Using system monitor to End Process took a moment and a force quit confirmation. Use the "End Process" button at the bottom of the window, rather than the options presented when right clicking. – nicepen Aug 06 '20 at 12:05
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
  • 630
  • 6
  • 6