解决 Unable to correct problems, you have held broken packages

发布于:2023-01-01 ⋅ 阅读:(242) ⋅ 点赞:(0)

今天突发奇想想安装下zabbix玩玩,结果就拿自己的虚拟机做实验,没成想一开始就遇到了问题

试过了很多网上的办法都不好使,真的是头都大了,后来经过反复的琢磨,觉得还是源的问题,由于网上推荐的源都太老了,不如直接去官方站点拿,这是我在阿里云拿过来的源

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

我用的Ubuntu系统是20.04的,因此我就拿的20.04的源,放到/etc/apt/sources.list中然后apt update一下。

再进行下载,就成了。


网站公告

今日签到

点亮在社区的每一天
去签到