GB28181 Ubuntu编译部署

https://doc.wvp-pro.cn/#/_content/introduction/compile

https://cloud.tencent.com/developer/article/2358517

 

在Ubuntu系统中,您可以通过以下步骤使用阿里云(Alibaba Cloud)的镜像源:

打开终端。

输入以下命令备份当前的sources.list文件:

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

编辑sources.list文件:

sudo nano /etc/apt/sources.list

将文件中的内容替换为阿里云的Ubuntu镜像源。以下是Ubuntu 20.04的示例(如果您使用的是其他版本,请确保选择对应版本的源):

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

保存并关闭文件。如果您使用的是nano编辑器,可以按Ctrl + O保存,然后按Ctrl + X退出。

更新软件包列表:

sudo apt update

升级所有安装的包:

sudo apt upgrade

posted @ 2024-06-24 14:07  谁主沉浮1226  阅读(17)  评论(0编辑  收藏  举报