如何将Ubuntu 22.04的yum源更新至最新版本?
- 内容介绍
- 文章标签
- 相关推荐
本文共计280个文字,预计阅读时间需要2分钟。
系统安装完成,无法安装软件+官网预写的源访问不通+解决方法+改为国内源+root@jupyter:/etc/apt
系统安装完成,无法安装软件
官网预写的源访问不通archive.ubuntu.com/ubuntu
解决办法
更改为国内源
root@jupyter:/etc/apt# find / -name sources.list/etc/apt/sources.list
cp /etc/apt/sources.list /etc/apt/sources.list.bak
vi /etc/apt/sources.list
# 清空内容,写入下方代码块deb mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
验证
apt-get udpate或
apt-get install 软件名
本文共计280个文字,预计阅读时间需要2分钟。
系统安装完成,无法安装软件+官网预写的源访问不通+解决方法+改为国内源+root@jupyter:/etc/apt
系统安装完成,无法安装软件
官网预写的源访问不通archive.ubuntu.com/ubuntu
解决办法
更改为国内源
root@jupyter:/etc/apt# find / -name sources.list/etc/apt/sources.list
cp /etc/apt/sources.list /etc/apt/sources.list.bak
vi /etc/apt/sources.list
# 清空内容,写入下方代码块deb mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
验证
apt-get udpate或
apt-get install 软件名

