Debian 스크랩에서 apt-get -f install을 실행할 때 종속성 오류가 발생합니다.

Debian 스크랩에서 apt-get -f install을 실행할 때 종속성 오류가 발생합니다.

Debian에서 패키지를 설치하거나 제거할 수 없습니다. apt-get -f install문제를 해결하려고 입력하면 다음 오류가 발생합니다.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
 libgmp3c2 libpython2.6 libssl-dev python-gnupginterface python2.6-dev zlib1g-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
    python-pkg-resources python-setuptools
    Suggested packages:
  python-distribute-doc
The following packages will be upgraded:
  python-pkg-resources python-setuptools
2 upgraded, 0 newly installed, 0 to remove and 190 not upgraded.
1 not fully installed or removed.
Need to get 0 B/323 kB of archives.
After this operation, 989 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
dpkg: error processing /var/cache/apt/archives/python-setuptools_3.4.1-1_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 6 package 'python-setuptools':
`Depends' field, invalid package name `python:any': character `:' not allowed (only letters, digits and characters `-+._')
dpkg: error processing /var/cache/apt/archives/python-pkg-resources_3.4.1-1_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 7 package 'python-pkg-resources':
 `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-setuptools_3.4.1-1_all.deb
 /var/cache/apt/archives/python-pkg-resources_3.4.1-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

많이 검색했지만 이 문제를 해결할 수 없습니다.

답변1

다음 3개 패키지를 동일한 버전으로 업데이트 할 때까지 동일한 문제가 발생했습니다 dpkg.dpkg-devlibdpkg-perl

이전에는 1.15 버전과 1.16 버전이 혼합되어 있었습니다. 3개 패키지를 모두 1.17로 업데이트했습니다.

답변2

달리기를 시도해 본 적이 있나요?

apt-get clean

검색된 패키지 파일의 로컬 저장소를 지웁니다. /var/cache/apt/archives/ 및 /var/cache/apt/archives/partial/에서 잠긴 파일을 제외한 모든 것을 제거합니다.

관련 정보