侧边栏壁纸
  • 累计撰写 9 篇文章
  • 累计创建 7 个标签
  • 累计收到 0 条评论
标签搜索

目 录CONTENT

文章目录

【原】Ubuntu18.10使用oneinstack安装Nginx问题记录

空空
2022-10-28 / 0 评论 / 0 点赞 / 3,351 阅读 / 314 字

问题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
0

评论区