最新ubuntu22.04 下列软件包有未满足的依赖关系 解决方案

参考:https://blog.csdn.net/lishuaigell/article/details/124740342

出现这个错误的原因:多半是镜像源跟你的ubuntu系统版本不匹配导致的。

首先使用下列指令查看自己的系统的版本号:

复制代码
lsb_release -a

发现自己的是:

即Codename为jammy。

接下来:

(1)编辑sources.list这个文件:

复制代码
sudo gedit /etc/apt/sources.list

(2)将里面原先的注释掉,然后换成下面的阿里源:

复制代码
#阿里源
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-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports 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
相关推荐
Haven-10 小时前
Linux常见命令
linux·基本指令
IT 小阿姨(数据库)10 小时前
PgSQL中pg_stat_user_tables 和 pg_stat_user_objects参数详解
linux·运维·数据库·sql·postgresql·oracle
❀͜͡傀儡师10 小时前
Docker部署搜索引擎SearXNG
运维·docker·容器·searxng
MChine慕青10 小时前
顺序表与单链表:核心原理与实战应用
linux·c语言·开发语言·数据结构·c++·算法·链表
虎头金猫10 小时前
如何在Linux上使用Docker在本地部署开源PDF工具Stirling PDF:StirlingPDF+cpolar让专业操作像在线文档一样简单
linux·运维·ubuntu·docker·pdf·开源·centos
荣光波比11 小时前
Nginx 实战系列(七)—— Nginx一键安装脚本详解
运维·nginx·自动化·云计算
努力学习的小廉11 小时前
深入了解linux系统—— 线程同步
linux·服务器·数据库·算法
sinat_6020353612 小时前
模块与包的导入
运维·服务器·开发语言·python
鲸屿19512 小时前
Ansible之playbook
服务器·网络·ansible
2301_8101545512 小时前
VM中CentOS 7密码重置
linux·运维·centos