
저는 우분투 14.04를 실행 중이며 최근 apt-get에 문제가 발생하기 시작했습니다. 패키지를 설치하거나 제거할 수 없습니다(아래 오류). 패키지 재설치도 해봤고, deb 파일도 제거해봤지만 여전히 같은 오류가 발생합니다.
The following extra packages will be installed:
python3-software-properties software-properties-common
software-properties-gtk
The following packages will be upgraded:
python3-software-properties software-properties-common
software-properties-gtk
3 upgraded, 0 newly installed, 0 to remove and 412 not upgraded.
108 not fully installed or removed.
Need to get 0 B/126 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
dh-python software-properties-common software-properties-gtk
python3-software-properties
Install these packages without verification? [y/N] y
(Reading database ... 305261 files and directories currently installed.)
Preparing to unpack .../software-properties-common_0.92.37.7_all.deb ...
/var/lib/dpkg/info/software-properties-common.prerm: 6: /var/lib/dpkg/info/software-properties-common.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/software-properties-common_0.92.37.7_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/software-properties-common.postinst: 6: /var/lib/dpkg/info/software-properties-common.postinst: py3compile: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Preparing to unpack .../software-properties-gtk_0.92.37.7_all.deb ...
/var/lib/dpkg/info/software-properties-gtk.prerm: 6: /var/lib/dpkg/info/software-properties-gtk.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/software-properties-gtk_0.92.37.7_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/software-properties-gtk.postinst: 6: /var/lib/dpkg/info/software-properties-gtk.postinst: py3compile: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Preparing to unpack .../python3-software-properties_0.92.37.7_all.deb ...
/var/lib/dpkg/info/python3-software-properties.prerm: 6: /var/lib/dpkg/info/python3-software-properties.prerm: py3clean: not found
dpkg: warning: subprocess old pre-removal script returned error exit status 127
dpkg: trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/prerm: 6: /var/lib/dpkg/tmp.ci/prerm: py3clean: not found
dpkg: error processing archive /var/cache/apt/archives/python3-software-properties_0.92.37.7_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 127
/var/lib/dpkg/info/python3-software-properties.postinst: 6: /var/lib/dpkg/info/python3-software-properties.postinst: py3compile: not found
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
/var/cache/apt/archives/software-properties-common_0.92.37.7_all.deb
/var/cache/apt/archives/software-properties-gtk_0.92.37.7_all.deb
/var/cache/apt/archives/python3-software-properties_0.92.37.7_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
답변1
py3compile: 찾을 수 없음
이 py3compile
명령은 패키지의 일부 python3-minimal
이며 손상된 것으로 보입니다.
이 문제를 해결하려면 다음을 시도해 보십시오.
다음을 통해 종속성이 손상된 시스템을 수정합니다.
sudo apt-get -f install
다음을 통해 압축은 풀었지만 구성되지 않은 모든 패키지를 재구성합니다.
sudo dpkg --configure -a
위의 방법이 효과가 없으면 다음을
python3-minimal
통해 패키지를 다시 설치해 보세요.sudo apt install -f --reinstall python3-minimal
또는 다음을 실행하세요:
apt-get download python3-minimal sudo dpkg -i *python3*.deb sudo apt install -f
또는 다운로드
.pkg
kernel.org의 파일다음을 통해 파일에서 설치합니다.sudo dpkg -i python3-minimal_*.deb
py3compile
그런 다음 명령이 py3clean
실행 가능하고 PATH
변수에서 액세스할 수 있는지 확인하십시오 .