相关疑难解决方法(0)

添加 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万
查看次数

如何从命令行安装最新版本的 cmake?

我正在尝试cmake在我的 linux 盒子中安装最新版本,但我总是遇到以下异常 -

userName@phx5qa01c-4e23:~/build$ wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
--2013-10-08 14:39:55--  http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
Resolving www.cmake.org... 66.194.253.19
Connecting to www.cmake.org|66.194.253.19|:80... failed: Connection timed out.
Retrying.

--2013-10-08 14:40:17--  (try: 2)  http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
Connecting to www.cmake.org|66.194.253.19|:80... failed: Connection timed out.
Retrying.

--2013-10-08 14:40:40--  (try: 3)  http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz
Connecting to www.cmake.org|66.194.253.19|:80...
Run Code Online (Sandbox Code Playgroud)

它总是在重试......有什么想法吗?

有谁知道我在这里做错了什么?或者有什么更好的方法可以在我的 linux 机器中安装最新版本的 cmake?

userName@phx5qa01c-4e23:~/build$ uname -a
Linux phx5qa01c-4e23 2.6.35-22-server #33-Ubuntu SMP Sun Sep 19 20:48:58 UTC 2010 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

command-line cmake software-installation

168
推荐指数
8
解决办法
44万
查看次数

“ppa-purge”和“add-apt-repository -r”之间的区别?

ppa-purge和之间的主要区别是什么add-apt-repository -r。哪一个更好地清除剩余项目和使用一个的理由?是否add-apt-repository -r应该做些什么ppa-purge呢?

编辑:还要从 apt 的钥匙圈中删除钥匙吗?

ppa add-apt-repository

43
推荐指数
2
解决办法
3万
查看次数

libssl-dev 版本依赖与安装的 libssl1.0.0 冲突

Ubuntu 14.04 存储库:universe、main

运行 apt-get 更新

运行 apt-cache 策略 libssl1.0.0

ddew@ddew-wsl:~$ apt-cache policy libssl1.0.0
libssl1.0.0:
  Installed: 1.0.1f-1ubuntu2.11
  Candidate: 1.0.1f-1ubuntu2.11
  Version table:
 *** 1.0.1f-1ubuntu2.11 0
        100 /var/lib/dpkg/status
     1.0.1f-1ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
Run Code Online (Sandbox Code Playgroud)

惊讶地发现作为候选广告的版本与 main 中可用的版本不同,并且 main 中可用的版本比已安装的版本旧。

尝试安装 libssl-dev

ddew@ddew-wsl:~$ 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 …
Run Code Online (Sandbox Code Playgroud)

apt

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