【问题解决】apt install出现依赖冲突问题,换最新阿里源

问题描述

在ubuntu20.04上安装32位依赖库的时候出现了一堆依赖冲突报错问题

解决方案

阿里的最新源
备份原来的source.list

cd /etc/apt
sudo cp source.list source.list.copy
sudo gedit source.list

替换为下面的内容

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

sudo apt-get update

重新安装后,以来问题解决。

猜你喜欢

转载自blog.csdn.net/peterwanye/article/details/129770150