unable to snap ubuntu software

C++
>>> snap changes 

>>> sudo snap abort [number ID] $ snap changes
...
123  Doing   2018-04-28T10:40:11Z  -  Install "foo" snap
...

$ sudo snap abort [ID] 

Source

Also in C++: