python -setuptools 및 python-pip를 설치하려고 시도한 후 "문제를 해결할 수 없습니다. 손상된 패키지를 보유하고 있습니다."

python -setuptools 및 python-pip를 설치하려고 시도한 후 "문제를 해결할 수 없습니다. 손상된 패키지를 보유하고 있습니다."

"sudo apt-get install python-setuptools python-pip"를 실행했지만 다음을 받았습니다.

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:
 python-pip : Depends: python-pip-whl (= 1.5.4-1ubuntu3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

나는 보통 sudo apt-get install python-pip를 실행하면 작동하는데 왜 setuptools를 사용하기로 결정했는지 모르겠습니다. 메뉴 표시줄에서 "편집"을 클릭하고 "깨진 패키지 수정"과 명령줄을 클릭하여 Synaptic 패키지 관리자를 사용해 보았지만 sudo dpkg --configure -a여전히 sudo apt-get -f installpython-pip를 설치할 수 없습니다.

저는 Python 2.7.6을 사용하여 Linux Mint 17 xfce 3.13.0-37-generic을 사용하고 있습니다.

어떤 도움이라도 대단히 감사하겠습니다. 나는 dpkg에 대한 많은 명령을 온라인에서 보았지만 패키지에 대해 충분히 익숙하지 않아 다른 것을 깨뜨리고 싶지 않습니다.

고쳐 쓰다:

"sudo apt-cache 정책 python-pip"

python-pip:
  Installed: (none)
  Candidate: 1.5.4-1ubuntu3
  Version table:
     1.5.4-1ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
     1.5.4-1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages

"sudo apt-get 설치 python-pip-whl"

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:
 python-pip-whl : Depends: python-requests-whl but it is not installable
                  Depends: python-setuptools-whl but it is not installable
                  Depends: python-six-whl but it is not installable
                  Depends: python-urllib3-whl but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

업데이트 #2

$ sudo apt-cache 정책 python-pip-whl python-requests-whl python-setuptools-whl python-6-whl python-urllib3-whl

python-pip-whl:
  Installed: (none)
  Candidate: 1.5.4-1ubuntu1
  Version table:
     1.5.4-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe amd64 Packages
python-requests-whl:
  Installed: (none)
  Candidate: (none)
  Version table:
python-setuptools-whl:
  Installed: (none)
  Candidate: (none)
  Version table:
python-six-whl:
  Installed: (none)
  Candidate: (none)
  Version table:
python-urllib3-whl:
  Installed: (none)
  Candidate: 1.7.1-1ubuntu3
  Version table:
     1.7.1-1ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages

$는 python-requests-whl python-setuptools-whl python-6-whl python-urllib3-whl의 pkg에 사용됩니다. 실행 sudo apt-get install $pkg;

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-requests-whl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-requests-whl' has no installation candidate
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-setuptools-whl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-setuptools-whl' has no installation candidate
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-six-whl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-six-whl' has no installation candidate
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:
 python-urllib3-whl : Depends: python-six-whl but it is not installable
E: Unable to correct problems, you have held broken packages.

업데이트 #3

$ /etc/apt/sources.list

#deb cdrom:[Linux Mint 17.1 _Rebecca_ - Release amd64 20150107]/ trusty contrib main non-free

업데이트 #4

$ /etc/apt/sources.list.d $ ll

total 16
drwxr-xr-x 2 root root 4096 Jun 21 01:00 .
drwxr-xr-x 6 root root 4096 Jun 24 00:52 ..
-rw-r--r-- 1 root root   59 Jan  7 12:29 getdeb.list
-rw-r--r-- 1 root root  530 Jan  7 12:29 official-package-repositories.list

$ 고양이 getdeb.list

# deb http://archive.getdeb.net/ubuntu trusty-getdeb apps 

$ cat 공식 패키지 저장소.list

# Do not edit this file manually, use Software Sources instead.

deb http://packages.linuxmint.com rebecca main upstream import  #id:linuxmint_main
deb http://extra.linuxmint.com rebecca main #id:linuxmint_extra

deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ trusty partner

업데이트 #5

/etc/apt/apt.conf.d $ll

total 52
drwxr-xr-x 2 root root 4096 Jun 24 01:06 .
drwxr-xr-x 6 root root 4096 Jun 24 00:52 ..
-rw-r--r-- 1 root root   49 Jun 21 00:59 00aptitude
-rw-r--r-- 1 root root   41 Jan  7 11:58 00cdrom
-rw-r--r-- 1 root root   73 Jan  7 11:58 00recommends
-rw-r--r-- 1 root root   40 Jun 21 00:58 00trustcdrom
-rw-r--r-- 1 root root  643 Apr 10  2014 01autoremove
-rw-r--r-- 1 root root  992 Jan  7 12:23 01autoremove-kernels
-rw-r--r-- 1 root root  123 Apr 10  2014 20changelog
-rw-r--r-- 1 root root  243 Mar 11  2013 20dbus
-rw-r--r-- 1 root root 2331 Apr  2  2014 50unattended-upgrades
-rw-r--r-- 1 root root  182 Feb 23  2014 70debconf
-rw-r--r-- 1 root root   33 Jun 24 01:06 99synaptic

/etc/apt/preferences.d $ll

total 16
drwxr-xr-x 2 root root 4096 Jun 21 01:16 .
drwxr-xr-x 6 root root 4096 Jun 24 00:52 ..
-rw-r--r-- 1 root root  216 Feb  3 07:15 official-extra-repositories.pref
-rw-r--r-- 1 root root  171 Jan  7 12:29 official-package-repositories.pref

답변1

저도 같은 문제가 있었습니다. 먼저 업데이트하여 문제를 해결할 수 있습니다.

# apt-get update

관련 정보