termux-pacman / pacman-for-termux

Special configured pacman for termux.
https://termux-pacman.dev
MIT License
73 stars 6 forks source link

Mirror list tar is outdated #2

Closed creepy-pasta101 closed 3 years ago

creepy-pasta101 commented 3 years ago

The mirror list is outdated

--2021-05-21 17:26:15--  http://mirror.archlinuxarm.org/aarch64/core/pacman-mirrorlist-20210307-1-any.pkg.tar.xz
Resolving mirror.archlinuxarm.org... 
failed: No address associated with hostname
Maxython commented 3 years ago

Copy and paste into termux.

wget --inet4-only http://mirror.archlinuxarm.org/aarch64/core/pacman-mirrorlist-20210307-1-any.pkg.tar.xz
pacman -U pacman-mirrorlist-20210307-1-any.pkg.tar.xz --noconfirm
rm pacman-mirrorlist-20210307-1-any.pkg.tar.xz
sed -i 's+RootDir     = /data/data/com.termux/files/usr/+RootDir     = /data/data/com.termux/files/+' $PREFIX/etc/pacman.conf
sed -i 's/#this//' $PREFIX/etc/pacman.conf
pacman -Syu