Can not complete load of 1.8.11 IDE

Can not get 1.8.11 to load on the pi. Get the following error.

touch: cannot touch '/root/.local/share/applications/mimeapps.list': No such file or directory
/usr/bin/xdg-mime: 803: /usr/bin/xdg-mime: cannot create /root/.local/share/applications/ Directory nonexistent

The IDE will come up and I can load a sketch, but not compile and can not manage libraries.....get a different error.

I have loaded a fresh os and got the same results. When I try to open up the library manager I get. "Error downloading" I can use the browser on the pi and pull the json file up off the site.