安装包时出错

安装包时出错

当我想安装包时遇到问题python-pycurl

root@edx:/var/tmp/configuration-master/playbooks# apt-get install python-pycurl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  libcurl4-gnutls-dev python-pycurl-dbg
The following NEW packages will be installed:
  python-pycurl
0 upgraded, 1 newly installed, 0 to remove and 179 not upgraded.
Need to get 0 B/62.3 kB of archives.
After this operation, 233 kB of additional disk space will be used.
debconf: delaying package configuration, since apt-utils is not installed
dpkg: error processing /var/cache/apt/archives/python-pycurl_7.19.3.1-1_amd64.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 7 package 'python-pycurl':
 `Depends' field, invalid package name `python:any': character `:' not allowed (only letters, digits and characters `-+._')
Errors were encountered while processing:
 /var/cache/apt/archives/python-pycurl_7.19.3.1-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

我不知道问题出在哪里,这是我的/etc/apt/source.list文件:

deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main non-free

#mirrors
deb http://mirrors.kernel.org/debian/ unstable main contrib non-free
deb-src http://mirrors.kernel.org/debian/ unstable main contrib non-free  

# Base repository
deb http://ftp.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free

# Stable updates
deb http://ftp.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ squeeze-updates main contrib non-free

有人有什么想法吗?

答案1

问题是包装坏了。您启用了不稳定的存储库。它被称为“不稳定”是有原因的。

相关内容