[archlinuxcn]
SigLevel = Optional TrustAll
Server = http://mirrors.ustc.edu.cn/archlinuxcn/$arch # 依你國家而異使用速度較快的鏡像,我使用中國的鏡像
同步
# pacman -Sy
安裝
# pacman -S yaourt
開新user
# groupadd bear
# useradd -r -g bear bear
# mkdir -p /home/bear
# chown bear:bear -R /home/bear
查詢group
# vi /etc/group
刪除新增錯誤的group
# groupdel beaer
PKGBUILD 安裝( 因makepkg 不能使用root執行,所以我先開了一個bear 的user )
$ curl -O https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz
$ tar zxvf package-query.tar.gz
$ cd package-query
$ makepkg -si
==> ERROR: Cannot find the strip binary required for object file stripping.
( 解決方放: pacman -S binutils,但是仍然會報錯:
make: error while loading shared libraries: libunistring.so.2: cannot open shared object file: No such file or directory
==> ERROR: A failure occurred in build().
Aborting...
看起來是docker的問題... https://github.com/runtimejs/runtime/issues/30
)
$ cd ..
$ curl -O https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz
$ tar zxvf yaourt.tar.gz
$ cd yaourt
$ makepkg -si
$ cd ..
參考資料:
https://wiki.archlinux.org/index.php/Yaourt_(%E6%AD%A3%E9%AB%94%E4%B8%AD%E6%96%87) # Yaourt (正體中文)
https://archlinux.fr/yaourt-en #安裝方法
https://bbs.archlinux.org/viewtopic.php?id=140055 # ERROR: Cannot find the strip binary required for object file stripping 解決方式
https://github.com/archlinuxcn/mirrorlist-repo # Arch Linux CN Community repo mirrors list
沒有留言:
張貼留言