标签: dependencies

有没有办法测试我为正确的依赖关系构建的包?

我对包装完全陌生,所以如果我向有经验的包装工提出一些显而易见的问题,请原谅我......

我如何确保在我的包中正确提到了所有依赖项?

假设我的应用程序使用library-xyz了默认未安装的 lib 。如果我构建包并将其安装在我的开发机器上,library-xyz它将已经安装,因此 - 即使我没有将其作为依赖项提及 - 程序仍将正确运行。但是新安装 ubuntu 的另一个用户不会library-xyz安装,程序可能会崩溃。

我现在正在测试的方法是具有新鲜的Ubuntu安装在虚拟机上运行和安装包有,但因为它似乎是一个常见的问题,我不知道是否有测试一种更好的方式,一些采用的同样的理念chroot,但该- 而不是“切除”文件系统的部分将“切除”所有那些在干净的ubuntu安装中不是“默认”的已安装包。

我正在打包 python 程序。

python packaging dependencies

6
推荐指数
1
解决办法
459
查看次数

apt-get 不安装依赖项

当我尝试安装 gnutls 库 ( libgnutls26) 和通用 linux 内核头文件 ( linux-headers-generic) 时,出现以下错误:

The following packages have unmet dependencies:

libgnutls26: Depends: libc6 (>= 2.14) but 2.15-0ubuntu10.4 is installed
             Depends: zlib1g (>= 1:1.1.4) but 1:1.2.3.4.dfsg-3ubuntu4 is installed
libgnutls26:i386: Depends: zlib1g (>= 1:1.1.4) but 1:1.2.3.4.dfsg-3ubuntu4 is installed
linux-headers-generic: Depends: linux-headers-3.2.0-41-generic but it is not installed
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个错误?

dependencies

6
推荐指数
2
解决办法
5万
查看次数

安装虚拟依赖的正确方法

我正在创建.deb我们基于 Java 的应用程序的包(请参阅此超级用户问题)。我现在使用以下依赖信息:

Depends: java-runtime-headless (>= 1.6)
Recommends: openjdk-7-jre-headless, ...
Run Code Online (Sandbox Code Playgroud)

现在我正在尝试安装它:

$ sudo dpkg -i MYAPP.deb 
Selecting previously unselected package MYAPP.
(Reading database ... 140874 files and directories currently installed.)
Unpacking MYAPP (from MYAPP.deb) ...
dpkg: dependency problems prevent configuration of MYAPP:
 MYAPP depends on java-runtime-headless (>= 1.6); however:
  Package java-runtime-headless is not installed.
dpkg: error processing MYAPP (--install):
 dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index... …
Run Code Online (Sandbox Code Playgroud)

package-management apt dependencies

6
推荐指数
1
解决办法
2万
查看次数

为什么 apt-get 可以轻松安装 Skype 而 aptitude 会抱怨主要依赖项错误?

我试图从 Canonical 存储库在 Ubuntu 13.04 上安装 Skype。随着apt-get它的工作很容易,而aptitude曾与依赖一个巨大的问题,并提出了一个复杂的解决方案。为什么会这样?为什么不aptitude提供任何apt-get可能的解决方案?这是两者的输出:

apt-get 安装Skype:

Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  gcc-4.7-base:i386 libasound2 libasound2:i386 libasound2-plugins:i386
  libasyncns0:i386 libaudio2:i386 libavahi-client3:i386
  libavahi-common-data:i386 libavahi-common3:i386 libc6:i386 libcomerr2:i386
  libcups2:i386 libdbus-1-3 libdbus-1-3:i386 libdbusmenu-qt2:i386
  libdrm-intel1 libdrm-intel1:i386 libdrm-nouveau2 libdrm-nouveau2:i386
  libdrm-radeon1 libdrm-radeon1:i386 libdrm2 libdrm2:i386 libexpat1:i386
  libffi6:i386 libflac8:i386 libfontconfig1:i386 libfreetype6:i386
  libgcc1:i386 libgcrypt11 libgcrypt11:i386 libgl1-mesa-dri
  libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libglapi-mesa:i386
  libglib2.0-0:i386 libgnutls26 libgnutls26:i386 libgpg-error0:i386
  libgssapi-krb5-2:i386 libgstreamer-plugins-base0.10-0:i386
  libgstreamer0.10-0:i386 libice6:i386 libjack-jackd2-0:i386 libjbig0:i386
  libjpeg-turbo8:i386 libjpeg8:i386 …
Run Code Online (Sandbox Code Playgroud)

aptitude apt dependencies skype software-installation

6
推荐指数
2
解决办法
938
查看次数

Ubuntu 修复依赖问题

我有依赖性问题,每当我执行apt-get install,我都会收到此错误消息:

http://pastebin.com/dFnAgyK1

我已经尝试过:

  • apt-get clean, update, upgrade,install -f
  • dpkg --configure -a

我现在该怎么办?

apt dependencies

6
推荐指数
1
解决办法
9万
查看次数

lib32asound : 依赖不能满足

我使用的是 Ubuntu 13.10,尝试安装时出现此错误teamviewer,错误是

Dependency is not satisfiable lib32asound2
Run Code Online (Sandbox Code Playgroud)

我已经累了,sudo apt-get install libasound2:i386但不行。

dependencies

6
推荐指数
2
解决办法
4万
查看次数

提升未满足的依赖项

我听说在 Ubuntu 上安装库很容易,所以我切换到 Ubuntu,我尝试安装 boost 所以我写道:

sudo apt-get install libboost-all-dev
Run Code Online (Sandbox Code Playgroud)

我明白了:

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:  libboost-all-dev :
Depends: libboost-python-dev …
Run Code Online (Sandbox Code Playgroud)

package-management dependencies software-installation

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

在 Ubuntu 13.04 中,无法安装 libssl-dev

安装时如何解决依赖问题libssl-dev

问题:

$ sudo apt-get install libssl-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:
 libssl-dev : Depends: libssl1.0.0 (= 1.0.1c-4ubuntu8) …
Run Code Online (Sandbox Code Playgroud)

apt dependencies 13.04 software-installation

6
推荐指数
1
解决办法
5万
查看次数

什么是 sudo apt-get -f install?

的用法是什么apt-get -f install。当我运行sudo apt-get update时,最后出现了一些错误它说 try apt-get -f install。这是什么命令?我的错误的最后一部分是:

. . .  
going to be installed  
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)

package-management apt dependencies software-installation

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

有没有办法检查 Ubuntu 安装运行状况?

我是一个在继续研究他的系统之前想要确定的人。因此,我想知道我的 Ubuntu 安装是否处于良好状态。我想知道的一些事情:

  • 如果缺少必要的包。
  • 所有包裹都很健康。
  • 系统中没有丢失的文件。
  • 没有破损的包裹
  • 等等...

长话短说,有没有一种方法可以检查我的安装是否健康,是否处于良好状态。

如果这很重要,我目前正在使用 14.04。

谢谢。

package-management dependencies system

6
推荐指数
1
解决办法
2820
查看次数