当前位置 : 主页 > 编程语言 > python >

ubuntu22.04更新yum源

来源:互联网 收集:自由互联 发布时间:2022-10-14
系统安装完成,无法安装软件 官网预写的源访问不通​​http://archive.ubuntu.com/ubuntu​​ 解决办法 更改为国内源 root@jupyter:/etc/apt# find / -name sources.list /etc/apt/sources.list cp /etc/apt/sources.li

系统安装完成,无法安装软件

官网预写的源访问不通​​http://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 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-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed 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

验证

apt-get udpate

apt-get install 软件名
上一篇:Python 语法之字典
下一篇:没有了
网友评论