#!/bin/bash
# get source list from ali
cd /etc/apt
mv sources.list sources.list.bak
wget http://mirrors.aliyun.com/repo/ubuntu1404-lts.list
cp ubuntu1404-lts.list sources.list
# update
apt-get update
时间: 2024-10-23 02:45:57
#!/bin/bash
# get source list from ali
cd /etc/apt
mv sources.list sources.list.bak
wget http://mirrors.aliyun.com/repo/ubuntu1404-lts.list
cp ubuntu1404-lts.list sources.list
# update
apt-get update