Back

OpenMediaVault软件源修改

OpenMediaVault 国内软件源镜像服务器

  • 清华大学镜像
https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/
  • 北京外国语大学镜像
https://mirrors.bfsu.edu.cn/OpenMediaVault/

OMV 5

一、编辑 sources.list

1. 备份配置文件

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2. 清空配置文件

sudo sh -c 'echo > /etc/apt/sources.list'

3. 编辑配置文件

sudo nano /etc/apt/sources.list

复制并粘贴以下内容:

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free

二、编辑 openmediavault-kernel-backports.list

1. 备份配置文件

sudo cp /etc/apt/sources.list.d/openmediavault-kernel-backports.list /etc/apt/sources.list.d/openmediavault-kernel-backports.list.bak

2. 清空配置文件

sudo sh -c 'echo > /etc/apt/sources.list.d/openmediavault-kernel-backports.list'

3. 编辑配置文件

sudo nano /etc/apt/sources.list.d/openmediavault-kernel-backports.list

复制并粘贴以下内容:

deb https://mirrors.tuna.tsinghua.edu.cn/debian buster-backports main contrib non-free

三、编辑 openmediavault.list

1. 备份配置文件

sudo cp /etc/apt/sources.list.d/openmediavault.list /etc/apt/sources.list.d/openmediavault.list.bak

2. 清空配置文件

sudo sh -c 'echo > /etc/apt/sources.list.d/openmediavault.list'

3. 编辑配置文件

sudo nano /etc/apt/sources.list.d/openmediavault.list

复制并粘贴以下内容:

deb https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/public/ usul main

四、编辑 omvextras.list

1. 备份配置文件

sudo cp /etc/apt/sources.list.d/omvextras.list /etc/apt/sources.list.d/omvextras.list.bak

2. 清空配置文件

sudo sh -c 'echo > /etc/apt/sources.list.d/omvextras.list'

3. 编辑配置文件

sudo nano /etc/apt/sources.list.d/omvextras.list

复制并粘贴以下内容:

deb https://mirrors.tuna.tsinghua.edu.cn/OpenMediaVault/openmediavault-plugin-developers usul main
deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian buster stable
deb http://linux.teamviewer.com/deb stable main

五. 刷新软件源

sudo apt update
Licensed under CC BY-NC-SA 4.0