Cannot query current apparmor profile: Invalid argument

Hi.

I am using Solus OS for a week. At first there was not any problem. But then when I tried to run a program on terminal by typing sudo snap run someprogram, it gives me that error.

cannot query current apparmor profile: Invalid argument

I tried to install Apache Netbeans and it does not work by starting it from App Manager also.

Here are the informations that you might need:

snap --version:
snap 2.49.1
snapd 2.49.1
series 16
solus 4.2
kernel 5.11.22-180.current

snap --list:
https://i.ibb.co/g3JpbLm/Screenshot-from-2021-05-26-15-27-00.png

system info:
https://i.ibb.co/VYhfrXz/Screenshot-from-2021-05-26-15-24-18.png
any help will be appreciated.

Alright here is the solution:

https://discuss.getsol.us/d/6542-snap-packages-wont-launch-after-update/16