bgu*_*uiz 6 apt dependencies 13.04 software-installation
安装时如何解决依赖问题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) but 1.0.1c-4ubuntu8.1 is to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
系统信息:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
$ uname -a
Linux Compy 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:52:24 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
我的问题看起来与这个相似- 但不,apt-get update
对我没有任何帮助。
解决方案是确保软件源包含更新,如下所示:
$ sudo vi /etc/apt/sources.list
$ #add the following two lines to sources.list for raring-updates
deb http://ch.archive.ubuntu.com/ubuntu/ raring main restricted
deb-src http://ch.archive.ubuntu.com/ubuntu/ raring main restricted
+deb http://ch.archive.ubuntu.com/ubuntu/ raring-updates main restricted
+deb-src http://ch.archive.ubuntu.com/ubuntu/ raring-updates main restricted
$ sudo apt-get update
$ apt-cache policy libssl-dev
Run Code Online (Sandbox Code Playgroud)
您应该会看到包含以下内容的输出 raring-updates
$ sudo apt-get install libssl-dev
Run Code Online (Sandbox Code Playgroud)
这次应该工作!
归档时间: |
|
查看次数: |
46054 次 |
最近记录: |