安装 libcurl 的开发标头时出现损坏的软件包错误

安装 libcurl 的开发标头时出现损坏的软件包错误

我想使用的某些软件依赖于 curl 库的开发标头。我这样做了,apt-cache search libcurl发现包提供了必要的开发标头。libcurl4-gnutls-devlibcurl4-openssl-dev

但是,当我运行时sudo apt-get install libcurl4-gnutls-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:
 libcurl4-gnutls-dev : Depends: libkrb5-dev but it is not going to be installed or
                                hurd but it is not installable
E: Broken packages

用谷歌搜索这一点并没有帮助。

我正在运行 Ubuntu 10.10。uname -a我的系统上给出以下输出:

Linux skynet 2.6.35-22-generic #33-Ubuntu SMP Sun Sep 19 20:32:27 UTC 2010 x86_64 GNU/Linux

关于如何修复包装破损错误有什么线索吗?

输出sudo apt-get update

Get:1 http://extras.ubuntu.com maverick Release.gpg [72B]                                      
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en                              
Get:2 http://linux.dropbox.com maverick Release.gpg [489B]           
Ign http://linux.dropbox.com/ubuntu/ maverick/main Translation-en             
Ign http://linux.dropbox.com/ubuntu/ maverick/main Translation-en_IN
Ign http://extras.ubuntu.com/ubuntu/ maverick/main Translation-en_IN
Get:3 http://extras.ubuntu.com maverick Release [9,762B]
Get:4 http://linux.dropbox.com maverick Release [2,605B]
Get:5 http://extras.ubuntu.com maverick/main Sources [668B]                          
Get:6 http://linux.dropbox.com maverick/main amd64 Packages [772B]                        
Hit http://in.archive.ubuntu.com maverick Release.gpg                      
Get:7 http://extras.ubuntu.com maverick/main amd64 Packages [700B]
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/main Translation-en
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_IN                                                                                                                                       
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en                                                                                                                                    
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en
Ign http://in.archive.ubuntu.com/ubuntu/ maverick/universe Translation-en_IN
Hit http://in.archive.ubuntu.com maverick Release       
Hit http://in.archive.ubuntu.com maverick/main Sources
Hit http://in.archive.ubuntu.com maverick/restricted Sources
Hit http://in.archive.ubuntu.com maverick/universe Sources
Hit http://in.archive.ubuntu.com maverick/multiverse Sources
Hit http://in.archive.ubuntu.com maverick/main amd64 Packages
Hit http://in.archive.ubuntu.com maverick/restricted amd64 Packages
Hit http://in.archive.ubuntu.com maverick/universe amd64 Packages
Hit http://in.archive.ubuntu.com maverick/multiverse amd64 Packages
Fetched 15.1kB in 1min 16s (197B/s)
Reading package lists... Done

输出sudo aptitude install libcurl4-gnutls-dev

The following NEW packages will be installed:
  comerr-dev{a} krb5-multidev{ab} libcurl4-gnutls-dev libgcrypt11-dev{a} libgnutls-dev{a} libgpg-error-dev{a} libgssrpc4{a} libidn11-dev{a} libkadm5clnt-mit7{a} libkadm5srv-mit7{a} libkdb5-4{a} 
  libkrb5-dev{a} libldap2-dev{a} libtasn1-3-dev{a} 
0 packages upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,436kB of archives. After unpacking 13.2MB will be used.
The following packages have unmet dependencies:
  krb5-multidev: Depends: libkrb5-3 (= 1.8.1+dfsg-5) but 1.8.1+dfsg-5ubuntu0.1 is installed.
                 Depends: libk5crypto3 (= 1.8.1+dfsg-5) but 1.8.1+dfsg-5ubuntu0.1 is installed.
                 Depends: libgssapi-krb5-2 (= 1.8.1+dfsg-5) but 1.8.1+dfsg-5ubuntu0.1 is installed.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     krb5-multidev [Not Installed]                      
2)     libcurl4-gnutls-dev [Not Installed]                
3)     libkrb5-dev [Not Installed]                        



Accept this solution? [Y/n/q/?] Y 
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.

答案1

尝试允许maverick-security存储库。然后更新缓存

sudo apt-get update

并尝试再次安装。

相关内容