gpt4 book ai didi

node.js - Ubuntu,无法安装 zlib1g-dev

转载 作者:行者123 更新时间:2023-12-04 19:12:58 26 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 中安装 nodejs,在检查了所有缺少的依赖项后,我在安装 zlib1g-dev 时遇到了一个问题,zlib1g 已经位于 1:1.2.8.dfsg-2ubuntu4.1 :

[pp@src]$ sudo apt-get install zlib1g-dev

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
zlib1g-dev : **Depends: zlib1g (= 1:1.2.8.dfsg-2ubuntu4) but 1:1.2.8.dfsg-2ubuntu4.1 is to be installed**
E: Unable to correct problems, you have held broken packages.


[pp@src]$ sudo apt-get install zlib1g

Reading package lists... Done
Building dependency tree
Reading state information... Done
**zlib1g is already the newest version (1:1.2.8.dfsg-2ubuntu4.1)**.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

最佳答案

我能够通过以下方式进行安装:

sudo apt-get update && sudo sudo apt-get install zlib1g-dev

使用以下内容更新/etc/apt/sources.list 后:

#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#


###### Ubuntu Main Repos
deb http:// us.archive .ubuntu. com/ubuntu/ xenial main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial main restricted universe multiverse

###### Ubuntu Update Repos
deb http:// us.archive .ubuntu. com/ubuntu/ xenial-security main restricted universe multiverse
deb http://us.archive .ubuntu. com/ubuntu/ xenial-updates main restricted universe multiverse
deb http:// us.archive .ubuntu. com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http:// us.archive .ubuntu. com/ubuntu/ xenial-proposed main restricted universe multiverse

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner

关于node.js - Ubuntu,无法安装 zlib1g-dev,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48243970/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com