加入部分英文文档

This commit is contained in:
zyh001
2024-05-01 12:30:24 +08:00
parent bf46d076bb
commit 8a61dca62a
9 changed files with 742 additions and 0 deletions

45
docs/en/alpine.mdx Normal file
View File

@@ -0,0 +1,45 @@
---
mirrorId: alpine
---
## Alpine Image Usage Help
### Address
https://mirrors.jcut.edu.cn/alpine/
### Description
Alpine Linux Package Repository
### Included Architectures
x86_64
### Usage Instructions
Under normal circumstances, you can replace the default Alpine source address `http://dl-cdn.alpinelinux.org/` in the `/etc/apk/repositories` file with `http://mirrors.jcut.edu.cn/`.
You may use the following command:
```shell
sed -i 's/dl-cdn.alpinelinux.org/mirrors.jcut.edu.cn/g' /etc/apk/repositories
```
Alternatively, you can directly edit the `/etc/apk/repositories` file. Below is the reference configuration for version v3.19:
```text
https://mirrors.jcut.edu.cn/alpine/v3.19/main
https://mirrors.jcut.edu.cn/alpine/v3.19/community
```
You can also use `latest-stable` to point to the latest stable version:
```text
https://mirrors.jcut.edu.cn/alpine/latest-stable/main
https://mirrors.jcut.edu.cn/alpine/latest-stable/community
```
### Note
After changing the `/etc/apk/repositories` file, please run `apk update` to update the index for the changes to take effect.

49
docs/en/archlinux.mdx Normal file
View File

