Ubuntu 24.04 配置镜像源

配置文件位置

版本代号命令
Ubuntu 24.04Noblevim /etc/apt/sources.list.d/ubuntu.sources
Ubuntu 22.04Jammyvim /etc/apt/sources.list

Ubuntu 22.04 Jammy 配置

  • vim /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse

deb http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse

deb https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

deb http://cn.archive.ubuntu.com/ubuntu jammy main restricted
deb http://cn.archive.ubuntu.com/ubuntu jammy-updates main restricted
deb http://cn.archive.ubuntu.com/ubuntu jammy universe
deb http://cn.archive.ubuntu.com/ubuntu jammy-updates universe
deb http://cn.archive.ubuntu.com/ubuntu jammy-updates multiverse
deb http://cn.archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu jammy-security main restricted
deb http://cn.archive.ubuntu.com/ubuntu jammy-security universe
deb http://cn.archive.ubuntu.com/ubuntu jammy-security multiverse

Ubuntu 24.04 Noble 配置

  • vim /etc/apt/sources.list.d/ubuntu.sources
Types: deb deb-src
URIs: https://mirrors.aliyun.com/ubuntu/
Suites: noble noble-updates noble-backports noble-security noble-proposed
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb deb-src
URIs: https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
Suites: noble noble-updates noble-backports noble-security noble-proposed
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb deb-src
URIs: http://mirrors.163.com/ubuntu/
Suites: noble noble-updates noble-backports noble-security noble-proposed
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb deb-src
URIs: https://mirrors.ustc.edu.cn/ubuntu/
Suites: noble noble-updates noble-backports noble-security noble-proposed
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://cn.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

配置项

Type

  • deb:指定存储库的格式
配置项备注
deb预编译并准备安装的二进制包
deb-src需编译的源码包

URI

  • http://cn.archive.ubuntu.com/ubuntu/
  • 指定apt系统将从中获取包的位置
配置项备注
cn.*指向Ubuntu包归档的中国镜像
security.*专门用于安全更新

Suite

  • 指与Ubuntu发布周期的不同版本或Stage对齐的特定软件包集
配置项备注
noble初始版本包
noble-updates更新包
noble-backports向后移植backport
noble-security安全漏洞

Component

  • 存储库中按支持状态或许可组织包的类别
配置项备注
main拥有Ubuntu支持的免费和开源软件
restricted包含Ubuntu支持的专有驱动程序和软件
universe包括community-maintained免费和开源软件
multiverse软件可能非免费或非开源,且不受Ubuntu官方团队支持

Sign By

  • /usr/share/keyrings/ubuntu-archive-keyring.gpg
  • 指向包含用于验证软件包真实性的公钥的密钥环文件,官方的Ubuntu存档签名密钥
要在Ubuntu上安装向日葵,你可以按照以下步骤进行操作: 1. 首先,你需要前往向日葵官网下载向日葵的安装包。你可以在https://sunlogin.oray.com/download/ 找到向日葵的下载链接。将下载的文件放在home目录下,以便进行后续的操作。 2. 在终端中输入以下命令安装向日葵。请注意,-i 后面的是下载的安装包名,请将命令中的“SunloginClient-11.01.44968_amd64.deb”替换为你下载的安装包的文件名: ``` sudo dpkg -i SunloginClient-11.01.44968_amd64.deb ``` 3. 第三步,你可能需要卸载Ubuntu自带的显卡驱动。如果遇到向日葵无法远程连接的问题,你可以尝试以下解决方法。在终端中输入以下命令,将“sunloginclient-11.0.0.36662-amd64.deb”替换为你下载的安装包的文件名: ``` sudo dpkg -i sunloginclient-11.0.0.36662-amd64.deb ``` 4. 最后,如果你使用的是Ubuntu 20.04,需要注意默认安装的是gdm桌面管理器。然而,当你尝试远程控制Ubuntu时,可能会在登录远程界面卡住。为了解决这个问题,你可以切换到LightDM桌面管理器。在终端中输入以下命令安装LightDM: ``` sudo apt install lightdm ``` 以上就是在Ubuntu上安装向日葵的步骤。希望对你有帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Ubuntu24.04下向日葵,CUDA,cuDNN的详细安装,亲测有效](https://blog.csdn.net/weixin_52326559/article/details/126359130)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [ubuntu安装向日葵](https://blog.csdn.net/qq_41428418/article/details/118737121)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值