git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] install-dependencies: work around a permission problem

From
Harald Nordgren via GitGitGadget <gitgitgadget@gmail.com>
Date
Nov 1, 2026, 11:02 UTC
Message-ID
<15e79c5cfcd9eb59b79daa1aee7a54f433d8509b.1793530936.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.2478.git.git.1793530936.gitgitgadget@gmail.com>
From: Harald Nordgren <haraldnordgren@gmail.com>

When replacing `dirname`, elevation is required, otherwise the command will fail with:

  + ln -sfT /usr/bin/gnudirname /usr/bin/dirname
  ln: failed to create symbolic link '/usr/bin/dirname': Already exists

as observed in https://github.com/git-for-windows/git/actions/runs/40223871341/job/121274294974?pr=6473#step:3:909

Based-on-patch-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Harald Nordgren <haraldnordgren@gmail.com>
---
 ci/install-dependencies.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh
index 4b1733ad15..ed2d09a0a9 100755
--- a/ci/install-dependencies.sh
+++ b/ci/install-dependencies.sh
@@ -80,7 +80,7 @@ ubuntu-*|i386/debian-*|debian-*)
 	# See <https://github.com/uutils/coreutils/issues/10508>.
 	if test -x /usr/bin/gnudirname
 	then
-		ln -sfT /usr/bin/gnudirname /usr/bin/dirname
+		sudo ln -sfT /usr/bin/gnudirname /usr/bin/dirname
 	fi
 
 	case "$distro" in
-- 
gitgitgadget
Previous: Harald Nordgren via GitGitGadgetNext: Harald Nordgren via GitGitGadget
Message 3 of 5 in “ci: fix jobs failing on Ubuntu 26.04”
  1. 0/3 ci: fix jobs failing on Ubuntu 26.04Harald Nordgren via GitGitGadget, Nov 1, 2026
  2. 1/3 ci: use apt-get in the linux32 jobHarald Nordgren via GitGitGadget, Nov 1, 2026
  3. 2/3 install-dependencies: work around a permission problemHarald Nordgren via GitGitGadget, Nov 1, 2026
  4. 3/3 ci: pin linux32 to ubuntu-24.04 to restore networkingHarald Nordgren via GitGitGadget, Nov 1, 2026
  5. Junio C HamanoNov 3, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.