Question: I have installed a few snap packages (`snap install …`). I can use `snap list` to list them. However I can not tell which are manually installed, and which were installed because other packages depend on them (`auto` in apt). I want to remove automatically installed packages (`apt autoremove` in apt), (`docker system prune` in docker).

Answer: 
I had the same issue. I tried to install onedrive using `sudo apt install onedrive` and building it myself from the repository *<https://github.com/skilion/onedrive>*.
**BUT the 'skilion' repo was abandoned in 2018** and contains many defects.

**The latest and maintained code of onedrive for linux can be found here:** <https://github.com/abraunegg/onedrive>. I followed the instructions from there and installed onedrive under Ubuntu 20.04 LTS and now it works like a charm :)
I also faced the same problem for a long time, Then I find out that onedrive installed from the default ppa is quite old and installing it from the following ppa resolved the issue for me.

```
sudo add-apt-repository ppa:yann1ck/onedrive
sudo apt install onedrive

```

This is the developer created ppa   
[https://launchpad.net/~yann1ck/+archive/ubuntu/onedrive](https://launchpad.net/%7Eyann1ck/+archive/ubuntu/onedrive)