I found the cause of the problem:

When executing sudo, you *gain* some root previlages, but you are not root.
Which means that you don't have any access to /root by using sudo
But sudo sets $HOME to /root, so sudo's home is /root, but can't be accessed by 
sudo

to solve this just run this:
$ sudo -i
# HOME=/home/<your user name>

and continue with your commands. When done execute this:
# exit

and now you're out of root user.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1320313

Title:
  permission denied mkdir /root/.cache

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/1320313/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to