Please note that we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.
brew command and reproduced the problem with multiple formulae? If it's a problem with a single, official formula (not cask) please file this issue at Homebrew/homebrew-core: https://github.com/Homebrew/homebrew-core/issues/new/choose. If it's a brew cask problem please file this issue at https://github.com/Homebrew/homebrew-cask/issues/new/choose. If it's a tap (e.g. Homebrew/homebrew-php) problem please file this issue at the tap.brew update and can still reproduce the problem?brew doctor, fixed all issues and can still reproduce the problem?brew config and brew doctor and included their output with your issue?Hello! 馃憢 I'm trying to install Homebrew into all Gitpod workspaces, so that Gitpod users can brew install anything without needing sudo.
I'm following the instructions in https://docs.brew.sh/Homebrew-on-Linux to install Homebrew into Gitpod's default Ubuntu Disco 19.04 image.
So I ran the proposed install command, as non-root (but sudoer) user gitpod, inside /home/gitpod:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
It created a /home/gitpod/.cache directory that is owned by root:root instead of gitpod:gitpod.
This is unexpected, and breaks our Docker build at a later stage (when Go tries to install itself as user gitpod, expecting /home/gitpod/.cache to belong to gitpod:gitpod).
Command output
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
/usr/bin/mkdir
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/gitpod/.cache/Homebrew/
/home/linuxbrew/.linuxbrew/Homebrew
==> The following new directories will be created:
/home/linuxbrew/.linuxbrew/bin
/home/linuxbrew/.linuxbrew/etc
/home/linuxbrew/.linuxbrew/include
/home/linuxbrew/.linuxbrew/lib
/home/linuxbrew/.linuxbrew/sbin
/home/linuxbrew/.linuxbrew/share
/home/linuxbrew/.linuxbrew/var
/home/linuxbrew/.linuxbrew/opt
/home/linuxbrew/.linuxbrew/share/zsh
/home/linuxbrew/.linuxbrew/share/zsh/site-functions
/home/linuxbrew/.linuxbrew/var/homebrew
/home/linuxbrew/.linuxbrew/var/homebrew/linked
/home/linuxbrew/.linuxbrew/Cellar
/home/linuxbrew/.linuxbrew/Caskroom
/home/linuxbrew/.linuxbrew/Homebrew
/home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew
==> /usr/bin/sudo /bin/chown gitpod:gitpod /home/linuxbrew/.linuxbrew
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Homebrew /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chmod g+rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Homebrew /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chmod 755 /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
==> /usr/bin/sudo /bin/chown gitpod /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Homebrew /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chgrp gitpod /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Homebrew /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /home/gitpod/.cache/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /home/gitpod/.cache/Homebrew
==> /usr/bin/sudo /bin/chown gitpod /home/gitpod/.cache/Homebrew
==> /usr/bin/sudo /bin/chgrp gitpod /home/gitpod/.cache/Homebrew
==> Downloading and installing Homebrew...
From https://github.com/Homebrew/brew
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
brew help to get started$ ls -larth .
total 28K
-rw-r--r-- 1 gitpod gitpod 807 Apr 4 03:11 .profile
-rw-r--r-- 1 gitpod gitpod 220 Apr 4 03:11 .bash_logout
-rw-r--r-- 1 gitpod gitpod 3.8K Sep 12 12:59 .bashrc
-rw-r--r-- 1 gitpod gitpod 0 Sep 12 13:01 .sudo_as_admin_successful
drwxr-xr-x 3 gitpod gitpod 4.0K Sep 12 13:01 .subversion
drwxr-xr-x 4 root root 4.0K Sep 12 13:02 .cache
drwxr-xr-x 9 root root 4.0K Sep 12 13:02 ..
drwxr-xr-x 5 gitpod gitpod 4.0K Sep 12 13:02 .
Since the install command was run as user gitpod in /home/gitpod, I expected the command to create a /home/gitpod/.cache directory belonging to gitpod:gitpod, not root:root.
brew commands)Try to build this Dockerfile: https://github.com/gitpod-io/workspace-images/blob/86b8a01372600ffc18fb51db5e4951167a354caa/full/Dockerfile
The step installing Homebrew will reate a root-owned /home/gitpod/.cache, which will later cause the Go installation to fail.
See also https://github.com/gitpod-io/workspace-images/pull/112#issuecomment-530818078.
Can you provide reproduction instructions that are minimal i.e. not your Dockerfile?
@MikeMcQuaid Sure! The reproduction case could be simplified like so:
FROM ubuntu:disco
# Create non-root user called "gitpod"
RUN apt-get update -q && apt-get install -yq sudo \
&& useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod \
# passwordless sudo for users in the 'sudo' group
&& sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
ENV HOME=/home/gitpod
WORKDIR $HOME
# Become non-root user
USER gitpod
# Install Homebrew
RUN sudo apt-get update -q && sudo apt-get install -yq curl git && \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
ENV PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH"
# Check ~/.cache ownership
RUN ls -larth .
(view build logs)
Sending build context to Docker daemon 2.095kB
Step 1/8 : FROM ubuntu:disco
---> 9f3d7c446553
Step 2/8 : RUN apt-get update -q && apt-get install -yq sudo && useradd -l -u 33333 -G sudo -md /home/gitpod -s /bin/bash -p gitpod gitpod && sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
---> Using cache
---> da4bf61c62fd
Step 3/8 : ENV HOME=/home/gitpod
---> Using cache
---> 339871494fab
Step 4/8 : WORKDIR $HOME
---> Using cache
---> 617704109636
Step 5/8 : USER gitpod
---> Using cache
---> c5043d43f61d
Step 6/8 : RUN sudo apt-get update -q && sudo apt-get install -yq curl git && sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
---> Running in 10794dc138ff
Hit:1 http://archive.ubuntu.com/ubuntu disco InRelease
Get:2 http://security.ubuntu.com/ubuntu disco-security InRelease [97.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu disco-updates InRelease [97.5 kB]
Get:4 http://archive.ubuntu.com/ubuntu disco-backports InRelease [88.8 kB]
Fetched 284 kB in 1s (458 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
ca-certificates git-man krb5-locales less libasn1-8-heimdal libbsd0
libcurl3-gnutls libcurl4 libedit2 liberror-perl libexpat1 libgdbm-compat4
libgdbm6 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libk5crypto3
libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2
libldap-common libnghttp2-14 libpcre2-8-0 libperl5.28 libpsl5
libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
libsqlite3-0 libssh-4 libssl1.1 libwind0-heimdal libx11-6 libx11-data
libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 multiarch-support netbase
openssh-client openssl patch perl perl-modules-5.28 publicsuffix xauth
Suggested packages:
gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
git-gui gitk gitweb git-cvs git-mediawiki git-svn gdbm-l10n krb5-doc
krb5-user libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql keychain
libpam-ssh monkeysphere ssh-askpass ed diffutils-doc perl-doc
libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl
liblocale-codes-perl
The following NEW packages will be installed:
ca-certificates curl git git-man krb5-locales less libasn1-8-heimdal libbsd0
libcurl3-gnutls libcurl4 libedit2 liberror-perl libexpat1 libgdbm-compat4
libgdbm6 libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libk5crypto3
libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libldap-2.4-2
libldap-common libnghttp2-14 libpcre2-8-0 libperl5.28 libpsl5
libroken18-heimdal librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db
libsqlite3-0 libssh-4 libssl1.1 libwind0-heimdal libx11-6 libx11-data
libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 multiarch-support netbase
openssh-client openssl patch perl perl-modules-5.28 publicsuffix xauth
0 upgraded, 57 newly installed, 0 to remove and 15 not upgraded.
Need to get 19.3 MB of archives.
After this operation, 107 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu disco/main amd64 multiarch-support amd64 2.29-0ubuntu2 [6916 B]
Get:2 http://archive.ubuntu.com/ubuntu disco/main amd64 libxau6 amd64 1:1.0.8-1 [8376 B]
Get:3 http://archive.ubuntu.com/ubuntu disco/main amd64 libbsd0 amd64 0.9.1-2 [44.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu disco/main amd64 libxdmcp6 amd64 1:1.1.2-3 [10.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu disco/main amd64 libxcb1 amd64 1.13.1-2 [45.2 kB]
Get:6 http://archive.ubuntu.com/ubuntu disco/main amd64 libx11-data all 2:1.6.7-1 [113 kB]
Get:7 http://archive.ubuntu.com/ubuntu disco/main amd64 libx11-6 amd64 2:1.6.7-1 [572 kB]
Get:8 http://archive.ubuntu.com/ubuntu disco/main amd64 libxext6 amd64 2:1.3.3-1 [29.4 kB]
Get:9 http://archive.ubuntu.com/ubuntu disco/main amd64 perl-modules-5.28 all 5.28.1-6 [2818 kB]
Get:10 http://archive.ubuntu.com/ubuntu disco/main amd64 libgdbm6 amd64 1.18.1-4 [27.4 kB]
Get:11 http://archive.ubuntu.com/ubuntu disco/main amd64 libgdbm-compat4 amd64 1.18.1-4 [6152 B]
Get:12 http://archive.ubuntu.com/ubuntu disco/main amd64 libperl5.28 amd64 5.28.1-6 [3827 kB]
Get:13 http://archive.ubuntu.com/ubuntu disco/main amd64 perl amd64 5.28.1-6 [204 kB]
Get:14 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 libssl1.1 amd64 1.1.1b-1ubuntu2.1 [1300 kB]
Get:15 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 openssl amd64 1.1.1b-1ubuntu2.1 [620 kB]
Get:16 http://archive.ubuntu.com/ubuntu disco/main amd64 ca-certificates all 20190110 [146 kB]
Get:17 http://archive.ubuntu.com/ubuntu disco/main amd64 less amd64 487-0.1build1 [112 kB]
Get:18 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 libexpat1 amd64 2.2.6-1ubuntu0.19.04 [88.5 kB]
Get:19 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 libsqlite3-0 amd64 3.27.2-2ubuntu0.1 [533 kB]
Get:20 http://archive.ubuntu.com/ubuntu disco/main amd64 netbase all 5.6 [13.0 kB]
Get:21 http://archive.ubuntu.com/ubuntu disco/main amd64 krb5-locales all 1.17-1 [13.7 kB]
Get:22 http://archive.ubuntu.com/ubuntu disco/main amd64 libedit2 amd64 3.1-20181209-1 [85.9 kB]
Get:23 http://archive.ubuntu.com/ubuntu disco/main amd64 libkrb5support0 amd64 1.17-1 [33.3 kB]
Get:24 http://archive.ubuntu.com/ubuntu disco/main amd64 libk5crypto3 amd64 1.17-1 [85.8 kB]
Get:25 http://archive.ubuntu.com/ubuntu disco/main amd64 libkeyutils1 amd64 1.6-6 [10.1 kB]
Get:26 http://archive.ubuntu.com/ubuntu disco/main amd64 libkrb5-3 amd64 1.17-1 [329 kB]
Get:27 http://archive.ubuntu.com/ubuntu disco/main amd64 libgssapi-krb5-2 amd64 1.17-1 [123 kB]
Get:28 http://archive.ubuntu.com/ubuntu disco/main amd64 libpcre2-8-0 amd64 10.32-5 [180 kB]
Get:29 http://archive.ubuntu.com/ubuntu disco/main amd64 libpsl5 amd64 0.20.2-2 [50.0 kB]
Get:30 http://archive.ubuntu.com/ubuntu disco/main amd64 libxmuu1 amd64 2:1.1.2-2 [9674 B]
Get:31 http://archive.ubuntu.com/ubuntu disco/main amd64 openssh-client amd64 1:7.9p1-10 [595 kB]
Get:32 http://archive.ubuntu.com/ubuntu disco/main amd64 publicsuffix all 20190128.1516-1 [107 kB]
Get:33 http://archive.ubuntu.com/ubuntu disco/main amd64 xauth amd64 1:1.0.10-1 [24.6 kB]
Get:34 http://archive.ubuntu.com/ubuntu disco/main amd64 libroken18-heimdal amd64 7.5.0+dfsg-2.1 [41.4 kB]
Get:35 http://archive.ubuntu.com/ubuntu disco/main amd64 libasn1-8-heimdal amd64 7.5.0+dfsg-2.1 [182 kB]
Get:36 http://archive.ubuntu.com/ubuntu disco/main amd64 libheimbase1-heimdal amd64 7.5.0+dfsg-2.1 [29.4 kB]
Get:37 http://archive.ubuntu.com/ubuntu disco/main amd64 libhcrypto4-heimdal amd64 7.5.0+dfsg-2.1 [86.7 kB]
Get:38 http://archive.ubuntu.com/ubuntu disco/main amd64 libwind0-heimdal amd64 7.5.0+dfsg-2.1 [47.8 kB]
Get:39 http://archive.ubuntu.com/ubuntu disco/main amd64 libhx509-5-heimdal amd64 7.5.0+dfsg-2.1 [107 kB]
Get:40 http://archive.ubuntu.com/ubuntu disco/main amd64 libkrb5-26-heimdal amd64 7.5.0+dfsg-2.1 [206 kB]
Get:41 http://archive.ubuntu.com/ubuntu disco/main amd64 libheimntlm0-heimdal amd64 7.5.0+dfsg-2.1 [14.8 kB]
Get:42 http://archive.ubuntu.com/ubuntu disco/main amd64 libgssapi3-heimdal amd64 7.5.0+dfsg-2.1 [96.4 kB]
Get:43 http://archive.ubuntu.com/ubuntu disco/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-1 [14.9 kB]
Get:44 http://archive.ubuntu.com/ubuntu disco/main amd64 libsasl2-2 amd64 2.1.27+dfsg-1 [49.4 kB]
Get:45 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 libldap-common all 2.4.47+dfsg-3ubuntu2.2 [16.8 kB]
Get:46 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 libldap-2.4-2 amd64 2.4.47+dfsg-3ubuntu2.2 [155 kB]
Get:47 http://archive.ubuntu.com/ubuntu disco/main amd64 libnghttp2-14 amd64 1.36.0-2 [79.0 kB]
Get:48 http://archive.ubuntu.com/ubuntu disco/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2 [54.5 kB]
Get:49 http://archive.ubuntu.com/ubuntu disco/main amd64 libssh-4 amd64 0.8.6-3 [185 kB]
Get:50 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 libcurl4 amd64 7.64.0-2ubuntu1.2 [233 kB]
Get:51 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 curl amd64 7.64.0-2ubuntu1.2 [166 kB]
Get:52 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 libcurl3-gnutls amd64 7.64.0-2ubuntu1.2 [231 kB]
Get:53 http://archive.ubuntu.com/ubuntu disco/main amd64 liberror-perl all 0.17027-2 [26.6 kB]
Get:54 http://archive.ubuntu.com/ubuntu disco/main amd64 git-man all 1:2.20.1-2ubuntu1 [835 kB]
Get:55 http://archive.ubuntu.com/ubuntu disco/main amd64 git amd64 1:2.20.1-2ubuntu1 [4107 kB]
Get:56 http://archive.ubuntu.com/ubuntu disco/main amd64 libsasl2-modules amd64 2.1.27+dfsg-1 [49.3 kB]
Get:57 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 patch amd64 2.7.6-3ubuntu0.1 [105 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 19.3 MB in 12s (1557 kB/s)
Selecting previously unselected package multiarch-support.
(Reading database ... 4116 files and directories currently installed.)
Preparing to unpack .../multiarch-support_2.29-0ubuntu2_amd64.deb ...
Unpacking multiarch-support (2.29-0ubuntu2) ...
Setting up multiarch-support (2.29-0ubuntu2) ...
Selecting previously unselected package libxau6:amd64.
(Reading database ... 4119 files and directories currently installed.)
Preparing to unpack .../00-libxau6_1%3a1.0.8-1_amd64.deb ...
Unpacking libxau6:amd64 (1:1.0.8-1) ...
Selecting previously unselected package libbsd0:amd64.
Preparing to unpack .../01-libbsd0_0.9.1-2_amd64.deb ...
Unpacking libbsd0:amd64 (0.9.1-2) ...
Selecting previously unselected package libxdmcp6:amd64.
Preparing to unpack .../02-libxdmcp6_1%3a1.1.2-3_amd64.deb ...
Unpacking libxdmcp6:amd64 (1:1.1.2-3) ...
Selecting previously unselected package libxcb1:amd64.
Preparing to unpack .../03-libxcb1_1.13.1-2_amd64.deb ...
Unpacking libxcb1:amd64 (1.13.1-2) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../04-libx11-data_2%3a1.6.7-1_all.deb ...
Unpacking libx11-data (2:1.6.7-1) ...
Selecting previously unselected package libx11-6:amd64.
Preparing to unpack .../05-libx11-6_2%3a1.6.7-1_amd64.deb ...
Unpacking libx11-6:amd64 (2:1.6.7-1) ...
Selecting previously unselected package libxext6:amd64.
Preparing to unpack .../06-libxext6_2%3a1.3.3-1_amd64.deb ...
Unpacking libxext6:amd64 (2:1.3.3-1) ...
Selecting previously unselected package perl-modules-5.28.
Preparing to unpack .../07-perl-modules-5.28_5.28.1-6_all.deb ...
Unpacking perl-modules-5.28 (5.28.1-6) ...
Selecting previously unselected package libgdbm6:amd64.
Preparing to unpack .../08-libgdbm6_1.18.1-4_amd64.deb ...
Unpacking libgdbm6:amd64 (1.18.1-4) ...
Selecting previously unselected package libgdbm-compat4:amd64.
Preparing to unpack .../09-libgdbm-compat4_1.18.1-4_amd64.deb ...
Unpacking libgdbm-compat4:amd64 (1.18.1-4) ...
Selecting previously unselected package libperl5.28:amd64.
Preparing to unpack .../10-libperl5.28_5.28.1-6_amd64.deb ...
Unpacking libperl5.28:amd64 (5.28.1-6) ...
Selecting previously unselected package perl.
Preparing to unpack .../11-perl_5.28.1-6_amd64.deb ...
Unpacking perl (5.28.1-6) ...
Selecting previously unselected package libssl1.1:amd64.
Preparing to unpack .../12-libssl1.1_1.1.1b-1ubuntu2.1_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1b-1ubuntu2.1) ...
Selecting previously unselected package openssl.
Preparing to unpack .../13-openssl_1.1.1b-1ubuntu2.1_amd64.deb ...
Unpacking openssl (1.1.1b-1ubuntu2.1) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../14-ca-certificates_20190110_all.deb ...
Unpacking ca-certificates (20190110) ...
Selecting previously unselected package less.
Preparing to unpack .../15-less_487-0.1build1_amd64.deb ...
Unpacking less (487-0.1build1) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../16-libexpat1_2.2.6-1ubuntu0.19.04_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.6-1ubuntu0.19.04) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../17-libsqlite3-0_3.27.2-2ubuntu0.1_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.27.2-2ubuntu0.1) ...
Selecting previously unselected package netbase.
Preparing to unpack .../18-netbase_5.6_all.deb ...
Unpacking netbase (5.6) ...
Selecting previously unselected package krb5-locales.
Preparing to unpack .../19-krb5-locales_1.17-1_all.deb ...
Unpacking krb5-locales (1.17-1) ...
Selecting previously unselected package libedit2:amd64.
Preparing to unpack .../20-libedit2_3.1-20181209-1_amd64.deb ...
Unpacking libedit2:amd64 (3.1-20181209-1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../21-libkrb5support0_1.17-1_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.17-1) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../22-libk5crypto3_1.17-1_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.17-1) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../23-libkeyutils1_1.6-6_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.6-6) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../24-libkrb5-3_1.17-1_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.17-1) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../25-libgssapi-krb5-2_1.17-1_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.17-1) ...
Selecting previously unselected package libpcre2-8-0:amd64.
Preparing to unpack .../26-libpcre2-8-0_10.32-5_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.32-5) ...
Selecting previously unselected package libpsl5:amd64.
Preparing to unpack .../27-libpsl5_0.20.2-2_amd64.deb ...
Unpacking libpsl5:amd64 (0.20.2-2) ...
Selecting previously unselected package libxmuu1:amd64.
Preparing to unpack .../28-libxmuu1_2%3a1.1.2-2_amd64.deb ...
Unpacking libxmuu1:amd64 (2:1.1.2-2) ...
Selecting previously unselected package openssh-client.
Preparing to unpack .../29-openssh-client_1%3a7.9p1-10_amd64.deb ...
Unpacking openssh-client (1:7.9p1-10) ...
Selecting previously unselected package publicsuffix.
Preparing to unpack .../30-publicsuffix_20190128.1516-1_all.deb ...
Unpacking publicsuffix (20190128.1516-1) ...
Selecting previously unselected package xauth.
Preparing to unpack .../31-xauth_1%3a1.0.10-1_amd64.deb ...
Unpacking xauth (1:1.0.10-1) ...
Selecting previously unselected package libroken18-heimdal:amd64.
Preparing to unpack .../32-libroken18-heimdal_7.5.0+dfsg-2.1_amd64.deb ...
Unpacking libroken18-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Selecting previously unselected package libasn1-8-heimdal:amd64.
Preparing to unpack .../33-libasn1-8-heimdal_7.5.0+dfsg-2.1_amd64.deb ...
Unpacking libasn1-8-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Selecting previously unselected package libheimbase1-heimdal:amd64.
Preparing to unpack .../34-libheimbase1-heimdal_7.5.0+dfsg-2.1_amd64.deb ...
Unpacking libheimbase1-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Selecting previously unselected package libhcrypto4-heimdal:amd64.
Preparing to unpack .../35-libhcrypto4-heimdal_7.5.0+dfsg-2.1_amd64.deb ...
Unpacking libhcrypto4-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Selecting previously unselected package libwind0-heimdal:amd64.
Preparing to unpack .../36-libwind0-heimdal_7.5.0+dfsg-2.1_amd64.deb ...
Unpacking libwind0-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Selecting previously unselected package libhx509-5-heimdal:amd64.
Preparing to unpack .../37-libhx509-5-heimdal_7.5.0+dfsg-2.1_amd64.deb ...
Unpacking libhx509-5-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Selecting previously unselected package libkrb5-26-heimdal:amd64.
Preparing to unpack .../38-libkrb5-26-heimdal_7.5.0+dfsg-2.1_amd64.deb ...
Unpacking libkrb5-26-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Selecting previously unselected package libheimntlm0-heimdal:amd64.
Preparing to unpack .../39-libheimntlm0-heimdal_7.5.0+dfsg-2.1_amd64.deb ...
Unpacking libheimntlm0-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Selecting previously unselected package libgssapi3-heimdal:amd64.
Preparing to unpack .../40-libgssapi3-heimdal_7.5.0+dfsg-2.1_amd64.deb ...
Unpacking libgssapi3-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../41-libsasl2-modules-db_2.1.27+dfsg-1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../42-libsasl2-2_2.1.27+dfsg-1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.27+dfsg-1) ...
Selecting previously unselected package libldap-common.
Preparing to unpack .../43-libldap-common_2.4.47+dfsg-3ubuntu2.2_all.deb ...
Unpacking libldap-common (2.4.47+dfsg-3ubuntu2.2) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../44-libldap-2.4-2_2.4.47+dfsg-3ubuntu2.2_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.47+dfsg-3ubuntu2.2) ...
Selecting previously unselected package libnghttp2-14:amd64.
Preparing to unpack .../45-libnghttp2-14_1.36.0-2_amd64.deb ...
Unpacking libnghttp2-14:amd64 (1.36.0-2) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../46-librtmp1_2.4+20151223.gitfa8646d.1-2_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ...
Selecting previously unselected package libssh-4:amd64.
Preparing to unpack .../47-libssh-4_0.8.6-3_amd64.deb ...
Unpacking libssh-4:amd64 (0.8.6-3) ...
Selecting previously unselected package libcurl4:amd64.
Preparing to unpack .../48-libcurl4_7.64.0-2ubuntu1.2_amd64.deb ...
Unpacking libcurl4:amd64 (7.64.0-2ubuntu1.2) ...
Selecting previously unselected package curl.
Preparing to unpack .../49-curl_7.64.0-2ubuntu1.2_amd64.deb ...
Unpacking curl (7.64.0-2ubuntu1.2) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../50-libcurl3-gnutls_7.64.0-2ubuntu1.2_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.64.0-2ubuntu1.2) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../51-liberror-perl_0.17027-2_all.deb ...
Unpacking liberror-perl (0.17027-2) ...
Selecting previously unselected package git-man.
Preparing to unpack .../52-git-man_1%3a2.20.1-2ubuntu1_all.deb ...
Unpacking git-man (1:2.20.1-2ubuntu1) ...
Selecting previously unselected package git.
Preparing to unpack .../53-git_1%3a2.20.1-2ubuntu1_amd64.deb ...
Unpacking git (1:2.20.1-2ubuntu1) ...
Selecting previously unselected package libsasl2-modules:amd64.
Preparing to unpack .../54-libsasl2-modules_2.1.27+dfsg-1_amd64.deb ...
Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-1) ...
Selecting previously unselected package patch.
Preparing to unpack .../55-patch_2.7.6-3ubuntu0.1_amd64.deb ...
Unpacking patch (2.7.6-3ubuntu0.1) ...
Setting up perl-modules-5.28 (5.28.1-6) ...
Setting up libexpat1:amd64 (2.2.6-1ubuntu0.19.04) ...
Setting up libxau6:amd64 (1:1.0.8-1) ...
Setting up libkeyutils1:amd64 (1.6-6) ...
Setting up libpsl5:amd64 (0.20.2-2) ...
Setting up libssl1.1:amd64 (1.1.1b-1ubuntu2.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
Setting up libsqlite3-0:amd64 (3.27.2-2ubuntu0.1) ...
Setting up libsasl2-modules:amd64 (2.1.27+dfsg-1) ...
Setting up libnghttp2-14:amd64 (1.36.0-2) ...
Setting up less (487-0.1build1) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
Setting up krb5-locales (1.17-1) ...
Setting up libldap-common (2.4.47+dfsg-3ubuntu2.2) ...
Setting up libkrb5support0:amd64 (1.17-1) ...
Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-1) ...
Setting up libx11-data (2:1.6.7-1) ...
Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ...
Setting up patch (2.7.6-3ubuntu0.1) ...
Setting up libpcre2-8-0:amd64 (10.32-5) ...
Setting up libk5crypto3:amd64 (1.17-1) ...
Setting up libsasl2-2:amd64 (2.1.27+dfsg-1) ...
Setting up libroken18-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Setting up git-man (1:2.20.1-2ubuntu1) ...
Setting up netbase (5.6) ...
Setting up libkrb5-3:amd64 (1.17-1) ...
Setting up openssl (1.1.1b-1ubuntu2.1) ...
Setting up libbsd0:amd64 (0.9.1-2) ...
Setting up publicsuffix (20190128.1516-1) ...
Setting up libheimbase1-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Setting up libgdbm6:amd64 (1.18.1-4) ...
Setting up libxdmcp6:amd64 (1:1.1.2-3) ...
Setting up libxcb1:amd64 (1.13.1-2) ...
Setting up libasn1-8-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Setting up libedit2:amd64 (3.1-20181209-1) ...
Setting up libhcrypto4-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Setting up ca-certificates (20190110) ...
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
Updating certificates in /etc/ssl/certs...
128 added, 0 removed; done.
Setting up libwind0-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Setting up libgssapi-krb5-2:amd64 (1.17-1) ...
Setting up libgdbm-compat4:amd64 (1.18.1-4) ...
Setting up libssh-4:amd64 (0.8.6-3) ...
Setting up libperl5.28:amd64 (5.28.1-6) ...
Setting up libx11-6:amd64 (2:1.6.7-1) ...
Setting up libxmuu1:amd64 (2:1.1.2-2) ...
Setting up openssh-client (1:7.9p1-10) ...
Setting up libhx509-5-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Setting up libxext6:amd64 (2:1.3.3-1) ...
Setting up perl (5.28.1-6) ...
Setting up xauth (1:1.0.10-1) ...
Setting up libkrb5-26-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Setting up libheimntlm0-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Setting up liberror-perl (0.17027-2) ...
Setting up libgssapi3-heimdal:amd64 (7.5.0+dfsg-2.1) ...
Setting up libldap-2.4-2:amd64 (2.4.47+dfsg-3ubuntu2.2) ...
Setting up libcurl3-gnutls:amd64 (7.64.0-2ubuntu1.2) ...
Setting up git (1:2.20.1-2ubuntu1) ...
Setting up libcurl4:amd64 (7.64.0-2ubuntu1.2) ...
Setting up curl (7.64.0-2ubuntu1.2) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...
Processing triggers for ca-certificates (20190110) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
==> Installing Ruby to /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 26.9M 100 26.9M 0 0 6408k 0 0:00:04 0:00:04 --:--:-- 7094k
==> Installing successful
==> /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin/ruby
ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-linux]
==> Add Ruby to your PATH by running:
PATH=/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin:$PATH
==> This script will install:
/home/linuxbrew/.linuxbrew/bin/brew
/home/linuxbrew/.linuxbrew/share/doc/homebrew
/home/linuxbrew/.linuxbrew/share/man/man1/brew.1
/home/linuxbrew/.linuxbrew/share/zsh/site-functions/_brew
/home/linuxbrew/.linuxbrew/etc/bash_completion.d/brew
/home/gitpod/.cache/Homebrew/
/home/linuxbrew/.linuxbrew/Homebrew
==> The following new directories will be created:
/home/linuxbrew/.linuxbrew/bin
/home/linuxbrew/.linuxbrew/etc
/home/linuxbrew/.linuxbrew/include
/home/linuxbrew/.linuxbrew/lib
/home/linuxbrew/.linuxbrew/sbin
/home/linuxbrew/.linuxbrew/share
/home/linuxbrew/.linuxbrew/var
/home/linuxbrew/.linuxbrew/opt
/home/linuxbrew/.linuxbrew/share/zsh
/home/linuxbrew/.linuxbrew/share/zsh/site-functions
/home/linuxbrew/.linuxbrew/var/homebrew
/home/linuxbrew/.linuxbrew/var/homebrew/linked
/home/linuxbrew/.linuxbrew/Cellar
/home/linuxbrew/.linuxbrew/Caskroom
/home/linuxbrew/.linuxbrew/Frameworks
/usr/bin/mkdir
==> /usr/bin/sudo /bin/mkdir -p /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chmod g+rwx /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chmod 755 /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions
==> /usr/bin/sudo /bin/chown gitpod /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/chgrp gitpod /home/linuxbrew/.linuxbrew/bin /home/linuxbrew/.linuxbrew/etc /home/linuxbrew/.linuxbrew/include /home/linuxbrew/.linuxbrew/lib /home/linuxbrew/.linuxbrew/sbin /home/linuxbrew/.linuxbrew/share /home/linuxbrew/.linuxbrew/var /home/linuxbrew/.linuxbrew/opt /home/linuxbrew/.linuxbrew/share/zsh /home/linuxbrew/.linuxbrew/share/zsh/site-functions /home/linuxbrew/.linuxbrew/var/homebrew /home/linuxbrew/.linuxbrew/var/homebrew/linked /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Caskroom /home/linuxbrew/.linuxbrew/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /home/gitpod/.cache/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /home/gitpod/.cache/Homebrew
==> /usr/bin/sudo /bin/chown gitpod /home/gitpod/.cache/Homebrew
==> /usr/bin/sudo /bin/chgrp gitpod /home/gitpod/.cache/Homebrew
==> Downloading and installing Homebrew...
From https://github.com/Homebrew/brew
* [new branch] master -> origin/master
* [new tag] 0.1 -> 0.1
* [new tag] 0.2 -> 0.2
* [new tag] 0.3 -> 0.3
* [new tag] 0.4 -> 0.4
* [new tag] 0.5 -> 0.5
* [new tag] 0.6 -> 0.6
* [new tag] 0.7 -> 0.7
* [new tag] 0.7.1 -> 0.7.1
* [new tag] 0.8 -> 0.8
* [new tag] 0.8.1 -> 0.8.1
* [new tag] 0.9 -> 0.9
* [new tag] 0.9.1 -> 0.9.1
* [new tag] 0.9.2 -> 0.9.2
* [new tag] 0.9.3 -> 0.9.3
* [new tag] 0.9.4 -> 0.9.4
* [new tag] 0.9.5 -> 0.9.5
* [new tag] 0.9.8 -> 0.9.8
* [new tag] 0.9.9 -> 0.9.9
* [new tag] 1.0.0 -> 1.0.0
* [new tag] 1.0.1 -> 1.0.1
* [new tag] 1.0.2 -> 1.0.2
* [new tag] 1.0.3 -> 1.0.3
* [new tag] 1.0.4 -> 1.0.4
* [new tag] 1.0.5 -> 1.0.5
* [new tag] 1.0.6 -> 1.0.6
* [new tag] 1.0.7 -> 1.0.7
* [new tag] 1.0.8 -> 1.0.8
* [new tag] 1.0.9 -> 1.0.9
* [new tag] 1.1.0 -> 1.1.0
* [new tag] 1.1.1 -> 1.1.1
* [new tag] 1.1.10 -> 1.1.10
* [new tag] 1.1.11 -> 1.1.11
* [new tag] 1.1.12 -> 1.1.12
* [new tag] 1.1.13 -> 1.1.13
* [new tag] 1.1.2 -> 1.1.2
* [new tag] 1.1.3 -> 1.1.3
* [new tag] 1.1.4 -> 1.1.4
* [new tag] 1.1.5 -> 1.1.5
* [new tag] 1.1.6 -> 1.1.6
* [new tag] 1.1.7 -> 1.1.7
* [new tag] 1.1.8 -> 1.1.8
* [new tag] 1.1.9 -> 1.1.9
* [new tag] 1.2.0 -> 1.2.0
* [new tag] 1.2.1 -> 1.2.1
* [new tag] 1.2.2 -> 1.2.2
* [new tag] 1.2.3 -> 1.2.3
* [new tag] 1.2.4 -> 1.2.4
* [new tag] 1.2.5 -> 1.2.5
* [new tag] 1.2.6 -> 1.2.6
* [new tag] 1.3.0 -> 1.3.0
* [new tag] 1.3.1 -> 1.3.1
* [new tag] 1.3.2 -> 1.3.2
* [new tag] 1.3.3 -> 1.3.3
* [new tag] 1.3.4 -> 1.3.4
* [new tag] 1.3.5 -> 1.3.5
* [new tag] 1.3.6 -> 1.3.6
* [new tag] 1.3.7 -> 1.3.7
* [new tag] 1.3.8 -> 1.3.8
* [new tag] 1.3.9 -> 1.3.9
* [new tag] 1.4.0 -> 1.4.0
* [new tag] 1.4.1 -> 1.4.1
* [new tag] 1.4.2 -> 1.4.2
* [new tag] 1.4.3 -> 1.4.3
* [new tag] 1.5.0 -> 1.5.0
* [new tag] 1.5.1 -> 1.5.1
* [new tag] 1.5.10 -> 1.5.10
* [new tag] 1.5.11 -> 1.5.11
* [new tag] 1.5.12 -> 1.5.12
* [new tag] 1.5.13 -> 1.5.13
* [new tag] 1.5.14 -> 1.5.14
* [new tag] 1.5.2 -> 1.5.2
* [new tag] 1.5.3 -> 1.5.3
* [new tag] 1.5.4 -> 1.5.4
* [new tag] 1.5.5 -> 1.5.5
* [new tag] 1.5.6 -> 1.5.6
* [new tag] 1.5.7 -> 1.5.7
* [new tag] 1.5.8 -> 1.5.8
* [new tag] 1.5.9 -> 1.5.9
* [new tag] 1.6.0 -> 1.6.0
* [new tag] 1.6.1 -> 1.6.1
* [new tag] 1.6.10 -> 1.6.10
* [new tag] 1.6.11 -> 1.6.11
* [new tag] 1.6.12 -> 1.6.12
* [new tag] 1.6.13 -> 1.6.13
* [new tag] 1.6.14 -> 1.6.14
* [new tag] 1.6.15 -> 1.6.15
* [new tag] 1.6.16 -> 1.6.16
* [new tag] 1.6.17 -> 1.6.17
* [new tag] 1.6.2 -> 1.6.2
* [new tag] 1.6.3 -> 1.6.3
* [new tag] 1.6.4 -> 1.6.4
* [new tag] 1.6.5 -> 1.6.5
* [new tag] 1.6.6 -> 1.6.6
* [new tag] 1.6.7 -> 1.6.7
* [new tag] 1.6.8 -> 1.6.8
* [new tag] 1.6.9 -> 1.6.9
* [new tag] 1.7.0 -> 1.7.0
* [new tag] 1.7.1 -> 1.7.1
* [new tag] 1.7.2 -> 1.7.2
* [new tag] 1.7.3 -> 1.7.3
* [new tag] 1.7.4 -> 1.7.4
* [new tag] 1.7.5 -> 1.7.5
* [new tag] 1.7.6 -> 1.7.6
* [new tag] 1.7.7 -> 1.7.7
* [new tag] 1.8.0 -> 1.8.0
* [new tag] 1.8.1 -> 1.8.1
* [new tag] 1.8.2 -> 1.8.2
* [new tag] 1.8.3 -> 1.8.3
* [new tag] 1.8.4 -> 1.8.4
* [new tag] 1.8.5 -> 1.8.5
* [new tag] 1.8.6 -> 1.8.6
* [new tag] 1.9.0 -> 1.9.0
* [new tag] 1.9.1 -> 1.9.1
* [new tag] 1.9.2 -> 1.9.2
* [new tag] 1.9.3 -> 1.9.3
* [new tag] 2.0.0 -> 2.0.0
* [new tag] 2.0.1 -> 2.0.1
* [new tag] 2.0.2 -> 2.0.2
* [new tag] 2.0.3 -> 2.0.3
* [new tag] 2.0.4 -> 2.0.4
* [new tag] 2.0.5 -> 2.0.5
* [new tag] 2.0.6 -> 2.0.6
* [new tag] 2.1.0 -> 2.1.0
* [new tag] 2.1.1 -> 2.1.1
* [new tag] 2.1.10 -> 2.1.10
* [new tag] 2.1.11 -> 2.1.11
* [new tag] 2.1.2 -> 2.1.2
* [new tag] 2.1.3 -> 2.1.3
* [new tag] 2.1.4 -> 2.1.4
* [new tag] 2.1.5 -> 2.1.5
* [new tag] 2.1.6 -> 2.1.6
* [new tag] 2.1.7 -> 2.1.7
* [new tag] 2.1.8 -> 2.1.8
* [new tag] 2.1.9 -> 2.1.9
HEAD is now at 373a454ac Merge pull request #6444 from Homebrew/dependabot/bundler/Library/Homebrew/parser-2.6.4.1
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.sh: line 4: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
==> Tapping homebrew/core
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core'...
Tapped 3 commands and 4883 formulae (5,139 files, 13.3MB).
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
Already up-to-date.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Install the Homebrew dependencies if you have sudo access:
Debian, Ubuntu, etc.
sudo apt-get install build-essential
Fedora, Red Hat, CentOS, etc.
sudo yum groupinstall 'Development Tools'
See https://docs.brew.sh/linux for more information.
- Configure Homebrew in your ~/.profile by running
echo 'eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)' >>~/.profile
- Add Homebrew to your PATH
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
- We recommend that you install GCC by running:
brew install gcc
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
Warning: /home/linuxbrew/.linuxbrew/bin is not in your PATH.
Removing intermediate container 10794dc138ff
---> 3f5f08cad561
Step 7/8 : ENV PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin/:$PATH"
---> Running in b05c7e2a570a
Removing intermediate container b05c7e2a570a
---> 352ce86e1d34
Step 8/8 : RUN ls -larth .
---> Running in 3979e3fcbd59
total 24K
-rw-r--r-- 1 gitpod gitpod 807 Apr 4 03:11 .profile
-rw-r--r-- 1 gitpod gitpod 3.7K Apr 4 03:11 .bashrc
-rw-r--r-- 1 gitpod gitpod 220 Apr 4 03:11 .bash_logout
-rw-r--r-- 1 gitpod gitpod 0 Sep 12 15:21 .sudo_as_admin_successful
drwxr-xr-x 1 root root 4.0K Sep 12 15:22 ..
drwxr-xr-x 3 root root 4.0K Sep 12 15:22 .cache
drwxr-xr-x 1 gitpod gitpod 4.0K Sep 12 15:22 .
Removing intermediate container 3979e3fcbd59
---> ccb1de9b348c
Successfully built ccb1de9b348c
EDIT: Oh, sorry, this doesn't actually work. I'll fix that. It was missing Homebrew dependencies. Fixed in-line, and now reproduces the bug successfully.
==> /usr/bin/sudo /bin/mkdir -p /home/gitpod/.cache/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /home/gitpod/.cache/Homebrew
==> /usr/bin/sudo /bin/chown gitpod /home/gitpod/.cache/Homebrew
==> /usr/bin/sudo /bin/chgrp gitpod /home/gitpod/.cache/Homebrew
This is the issue. It'll create .cache as root if it doesn't exist but not chown it back. @sjackman @iMichka do you want this moved to the Linuxbrew/install repo?
do you want this moved to the Linuxbrew/install repo?
Yes, please. I tried the Transfer issue but it looks as though an issue can't be transferred to a different organization.
@jankeromnes Thanks for the bug report, Jan! Would you like to try your hand at submitting a PR to fix this issue? I think it would be a good first issue.
Loop over these four lines https://github.com/Linuxbrew/install/blob/1cd73ae9db9b2de23dda79c5418a1d28ddbe8b01/install#L349-L352 (mkdir, chmod, chown, chgrp) for each directory component of HOMEBREW_CACHE that doesn't yet exist. Feel free to ask me questions if you need a hand! Also feel free to open a work-in-progress PR if you have something that also works, but need help.
Is this still open ?
One question:
for each directory component of HOMEBREW_CACHE that doesn't yet exist
What do you mean by 'doesn't yet exist'?
I am assuming you mean the folders inside HOMEBREW_CACHE. Correct me if I am wrong here. If not so, then can I not use chown -R to recursively change the owner of the directories at the parent level itself ?
I mean the directory /home/linuxbrew/.linuxbrew/.cache/Homebrew and each of its parent directories.
can I not use
chown -Rto recursively change the owner of the directories at the parent level itself?
Yep!
Use chown -R as a workaround. In the Ruby install code it would chown the cache directory and each of its parent directories.
Ok....
From the install script -
Line 21 -> HOMEBREW_PREFIX_DEFAULT = "/home/linuxbrew/.linuxbrew".freeze
I dont see .cache being created under this directory at all. Am I missing something here? Also it is already owned by the user(not root).
Line 22 ->HOMEBREW_CACHE = "#{ENV["HOME"]}/.cache/Homebrew".freeze
Wouldn't this cache folder be used by other applications also. Should I only change the owner of the Homebrew folder within .cache.
Something like this -
Lines - 351 & 352
sudo CHOWN, "-R", ENV["USER"], HOMEBREW_CACHE if chown? HOMEBREW_CACHE
sudo CHGRP, "-R", group, HOMEBREW_CACHE if chgrp? HOMEBREW_CACHE
I checked it out manually and it changes the ownership correctly for the homebrew folder within .cache.
That was a typo, sorry. /home/linuxbrew/.linuxbrew/.cache/Homebrew should have been /home/linuxbrew/.cache/Homebrew.
/home/linuxbrew/.linuxbrew/.cache/Homebrew/
/home/linuxbrew/.linuxbrew/.cache/
/home/linuxbrew/.linuxbrew/
/home/linuxbrew/
should all be owned by ENV["USER"].
Added a PR for this. Please check it. Do mention if there is anything I need to change in it.
Thank you, Ninan! The PR that addresses this issue https://github.com/Linuxbrew/install/pull/74.
Most helpful comment
Is this still open ?