Skip to content

Commit

Permalink
Openwrt19.07编译全系更改阿里源
Browse files Browse the repository at this point in the history
## 测试说明
* 1.经过测试,使用微软源在包更少的情况下所需时间更长,且会莫名报错。如图:
![](https://s3.bmp.ovh/imgs/2023/01/13/a8d21b205a7ecaa4.png)
![](https://s3.bmp.ovh/imgs/2023/01/13/1b45f00a0a8690fb.png)
![](https://s3.bmp.ovh/imgs/2023/01/13/832bfe8be9414f1b.jpg)

* 2.但是使用阿里源则不会。如图:
![](https://s3.bmp.ovh/imgs/2023/01/13/9d9d8f1ed37fd0e6.png)
![](https://s3.bmp.ovh/imgs/2023/01/13/1d68f4f06208d6af.png)
## 修改语法

```shell
        sudo sed -i s@/azure.archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
        sudo -E apt -qq clean
        sudo -E apt-get -qq update
```
  • Loading branch information
yuos-bit committed Jan 13, 2023
1 parent 1f69fb9 commit 3b0bcc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/Build_yuos_openwrt-19.07.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ jobs:
run: |
docker rmi `docker images -q`
sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc
sudo sed -i s@/azure.archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
sudo -E apt -qq clean
sudo -E apt-get -qq update
sudo -E apt-get -qq install $(curl -fsSL git.io/depends-ubuntu-2004)
sudo -E apt-get -qq autoremove --purge
Expand Down

0 comments on commit 3b0bcc5

Please sign in to comment.