[snap] How to remove folders on cgroup/devices/ | /run/user/1001 | /sys/kernel/slab/...../cgroup/

Asked by Aurora

Ago i installed https://snapcraft.io/barrier

Uninstalled it using sudo snap remove --purge barrier (snapshot has disabled on that system)

But there're several folders in these locations. i can't remove them using root sudo rm -R foldername (i tried with sudo -i) but can't
How to erase that folders?


Question information

English Edit question
Ubuntu gnome-software Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

Isn't /sys in tempfs?
Just reboot. It's held in RAM if it is in tempfs

Revision history for this message
Aurora (itsunknown) said :

"Isn't /sys in tempfs?"
In exact path folders in disks as mentioned above

those disappeared after reboot but is there way to remove such locations files without reboot?

Revision history for this message
Manfred Hampl (m-hampl) said :

For diagnostic purposes the following commands would perhaps have been helpful, but if the problem has been resolved, they will not tell anything usafull any more

ls -l /sys/fs/cgroup/devices/snap*
file /sys/fs/cgroup/devices/snap.barrier.barrier
sudo lsof /sys/fs/cgroup/devices/snap.barrier.barrier
ps ax | grep barrier
snap list barrier
apt-cache policy barrier

Can you help with this problem?

Provide an answer of your own, or ask Aurora for more information if necessary.

To post a message you must log in.