记载一个ubuntu换源的错误

下午在docker中安装ubuntu,因为apt update慢,就换了国内的阿里源。但是之后就出了问题,依赖被忽略安装。

具体错误如下:

The following packages have unmet dependencies:
 python-software-properties : Depends: lsb-release but it is not going to be installed
                              Depends: unattended-upgrades but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

最后发现是源的版本不对,docker中的ubutu版本是18.04(codename是Bionic),而我使用了ubuntu trusty的源。

参考:
Ubuntu18.04更换国内源(https://blog.csdn.net/Dolphinsz/article/details/81217424)

你可能感兴趣的:(软件安装)