mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-10 22:49:54 +00:00
chore(scripts): run apt update on apt based distro
Running apt update to avoid "package not found" error on some pre-installed Ubuntu / Debian. I have tested that other supported Linux distributions do not need this. dnf/yum/zypper: update metadata regularly by default, and checked when installing any package pacman: run with -Sy so metadata is always updated cherry-picked from: apernet/tcp-brutal@efcc08b936
This commit is contained in:
parent
0f388396a4
commit
3de65357d4
@ -236,6 +236,7 @@ detect_package_manager() {
|
||||
fi
|
||||
|
||||
if has_command apt; then
|
||||
apt update
|
||||
PACKAGE_MANAGEMENT_INSTALL='apt -y --no-install-recommends install'
|
||||
return 0
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user