@@ -0,0 +1,49 @@
---
mirrorId: archlinux
---
## ArchLinux Mirror Usage Help
### Address
https://mirrors.jcut.edu.cn/archlinux/
### Description
Arch Linux software repository.
### Supported Architectures
i686, x86_64
---
### Usage Instructions
Pacman prioritizes the servers in the `mirrorlist` based on their order, so to add a mirror, it should be placed at the very top of the file; you may also comment out all other mirrors.
For detailed instructions on using mirrors for Arch Linux, please see the [official documentation](https://wiki.archlinux.org/title/mirrors).
Edit `/etc/pacman.d/mirrorlist` and add the following at the very top of the file:
```text
Server = https://mirrors.jcut.edu.cn/archlinux/$repo/os/$arch
```
It is also recommended to enable the `archlinuxcn` repository. For information about the `archlinuxcn` repository, please check [archlinuxcn Mirror Usage Help](#/doc/archlinuxcn).
### Note
After modifying the `mirrorlist`, please update the package cache:
```bash
sudo pacman -Syyu
```
Using two `y` flags helps to avoid problems when switching from a corrupted mirror to a working one.
If you switch from a newer mirror to an older one, the following command can be used to downgrade certain packages to prevent partial system updates:
```bash
sudo pacman -Syyuu
```

196
docs/en/centos.mdx Normal file
View File

@@ -0,0 +1,196 @@
---
mirrorId: centos
---
## CentOS Mirror Usage Guide
### Address
[https://mirrors.jcut.edu.cn/centos/](https://mirrors.jcut.edu.cn/centos/)
### Description
CentOS Repository
### Supported Architectures
x86_64, aarch64, ppc64le
### Supported Versions
7, 8 Stream
#### Note
> CentOS 8 (non-Stream version) has been officially removed from this repository.
---
### Usage Instructions
For CentOS 8 Stream, use the following commands to replace the default configuration:
```shell
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://mirror.centos.org/$contentdir|baseurl=https://mirrors.jcut.edu.cn/centos|g' \
-i.bak \
/etc/yum.repos.d/CentOS-Stream-AppStream.repo \
/etc/yum.repos.d/CentOS-Stream-BaseOS.repo \
/etc/yum.repos.d/CentOS-Stream-Extras.repo \
/etc/yum.repos.d/CentOS-Stream-PowerTools.repo
```
For CentOS 7, use the following command to replace the default configuration:
```bash
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://mirror.centos.org/centos|baseurl=https://mirrors.jcut.edu.cn/centos|g' \
-i.bak \
/etc/yum.repos.d/CentOS-Base.repo
```
The above commands only replace the default enabled repositories. After replacement, please run `yum makecache` to update the cache.
Below are the files after replacement:
Warning
The given CentOS-Stream-PowerTools.repo is set to disabled by default. To enable it, change `enabled=0` to `enabled=1`.
CentOS 8 Stream:
`/etc/yum.repos.d/CentOS-Stream-BaseOS.repo` file:
```shell
# CentOS-Stream-BaseOS.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.
[baseos]
name=CentOS Stream $releasever - BaseOS
#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=BaseOS&infra=$infra
baseurl=https://mirrors.jcut.edu.cn/centos/$stream/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
```
`/etc/yum.repos.d/CentOS-Stream-Extras.repo` file:
```shell
# CentOS-Stream-Extras.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.
[extras]
name=CentOS Stream $releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=extras&infra=$infra
baseurl=https://mirrors.jcut.edu.cn/centos/$stream/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
```
`/etc/yum.repos.d/CentOS-Stream-AppStream.repo` file:
```shell
# CentOS-Stream-AppStream.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.
[appstream]
name=CentOS Stream $releasever - AppStream
#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=AppStream&infra=$infra
baseurl=https://mirrors.jcut.edu.cn/centos/$stream/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
```
`/etc/yum.repos.d/CentOS-Stream-PowerTools.repo` file:
```shell
# CentOS-Stream-PowerTools.repo
#
# The mirrorlist system uses the connecting IP address of the client and the
# update status of each mirror to pick current mirrors that are geographically
# close to the client. You should use this for CentOS updates unless you are
# manually picking other mirrors.
#
# If the mirrorlist does not work for you, you can try the commented out
# baseurl line instead.
[powertools]
name=CentOS Stream $releasever - PowerTools
#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=PowerTools&infra=$infra
baseurl=https://mirrors.jcut.edu.cn/centos/$stream/PowerTools/$basearch/os/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
```
CentOS 7:
`/etc/yum.repos.d/CentOS-Base.repo` file:
```shell
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=https://mirrors.jcut.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=https://mirrors.jcut.edu.cn/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=https://mirrors.jcut.edu.cn/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=https://mirrors.jcut.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
```

138
docs/en/debian.mdx Normal file
View File

@@ -0,0 +1,138 @@
---
mirrorId: debian
---
import ConfigGenerator from '../../src/components/config-generator'
export const debianVersions = [
"bookworm", // 12
"bullseye", // 11
"buster", // 10
"stretch", // 9
"jessie", // 8
"testing", // next stable in development
"sid", // unstable
]
export const GenDebianConfig = (version) => {
if (version === 'sid') { // unstable
return `# Source mirrors are commented out by default to improve apt update speed, uncomment if necessary
deb https://mirrors.jcut.edu.cn/debian/ sid main contrib non-free non-free-firmware
# deb-src https://mirrors.jcut.edu.cn/debian/ sid main contrib non-free non-free-firmware`
} else if (version === 'bullseye') { // 11
return `# Source mirrors are commented out by default to improve apt update speed, uncomment if necessary
deb https://mirrors.jcut.edu.cn/debian/ ${version} main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian/ ${version} main contrib non-free
deb https://mirrors.jcut.edu.cn/debian/ ${version}-updates main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian/ ${version}-updates main contrib non-free\n
deb https://mirrors.jcut.edu.cn/debian/ ${version}-backports main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian/ ${version}-backports main contrib non-free\n
deb https://mirrors.jcut.edu.cn/debian-security ${version}-security main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian-security ${version}-security main contrib non-free`
} else if (version === 'buster' || version === 'stretch') { // 9, 10
return `# Source mirrors are commented out by default to improve apt update speed, uncomment if necessary
deb https://mirrors.jcut.edu.cn/debian/ ${version} main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian/ ${version} main contrib non-free
deb https://mirrors.jcut.edu.cn/debian/ ${version}-updates main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian/ ${version}-updates main contrib non-free
deb https://mirrors.jcut.edu.cn/debian/ ${version}-backports main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian/ ${version}-backports main contrib non-free
deb https://mirrors.jcut.edu.cn/debian-security ${version}/updates main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian-security ${version}/updates main contrib non-free`
} else if (version === 'jessie') { // 8
return `# Source mirrors are commented out by default to improve apt update speed, uncomment if necessary
deb https://mirrors.jcut.edu.cn/debian/ jessie main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian/ jessie main contrib non-free
deb https://mirrors.jcut.edu.cn/debian/ jessie-updates main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian/ jessie-updates main contrib non-free
deb https://mirrors.jcut.edu.cn/debian-security jessie/updates main contrib non-free
# deb-src https://mirrors.jcut.edu.cn/debian-security jessie/updates main contrib non-free`
}
return `# Source mirrors are commented out by default to improve apt update speed, uncomment if necessary
deb https://mirrors.jcut.edu.cn/debian/ ${version} main contrib non-free non-free-firmware
# deb-src https://mirrors.jcut.edu.cn/debian/ ${version} main contrib non-free non-free-firmware
deb https://mirrors.jcut.edu.cn/debian/ ${version}-updates main contrib non-free non-free-firmware
# deb-src https://mirrors.jcut.edu.cn/debian/ ${version}-updates main contrib non-free non-free-firmware
deb https://mirrors.jcut.edu.cn/debian/ ${version}-backports main contrib non-free non-free-firmware
# deb-src https://mirrors.jcut.edu.cn/debian/ ${version}-backports main contrib non-free non-free-firmware
deb https://mirrors.jcut.edu.cn/debian-security ${version}-security main contrib non-free non-free-firmware
# deb-src https://mirrors.jcut.edu.cn/debian-security ${version}-security main contrib non-free non-free-firmware`
}
## Debian Mirror Usage Help
### Address
[https://mirrors.jcut.edu.cn/debian/](https://mirrors.jcut.edu.cn/debian/)
### Description
*Debian* repository source
### Supported Architectures
amd64(X86_64), i386, arm
### Included Versions
Debian Old Stable, Stable, Testing, Unstable (sid)
The current Stable is Debian 12, codenamed Bookworm
---
### Usage Instructions
#### Method One
Under normal circumstances, simply replace the *Debian* default source address `http://deb.debian.org/` with `http://mirrors.jcut.edu.cn` in the `/etc/apt/sources.list` file.
You can use the following command:
```shell
sudo sed -i 's/deb.debian.org/mirrors.jcut.edu.cn/g' /etc/apt/sources.list
```
For Debian 12 (bookworm) **container** images that start using the DEB822 format instead of the traditional One-Line-Style format mentioned above, you would need to modify the `/etc/apt/sources.list.d/debian.sources` file. You can also use the following command:
```shell
sudo sed -i 's/deb.debian.org/mirrors.jcut.edu.cn/g' /etc/apt/sources.list.d/debian.sources
```
#### Method Two
Directly edit the /etc/apt/sources.list file (sudo is required). Below is the reference configuration content:
<ConfigGenerator promptString="Please select your Debian version:" versionList={debianVersions} configGen={GenDebianConfig} language="bash" />
Below is the reference configuration content for Debian 12 **container images** after modifying both Debian and Debian Security sources:
```text
Types: deb
URIs: http://mirrors.jcut.edu.cn/debian
Suites: bookworm bookworm-updates
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
Types: deb
URIs: http://mirrors.jcut.edu.cn/debian-security
Suites: bookworm-security
Components: main
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
```
#### Note
After you change the `sources.list` file, please run `sudo apt-get update` to update the index and apply the changes.
In version 2.1.9 and later of apt, the HTTP Pipelining feature of apt seems to have some compatibility issues with Nginx servers, which may cause occasional Connection reset by peer errors when downloading large packages (such as system upgrades) from mirror sites (see Debian bug #973581).
Currently, users can solve this problem by turning off the HTTP Pipelining feature. If you need to turn it off, you can add the `-o Acquire::http::Pipeline-Depth=0` parameter when using the `apt` command, or add the relevant settings to the apt system configuration with the following command:
```bash
echo "Acquire::http::Pipeline-Depth \"0\";" > /etc/apt/apt.conf.d/99nopipelining
```
If you encounter problems pulling from https sources, first use http sources and install:
```bash
sudo apt install apt-transport-https ca-certificates
```

49
docs/en/kali.mdx Normal file
View File

@@ -0,0 +1,49 @@
---
mirrorId: kali
---
## Kali Mirror Usage Help
### Address
[https://mirrors.jcut.edu.cn/kali/](https://mirrors.jcut.edu.cn/kali/)
### Description
*Kali Linux* software repository.
### Supported System Architectures
amd64, armel, armhf, i386
---
### Usage Instructions
#### Method 1
Edit the `/etc/apt/sources.list` file and add the following entries at the top:
```shell
deb https://mirrors.jcut.edu.cn/kali kali-rolling main non-free contrib
deb-src https://mirrors.jcut.edu.cn/kali kali-rolling main non-free contrib
```
#### Method 2
Use the sed command to replace
```shell
sudo sed -i "s@http://http.kali.org/kali@https://mirrors.jcut.edu.cn/kali@g" /etc/apt/sources.list
```
### Note
> After changing the `sources.list` file, please run `sudo apt-get update` to update the index and apply the changes.
Since the Kali repository does not use the by-hash mechanism, consistency during synchronization cannot be guaranteed. If you run `apt update` during synchronization, you may see an error like this:
```text
E: Failed to fetch https://mirrors.jcut.edu.cn/kali/dists/kali-rolling/main/source/Sources.gz File has unexpected size (14593053 != 14592993). Mirror sync in progress?
```
If you encounter the above error, you will need to wait for the synchronization to complete before running `apt update` again.

61
docs/en/mysql.mdx Normal file
View File

@@ -0,0 +1,61 @@
---
mirrorId: mysql
---
## MySQL Source Use Help
### Address
[https://mirrors.jcut.edu.cn/mysql/](https://mirrors.jcut.edu.cn/mysql/)
### Description
Mirror for MySQL software repositories.
### Included Versions
Currently supported Linux distributions' MySQL APT/YUM packages (without debug symbols).
The file directory structure is consistent with the upstream.
### Usage Instructions
For Debian/Ubuntu users, refer to the following commands:
```bash
## Please modify the version as needed, 8.0 and 5.7 are supported
Mysql_version='8.0'
source /etc/os-release && echo "deb https://mirrors.jcut.edu.cn/mysql/apt/${ID,,} ${VERSION_CODENAME} mysql-${Mysql_version} mysql-tools" > /etc/apt/sources.list.d/mysql-community.list
## Update repository
apt-get update
```
For RHEL7/Fedora 7 users, refer to the following commands:
```bash
## Please modify the version as needed, 8.0 and 5.7 are supported
Mysql_version='8.0'
cat <<EOT > /etc/yum.repos.d/mysql-community.repo
[mysql-connectors-community]
name=MySQL Connectors Community
baseurl=https://mirrors.jcut.edu.cn/mysql/yum/mysql-connectors-community-el7-\$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
[mysql-tools-community]
name=MySQL Tools Community
baseurl=https://mirrors.jcut.edu.cn/mysql/yum/mysql-tools-community-el7-\$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
[mysql-8.0-community]
name=MySQL 8.0 Community Server
baseurl=https://mirrors.jcut.edu.cn/mysql/yum/mysql-${Mysql_version}-community-el7-\$basearch/
enabled=1
gpgcheck=1
gpgkey=https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
EOT
## Update repository cache
yum makecache
```

View File

@@ -0,0 +1,76 @@
---
mirrorId: nodejs-release
---
## Node Source Usage Help
### Address
[https://mirrors.jcut.edu.cn/nodejs-release/](https://mirrors.jcut.edu.cn/nodejs-release/)
### Description
Mirror for the Node.js repository, containing the content from https://nodejs.org/dist/
### Usage Instructions
You can manually select and download the required version, or you can use it in conjunction with version managers such as `n`, `nvm`, or `fnm`. The methods are as follows:
#### n
```bash
# Set environment variable
export NODE_MIRROR=https://mirrors.jcut.edu.cn/nodejs-release/
# Then use n as usual
sudo n stable
```
#### nvm
```bash
# Set environment variable
export NVM_NODEJS_ORG_MIRROR=https://mirrors.jcut.edu.cn/nodejs-release/
# Then use nvm as normal
nvm install <version>
```
#### fnm
```bash
# Set environment variable
export FNM_NODE_DIST_MIRROR=https://mirrors.jcut.edu.cn/nodejs-release/
# Then use fnm as normal
fnm install <version>
```
#### volta
Create or edit `~/.volta/hooks.json` (Linux/MacOS), or `%LOCALAPPDATA%\Volta\hooks.json` (Windows), replacing its contents with:
```json
{
"node": {
"index": {
"template": "https://mirrors.jcut.edu.cn/nodejs-release/index.json"
},
"distro": {
"template": "https://mirrors.jcut.edu.cn/nodejs-release/v{{version}}/node-v{{version}}-{{os}}-{{arch}}.tar.gz"
}
}
}
```
After this, you can use `volta` as normal:
```bash
volta install node@<version>
```

51
docs/en/rocky.mdx Normal file
View File

@@ -0,0 +1,51 @@
---
mirrorId: rocky
---
## Rocky Linux Repository Usage Help
### Address
[https://mirrors.jcut.edu.cn/rocky/](https://mirrors.jcut.edu.cn/rocky/)
### Description
Rocky Linux software repository mirror.
### Supported Architectures
x86_64, aarch64
### Included Versions
8, 9
---
### Usage Instructions
For Rocky Linux 8, use the following commands to replace the default configuration:
```shell
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.jcut.edu.cn/rocky|g' \
-i.bak \
/etc/yum.repos.d/Rocky-AppStream.repo \
/etc/yum.repos.d/Rocky-BaseOS.repo \
/etc/yum.repos.d/Rocky-Extras.repo \
/etc/yum.repos.d/Rocky-PowerTools.repo
```
For Rocky Linux 9, use the following commands to replace the default configuration:
```shell
sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.jcut.edu.cn/rocky|g' \
-i.bak \
/etc/yum.repos.d/rocky-extras.repo \
/etc/yum.repos.d/rocky.repo
```
The above commands only replace the default enabled repositories. After replacing, please run `dnf makecache` to update the cache.
> This document was written with reference to http://mirrors.ustc.edu.cn/help/rocky.html.

77
docs/en/ubuntu.mdx Normal file
View File

@@ -0,0 +1,77 @@
---
mirrorId: ubuntu
---
import ConfigGenerator from '../../src/components/config-generator'
export const ubuntuVersionMap = {
"24.04 LTS": "noble",
"23.04": "lunar",
"22.10": "kinetic",
"22.04 LTS": "jammy",
"20.04 LTS": "focal",
"18.04 LTS": "bionic",
"16.04 LTS": "xenial",
"14.04 LTS": "trusty",
}
export const GenUbuntuConfig = (version) => {
var ubuntuName = ubuntuVersionMap[version]
return `# The source image has been commented out by default to improve the speed of apt update. You can uncomment it if necessary.
deb https://mirrors.jcut.edu.cn/ubuntu/ ${ubuntuName} main restricted universe multiverse
# deb-src https://mirrors.jcut.edu.cn/ubuntu/ ${ubuntuName} main restricted universe multiverse
deb https://mirrors.jcut.edu.cn/ubuntu/ ${ubuntuName}-updates main restricted universe multiverse
# deb-src https://mirrors.jcut.edu.cn/ubuntu/ ${ubuntuName}-updates main restricted universe multiverse
deb https://mirrors.jcut.edu.cn/ubuntu/ ${ubuntuName}-backports main restricted universe multiverse
# deb-src https://mirrors.jcut.edu.cn/ubuntu/ ${ubuntuName}-backports main restricted universe multiverse
deb https://mirrors.jcut.edu.cn/ubuntu/ ${ubuntuName}-security main restricted universe multiverse
# deb-src https://mirrors.jcut.edu.cn/ubuntu/ ${ubuntuName}-security main restricted universe multiverse\n
# Pre-release software sources are not recommended for enabling
# deb https://mirrors.jcut.edu.cn/ubuntu/ ${ubuntuName}-proposed main restricted universe multiverse
# deb-src https://mirrors.jcut.edu.cn/ubuntu/ ${ubuntuName}-proposed main restricted universe multiverse`
}
export const defaultVersion = Object.keys(ubuntuVersionMap).find(x => x.indexOf("LTS") > 0);
## Ubuntu Source Use Help
### Address
[https://mirrors.jcut.edu.cn/ubuntu/](https://mirrors.jcut.edu.cn/ubuntu/)
### Description
*Ubuntu* software sources
### Included Architectures
amd64(X86_64), i386
### Included Versions
All currently supported versions of *Ubuntu*, including development versions, are listed at [https://wiki.ubuntu.com/Releases](https://wiki.ubuntu.com/Releases)
---
### How to Use
#### Method 1
Under general conditions, replace the default *Ubuntu* source address `http://archive.ubuntu.com/` in the `/etc/apt/sources.list` file with `http://mirrors.jcut.edu.cn/`.
You can use the following command:
```shell
sudo sed -i 's@//.*archive.ubuntu.com@//mirrors.jcut.edu.cn@g' /etc/apt/sources.list
```
Starting from *Ubuntu 24.04 LTS*, the DEB822 format is used instead of the traditional One-Line-Style format mentioned above. The corresponding file that needs to be modified is `/etc/apt/sources.list.d/ubuntu.sources`. Similarly, you can use the following command:
```shell
sudo sed -i 's/archive.ubuntu.com/mirrors.jcut.edu.cn/g' /etc/apt/sources.list.d/ubuntu.sources
```
#### Method 2
Directly edit `/etc/apt/sources.list` (using `sudo`).
<ConfigGenerator promptString="Please select your Ubuntu version:" versionList={Object.keys(ubuntuVersionMap)} defaultVersion={defaultVersion} configGen={GenUbuntuConfig} language="bash" />