标签: dependencies

添加 PPA 后如何解决未满足的依赖项?

有时,当我安装东西时,我会收到如下错误:

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:
 package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个问题?

package-management apt ppa dependencies software-installation

617
推荐指数
10
解决办法
119万
查看次数

如何列出依赖包(反向依赖)?

为了研究导致安装给定软件包的原因,我想获取依赖于该软件包的软件包列表。我在man dpkg.

package-management command-line dependencies

278
推荐指数
6
解决办法
25万
查看次数

我能看到为什么安装了一个包吗?

对于特定的包,我可以找出安装它的原因吗?

那么,我可以看到它是手动安装的,还是作为另一个包的依赖项安装的?或者它是作为发行版的一部分安装的?

apt dependencies software-installation

146
推荐指数
4
解决办法
3万
查看次数

从 .deb 安装软件时如何自动获取缺少的依赖项?

我正在尝试在我的 Ubuntu 机器 (11.04) 上安装MySQL Workbench。该网站有一个 Ubuntu .deb 可供下载(适用于 10.10 和 10.04,所以我选择了 10.10)。

然而,

sudo dpkg -i mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb
Run Code Online (Sandbox Code Playgroud)

产量:

(Reading database ... 194069 files and directories currently installed.)
Preparing to replace mysql-workbench-gpl 5.2.34-1ubu1010 (using mysql-workbench-gpl-5.2.34-1ubu1010-amd64.deb) ...
Unpacking replacement mysql-workbench-gpl ...
dpkg: dependency problems prevent configuration of mysql-workbench-gpl:
 mysql-workbench-gpl depends on libctemplate0; however:
  Package libctemplate0 is not installed.
 mysql-workbench-gpl depends on libpython2.6 (>= 2.6); however:
  Package libpython2.6 is not installed.
 mysql-workbench-gpl depends on libzip1 (>= 0.8); however:
  Package libzip1 …
Run Code Online (Sandbox Code Playgroud)

dpkg dependencies deb software-installation

110
推荐指数
6
解决办法
32万
查看次数

npm : 取决于: node-gyp (>= 0.10.9) 但它不会被安装

我想安装 npm。我已经更新了所有内容,但无法解决问题。

我得到的消息是:

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:
 npm : Depends: node-gyp (>= 0.10.9) but it is not going to …
Run Code Online (Sandbox Code Playgroud)

package-management apt dependencies npm software-installation

104
推荐指数
1
解决办法
7万
查看次数

MongoDB 在 Ubuntu 22.04 上安装失败 - 依赖于 libssl1.1 但无法安装

以下是网站上的标准安装说明:

wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
Run Code Online (Sandbox Code Playgroud)
sudo apt install -y mongodb-org
Reading package lists... Done
Building dependency tree... Done
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 …
Run Code Online (Sandbox Code Playgroud)

package-management apt dependencies 22.04

93
推荐指数
5
解决办法
25万
查看次数

如何在不安装某些依赖项的情况下安装软件包?

我正在尝试安装包 LaTeXila,输出如下所示:

$ sudo apt-get install latexila --no-install-recommends
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  latexila-data latexmk luatex tex-common texlive-base texlive-binaries
  texlive-common texlive-doc-base texlive-latex-base
Suggested packages:
  rubber texlive-latex-extra debhelper
Recommended packages:
  texlive texlive-latex-recommended texlive-luatex lmodern
  texlive-latex-base-doc
The following NEW packages will be installed:
  latexila latexila-data latexmk luatex tex-common texlive-base
  texlive-binaries texlive-common texlive-doc-base texlive-latex-base
0 upgraded, 10 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.3 …
Run Code Online (Sandbox Code Playgroud)

apt dependencies

87
推荐指数
4
解决办法
13万
查看次数

如何安装 ncurses 头文件?

我试图配置内核,但出现以下错误。有人可以告诉我我该怎么做吗?

root@nitr-desktop:/usr/src/linux# make menuconfig
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
Run Code Online (Sandbox Code Playgroud)

dependencies ncurses

69
推荐指数
3
解决办法
24万
查看次数

在 Ubuntu 12.04 LTS 上安装 gcc

当我尝试在 Ubuntu 12.04 LTS 服务器上安装 gcc 时apt-get install gcc,出现以下错误:

The following packages have unmet dependencies:
 gcc : Depends: cpp (>= 4:4.6.1-2ubuntu5) but it is not going to be installed
       Depends: gcc-4.6 (>= 4.6.1-1) but it is not going to be installed
       Recommends: libc6-dev but it is not going to be installed or
                   libc-dev
Run Code Online (Sandbox Code Playgroud)

当我深入研究(即尝试apt-get install gcc-4.6)时,我得到:

 gcc-4.6 : Depends: gcc-4.6-base (= 4.6.1-9ubuntu3) but 4.6.3-1ubuntu5 is to be installed
           Depends: cpp-4.6 (= 4.6.1-9ubuntu3) but it is not …
Run Code Online (Sandbox Code Playgroud)

package-management apt dependencies gcc

58
推荐指数
1
解决办法
36万
查看次数

14.04 --> 16.04 失败;apt (>= 1.0.1ubuntu2.13)' 未安装

(此问题未解决。由于时间限制,计算机已恢复到出厂设置。)

我试图从 14.04 升级到 16.04,但apt抛出了这个错误:

The required dependency 'apt (>= 1.0.1ubuntu2.13)' is not installed.
Run Code Online (Sandbox Code Playgroud)

这是什么意思,我该如何解决?

当我输入命令 apt-cache policy apt

Shageenth@shageenth-Inspiron-3451:~$ apt-cache policy apt apt:
Installed: 1.0.1ubuntu2.11
Candidate: 1.0.1ubuntu2.11
Version table:
*** 1.0.1ubuntu2.11 0
100 /var/lib/dpkg/status
1.0.1ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 
Packages
Run Code Online (Sandbox Code Playgroud)

当我运行命令时发生错误:

sudo do-release-upgrade -d
Run Code Online (Sandbox Code Playgroud)

它产生以下内容:

Checking for a new Ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1,265 kB]
Fetched 1,265 kB in 0s (0 B/s)
authenticate 'xenial.tar.gz' against 'xenial.tar.gz.gpg'
extracting 'xenial.tar.gz'

Reading …
Run Code Online (Sandbox Code Playgroud)

updates dependencies 14.04 16.04

58
推荐指数
2
解决办法
9万
查看次数