问题1:libc6-dev : Depends: libc6 (= 2.27-3ubuntu1.6) but 2.28-0ubuntu1 is installed
问题原因:apt源与ubuntu系统的发行版本不一致导致
解决方案:
- 查询ubuntu版本信息
lsb_release -a
- 修改sources.list文件
sudo vim /etc/apt/sources.list
修改为对应版本的国内源(以18.10为例)
##中科大源
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ cosmic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ cosmic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ cosmic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ cosmic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ cosmic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ cosmic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ cosmic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ cosmic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ cosmic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu-old-releases/ubuntu/ cosmic-proposed main restricted universe multiverse
执行更新
sudo apt-get update
- 问题2:zlib1g-dev : Depends: zlib1g (= 1:1.2.11.dfsg-0ubuntu2) but 1:1.2.11.dfsg-0ubuntu2.2 is to be installed
问题原因:zlib1g版本过高
解决方案:将zlib1g降级
apt-get install zlib1g=1:1.2.11.dfsg-0ubuntu2
评论区