-
Notifications
You must be signed in to change notification settings - Fork 1
/
change_source.sh
20 lines (16 loc) · 1.02 KB
/
change_source.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo truncate -s 0 /etc/apt/sources.list
sudo cat >> /etc/apt/sources.list << EOF
deb http://archive.build.openkylin.top/openkylin yangtze main
deb http://archive.build.openkylin.top/OTHER/Internal-mirror/repack5/baseok0.fix yangtze main
deb http://archive.build.openkylin.top/OTHER/Internal-mirror/stage0 yangtze main
deb http://archive.build.openkylin.top/openkylin yangtze-security main
deb http://archive.build.openkylin.top/openkylin yangtze-updates main
deb http://archive.build.openkylin.top/openkylin yangtze-proposed main
EOF
sudo apt update && sudo apt upgrade
sudo apt install -y devscripts git-buildpackage pristine-tar vim neofetch git fakeroot build-essential libncurses-dev xz-utils libssl-dev bc flex libelf-dev bison gpg python3-pyquery wget make gcc dpkg-dev python3-pip python3-tk autoconf automake gdb gdb-doc cgdb dh-make lintian pbuilder cowdancer debian-policy developers-reference systemd nodejs npm
sudo npm install -g n
sudo n stable
hash -r