Skip to content

Commit

Permalink
fix: use ubuntu 22.04 mirror (#1980)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy authored Feb 10, 2025
1 parent 37cb376 commit 63a0971
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions e2e/docs/testdata/complex/build.envd
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ def build():
install.python()
config.apt_source(
source="""
deb https://mirror.sjtu.edu.cn/ubuntu focal main restricted
deb https://mirror.sjtu.edu.cn/ubuntu focal-updates main restricted
deb https://mirror.sjtu.edu.cn/ubuntu focal universe
deb https://mirror.sjtu.edu.cn/ubuntu focal-updates universe
deb https://mirror.sjtu.edu.cn/ubuntu focal multiverse
deb https://mirror.sjtu.edu.cn/ubuntu focal-updates multiverse
deb https://mirror.sjtu.edu.cn/ubuntu focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb https://mirror.sjtu.edu.cn/ubuntu focal-security main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu jammy main restricted
deb https://mirror.sjtu.edu.cn/ubuntu jammy-updates main restricted
deb https://mirror.sjtu.edu.cn/ubuntu jammy universe
deb https://mirror.sjtu.edu.cn/ubuntu jammy-updates universe
deb https://mirror.sjtu.edu.cn/ubuntu jammy multiverse
deb https://mirror.sjtu.edu.cn/ubuntu jammy-updates multiverse
deb https://mirror.sjtu.edu.cn/ubuntu jammy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu jammy partner
deb https://mirror.sjtu.edu.cn/ubuntu jammy-security main restricted universe multiverse
"""
)
config.pip_index(url="https://mirror.sjtu.edu.cn/pypi/web/simple")
Expand Down
18 changes: 9 additions & 9 deletions envd/api/v0/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ def apt_source(source: Optional[str]):
Example usage:
```python
apt_source(source='''
deb https://mirror.sjtu.edu.cn/ubuntu focal main restricted
deb https://mirror.sjtu.edu.cn/ubuntu focal-updates main restricted
deb https://mirror.sjtu.edu.cn/ubuntu focal universe
deb https://mirror.sjtu.edu.cn/ubuntu focal-updates universe
deb https://mirror.sjtu.edu.cn/ubuntu focal multiverse
deb https://mirror.sjtu.edu.cn/ubuntu focal-updates multiverse
deb https://mirror.sjtu.edu.cn/ubuntu focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb https://mirror.sjtu.edu.cn/ubuntu focal-security main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu jammy main restricted
deb https://mirror.sjtu.edu.cn/ubuntu jammy-updates main restricted
deb https://mirror.sjtu.edu.cn/ubuntu jammy universe
deb https://mirror.sjtu.edu.cn/ubuntu jammy-updates universe
deb https://mirror.sjtu.edu.cn/ubuntu jammy multiverse
deb https://mirror.sjtu.edu.cn/ubuntu jammy-updates multiverse
deb https://mirror.sjtu.edu.cn/ubuntu jammy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu jammy partner
deb https://mirror.sjtu.edu.cn/ubuntu jammy-security main restricted universe multiverse
''')
```
Expand Down
18 changes: 9 additions & 9 deletions envd/api/v1/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ def apt_source(source: Optional[str]):
Example usage:
```python
apt_source(source='''
deb https://mirror.sjtu.edu.cn/ubuntu focal main restricted
deb https://mirror.sjtu.edu.cn/ubuntu focal-updates main restricted
deb https://mirror.sjtu.edu.cn/ubuntu focal universe
deb https://mirror.sjtu.edu.cn/ubuntu focal-updates universe
deb https://mirror.sjtu.edu.cn/ubuntu focal multiverse
deb https://mirror.sjtu.edu.cn/ubuntu focal-updates multiverse
deb https://mirror.sjtu.edu.cn/ubuntu focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb https://mirror.sjtu.edu.cn/ubuntu focal-security main restricted universe multiverse
deb https://mirror.sjtu.edu.cn/ubuntu jammy main restricted
deb https://mirror.sjtu.edu.cn/ubuntu jammy-updates main restricted
deb https://mirror.sjtu.edu.cn/ubuntu jammy universe
deb https://mirror.sjtu.edu.cn/ubuntu jammy-updates universe
deb https://mirror.sjtu.edu.cn/ubuntu jammy multiverse
deb https://mirror.sjtu.edu.cn/ubuntu jammy-updates multiverse
deb https://mirror.sjtu.edu.cn/ubuntu jammy-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu jammy partner
deb https://mirror.sjtu.edu.cn/ubuntu jammy-security main restricted universe multiverse
''')
```
Expand Down

0 comments on commit 63a0971

Please sign in to comment.