赞
踩
后续补充: 一定要注意镜像源版本的问题!
有的文章提供的镜像源的版本是focal,你的系统版本可能不一样,是jammy, 直接复制别人的镜像源,版本对不上就会一直报错。
可通过 lsb_release -a 查看版本,看codename就可以知道自己的镜像源版本。
首先确保网络连接了,之后参考了这篇博客,就解决了
保存后退出即可!
后续又报错了,软件包有未满足的依赖关系,查资料发现还是这个文件的问题
在终端输入
lsb_release -a
查询得知自己的codename为jammy,需要添加jammy的下载源
打开文件
sudo gedit /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 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://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
重新输入
sudo apt-get update
sudo apt-get upgrade
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。