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

今天突发奇想想安装下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一下。

再进行下载,就成了。


版权声明:本文为derrickAA原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。