首页 > 系统相关 >ubuntu22.04改成国内阿里云源。

ubuntu22.04改成国内阿里云源。

时间:2024-04-21 22:56:20浏览次数:21  
标签:云源 aliyun mirrors restricted ubuntu22.04 https ubuntu 改成 main

先执行:    sb_release -a命令。
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.4 LTS
Release: 22.04
Codename: jammy
gogosai@gogosai-MINI-1900A:~$

看看内核版本(Codename),如果是focal(旧内核版本)

 

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

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

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

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

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

 

看看内核版本(Codename),如果是 jammy(新内核版本)

deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse

# deb https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
# deb-src https://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse

标签:云源,aliyun,mirrors,restricted,ubuntu22.04,https,ubuntu,改成,main
From: https://www.cnblogs.com/gogosai/p/18149684

相关文章

  • Ubuntu22.04版本安装对应版本ROS教程 (小白2024年)
    参考资料:(我是开了加速器,毕竟中间使用了github访问网址,国内免费加速器Steam++,开个github网站加速即可,不开我不知道行不行可以自己一试)ubuntu22.04安装ROS2详细教程-CSDN博客ROS安装详细教程——Ubuntu22.0.4LTS安装-CSDN博客我的虚拟机刚开始设置的是简体中文,此前已经通过......
  • Ubuntu22.04 安装搜狗拼音输入法
    在搜狗拼音输入法官网下载输入法Linux版本文件,是一个deb文件,我下载后放在家目录的下载目录下:sogoupinyin_4.2.1.145_amd64.deb更新源。在终端执行sudoaptupdate安装fcitx输入法框架执行命令sudoaptinstallfcitx设置fcitx为系统输入法:点击左下角的按钮,打开"语言支持",......
  • Ubuntu22.04安装MySQL8
    Ubuntu22.04安装MySQL8第一部分:安装mysql使用apt安装sudoaptupdatesudoaptinstall-ymysql-server安装完成之后自动结束,不需要输入密码。更新用户密码这里默认安装的是mysql8.0版本,因为i没有输入密码;所以无法使用mysql-uroot-p进入mysql,需要执行这个命令(一定要......
  • Ubuntu22.04安装PostgreSQL15
    Ubuntu22.04安装PostgreSQL15启用PostgreSQL包存储库sudosh-c'echo"debhttp://apt.postgresql.org/pub/repos/apt$(lsb_release-cs)-pgdgmain">/etc/apt/sources.list.d/pgdg.list'wget-qO-https://www.postgresql.org/media/keys/ACCC4CF8......
  • Ubuntu22.04安装谷歌浏览器
    参考文档:https://blog.csdn.net/howard2005/article/details/124906494简要概括下:下载Chrome安装包:wgethttps://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb执行命令:sudodpkg-igoogle-chrome-stable_current_amd64.deb执行命令:sudoapt-get......
  • 解决.Net6 部署到ubuntu22.04中使用DotNetCore.NPOI 导出报 Could not open display (
    在Ubuntu22环境下,出现"Couldnotopendisplay(X-Serverrequired.CheckyourDISPLAYenvironmentvariable)"错误可能是由于缺少X服务器或未正确配置DISPLAY环境变量导致的。以下是你可以尝试的解决方法:检查DISPLAY环境变量:确保DISPLAY环境变量已正确设置。使......
  • 在ubuntu22.04中使用阿里云镜像站安装docker(官方安装太慢)
    在Ubuntu22.04上安装docker,略有不同。安装一些依赖。sudoaptupdatesudoaptinstallapt-transport-httpsca-certificatescurlgnupglsb-releaseBash在国内的网络环境下,如果使用官方的源来安装docker,下载安装包的过程就非常慢,所以这里使用阿里云源安装添加阿......
  • Ubuntu22.04安装vmtools失败总结
    Ubuntu22.04安装vmtools失败总结问题按照网上安装vmtools方法,点击VMwareWorkstation菜单栏虚拟机重新安装VMtools后再运行下列代码sudo./vmware-install.pl会失败。无法与Windows进行联动。解决方案sudoapt-getupdatesudoapt-getinstallopen-vm-tools-......
  • 记一下-ubuntu22.04安装QQ音乐
    最近用安装了桌面的ubuntu-server22.04,感觉很好用,然后突发奇想,看下装个音乐播放器但是找来找去,发现现在好多已经不开发Debian系的版本了,也就qq音乐还有就尝试安装了下,发现虽然可以安装,但是无法正常打开,打开了就闪退下面就介绍下不闪退的安装步骤下载包到qq音乐的官网下载htt......
  • Ubuntu22.04修改默认窗口系统为X11
    Ubuntu22.04安装默认窗口系统为Wayland(通过设置->关于可以看到)。一、用UbuntuonXorg会话登录用户登录时,点“未列出”,输入用户名后,在登录界面底部的齿轮图标中,选择"UbuntuonXorg"作为会话类型登录,系统将为当前会话使用Xorg。如果每次手动选择Xorg登录,系统应该记住选......