{"action":"opened","issue":{"url":"https://api.github.com/repos/zigg/brewdo/issues/16","repository_url":"https://api.github.com/repos/zigg/brewdo","labels_url":"https://api.github.com/repos/zigg/brewdo/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/zigg/brewdo/issues/16/comments","events_url":"https://api.github.com/repos/zigg/brewdo/issues/16/events","html_url":"https://github.com/zigg/brewdo/issues/16","id":171163248,"number":16,"title":"\"Permission denied\" when trying to install stuff","user":{"login":"gdubicki","id":566632,"avatar_url":"https://avatars.githubusercontent.com/u/566632?v=3","gravatar_id":"","url":"https://api.github.com/users/gdubicki","html_url":"https://github.com/gdubicki","followers_url":"https://api.github.com/users/gdubicki/followers","following_url":"https://api.github.com/users/gdubicki/following{/other_user}","gists_url":"https://api.github.com/users/gdubicki/gists{/gist_id}","starred_url":"https://api.github.com/users/gdubicki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdubicki/subscriptions","organizations_url":"https://api.github.com/users/gdubicki/orgs","repos_url":"https://api.github.com/users/gdubicki/repos","events_url":"https://api.github.com/users/gdubicki/events{/privacy}","received_events_url":"https://api.github.com/users/gdubicki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-15T12:46:59Z","updated_at":"2016-08-15T12:46:59Z","closed_at":null,"body":"I have two users on my machine which I want to have access to homebrew - 'gdubicki' and 'grzegorz'.\r\n\r\nFirst I had to follow instructions from  to start using brewdo at all. I used 'grzegorz' account then.\r\n\r\nThen I successfully installed a package using 'grzegorz' account and brewdo.\r\n\r\nAfter that I switched to 'gdubicki' account and tried to update brew.\r\n\r\nFirst run:\r\n\r\n```\r\ngdubicki@MacBook-Pro-Greg:~ $ brewdo brew update\r\nmktemp: too few X's in template ‘brewdo’\r\nUpdated 6 taps (caskroom/cask, drone/drone, homebrew/core, homebrew/dupes, homebrew/python, homebrew/x11).\r\n==> New Formulae\r\nalot                         gitversion                   lepton                       minio-mc                     presto                       ubertooth\r\ncaskroom/cask/brew-cask ✔    grafana                      libbdplus                    nats-streaming-server        (...)\r\nclass-dump               horndis                  kjell                    luyten                   quassel                  sqlitebrowser\r\n/Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1460:in `unlink': No such file or directory @ unlink_internal -  (Errno::ENOENT)\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1460:in `block in remove_file'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1465:in `platform_support'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1459:in `remove_file'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1448:in `remove'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:776:in `block in remove_entry'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1502:in `postorder_traverse'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:774:in `remove_entry'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:710:in `remove_entry_secure'\r\n\tfrom /usr/local/bin/brewdo:254:in `block in cmd__do'\r\n```\r\n\r\nsecond run:\r\n\r\n```\r\ngdubicki@MacBook-Pro-Greg:~ $ brewdo brew update\r\nmktemp: too few X's in template ‘brewdo’\r\n\tUpdated 1 tap (caskroom/cask).\r\nNo changes to formulae.\r\n/Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1460:in `unlink': No such file or directory @ unlink_internal -  (Errno::ENOENT)\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1460:in `block in remove_file'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1465:in `platform_support'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1459:in `remove_file'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1448:in `remove'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:776:in `block in remove_entry'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1502:in `postorder_traverse'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:774:in `remove_entry'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:710:in `remove_entry_secure'\r\n\tfrom /usr/local/bin/brewdo:254:in `block in cmd__do'\r\n```\r\n\r\nSo it looks like the update is being done, although with some errors (warnings?).\r\n\r\nTo test if it's really being done I tried to install a new package, but it failed with:\r\n\r\n```\r\ngdubicki@MacBook-Pro-Greg:~ $ brew install gitversion\r\nmktemp: too few X's in template ‘brewdo’\r\n==> Installing dependencies for gitversion: mono\r\n==> Installing gitversion dependency: mono\r\n==> Downloading https://homebrew.bintray.com/bottles/mono-4.4.2.11.el_capitan.bottle.tar.gz\r\nWarning: Failed to create the file\r\nWarning: /Library/Caches/Homebrew/mono-4.4.2.11.el_capitan.bottle.tar.gz.incomp\r\nWarning: lete: Permission denied\r\n\r\ncurl: (23) Failed writing body (0 != 16026)\r\nError: Failed to download resource \"mono\"\r\nDownload failed: https://homebrew.bintray.com/bottles/mono-4.4.2.11.el_capitan.bottle.tar.gz\r\nWarning: Bottle installation failed: building from source.\r\n==> Installing dependencies for mono: pkg-config\r\n==> Installing mono dependency: pkg-config\r\n==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.1_1.el_capitan.bottle.tar.gz\r\nWarning: Failed to create the file\r\nWarning: /Library/Caches/Homebrew/pkg-config-0.29.1_1.el_capitan.bottle.tar.gz.\r\nWarning: incomplete: Permission denied\r\n\r\ncurl: (23) Failed writing body (0 != 16022)\r\nError: Failed to download resource \"pkg-config\"\r\nDownload failed: https://homebrew.bintray.com/bottles/pkg-config-0.29.1_1.el_capitan.bottle.tar.gz\r\nWarning: Bottle installation failed: building from source.\r\n==> Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.1.tar.gz\r\nWarning: Failed to create the file\r\nWarning: /Library/Caches/Homebrew/pkg-config-0.29.1.tar.gz.incomplete:\r\nWarning: Permission denied\r\n\r\ncurl: (23) Failed writing body (0 != 16384)\r\nTrying a mirror...\r\n==> Downloading https://fossies.org/linux/misc/pkg-config-0.29.1.tar.gz\r\nWarning: Failed to create the file\r\nWarning: /Library/Caches/Homebrew/pkg-config-0.29.1.tar.gz.incomplete:\r\nWarning: Permission denied\r\n\r\ncurl: (23) Failed writing body (0 != 8192)\r\nError: Failed to download resource \"pkg-config\"\r\nDownload failed: https://fossies.org/linux/misc/pkg-config-0.29.1.tar.gz\r\n/Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1460:in `unlink': No such file or directory @ unlink_internal -  (Errno::ENOENT)\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1460:in `block in remove_file'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1465:in `platform_support'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1459:in `remove_file'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1448:in `remove'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:776:in `block in remove_entry'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:1502:in `postorder_traverse'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:774:in `remove_entry'\r\n\tfrom /Users/gdubicki/.rvm/rubies/ruby-2.1.8/lib/ruby/2.1.0/fileutils.rb:710:in `remove_entry_secure'\r\n\tfrom /usr/local/bin/brewdo:254:in `block in cmd__do'\r\n```\r\n\r\nHow to fix my brew(do) install?"}}
{"actor":{"display_login":"gdubicki"}}