From 2f6e666cc890317ed0115c4d4c967769716ccff5 Mon Sep 17 00:00:00 2001 From: Eden <62473844+EdenQwQ@users.noreply.github.com> Date: Mon, 30 May 2022 20:43:52 +0800 Subject: [PATCH] help: update voidlinux official repository MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Voidlinux changed it's default official repository thus the command should be modified voidlinux更改了默认官方repository,需要修改相关sed命令 --- help/_posts/1970-01-01-voidlinux.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/help/_posts/1970-01-01-voidlinux.md b/help/_posts/1970-01-01-voidlinux.md index 6eca8b3..b51de95 100644 --- a/help/_posts/1970-01-01-voidlinux.md +++ b/help/_posts/1970-01-01-voidlinux.md @@ -11,7 +11,11 @@ mirrorid: voidlinux ``` # mkdir -p /etc/xbps.d # cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ -# sed -i 's|https://alpha.de.repo.voidlinux.org|https://{{ site.hostname }}/voidlinux|g' /etc/xbps.d/*-repository-*.conf +# sed -i 's|https://repo-default.voidlinux.org|https://{{site.hostname}}/voidlinux|g' /etc/xbps.d/*-repository-*.conf +``` +若报错可尝试 +``` +sed -i 's|https://alpha.de.repo.voidlinux.org|https://{{ site.hostname }}/voidlinux|g' /etc/xbps.d/*-repository-*.conf ``` 之后可用 `xbps-query -L` 检查是否正确替换。