설치할 업데이트가 100 개가 넘더라도 Update Manager가 업데이트되지 않습니다. 다음과 같은 오류 메시지가 나타납니다.
installArchives() failed:
Extracting templates from packages: 29%%
Extracting templates from packages: 58%%
Extracting templates from packages: 88%%
Extracting templates from packages: 100%%
Preconfiguring packages ...
Extracting templates from packages: 29%%
Extracting templates from packages: 58%%
Extracting templates from packages: 88%%
Extracting templates from packages: 100%%
Preconfiguring packages ...
Extracting templates from packages: 29%%
Extracting templates from packages: 58%%
Extracting templates from packages: 88%%
Extracting templates from packages: 100%%
Preconfiguring packages ...
Extracting templates from packages: 29%%
Extracting templates from packages: 58%%
Extracting templates from packages: 88%%
Extracting templates from packages: 100%%
Preconfiguring packages ...
(Reading database ...
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 189751 files and directories currently installed.)
Preparing to replace python-problem-report 2.0.1-0ubuntu7 (using .../python-problem-report_2.0.1-0ubuntu9_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/python-problem-report_2.0.1-0ubuntu9_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Traceback (most recent call last):
File "/usr/bin/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace python-apport 2.0.1-0ubuntu7 (using .../python-apport_2.0.1-0ubuntu9_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Traceback (most recent call last):
File "/usr/bin/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace apport 2.0.1-0ubuntu7 (using .../apport_2.0.1-0ubuntu9_all.deb) ...
apport stop/waiting
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/apport_2.0.1-0ubuntu9_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
apport start/running
Traceback (most recent call last):
File "/usr/bin/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace gnome-orca 3.4.1-0ubuntu0.1 (using .../gnome-orca_3.4.2-0ubuntu0.1_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/gnome-orca_3.4.2-0ubuntu0.1_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Traceback (most recent call last):
File "/usr/bin/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace python-piston-mini-client 0.7.2-0ubuntu1 (using .../python-piston-mini-client_0.7.2+bzr57-0ubuntu1_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/python-piston-mini-client_0.7.2+bzr57-0ubuntu1_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Traceback (most recent call last):
File "/usr/bin/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace oneconf 0.2.8 (using .../oneconf_0.2.8.1_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/oneconf_0.2.8.1_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Traceback (most recent call last):
File "/usr/bin/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace software-center 5.2.2 (using .../software-center_5.2.2.2_all.deb) ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
Traceback (most recent call last):
File "/usr/bin/pyclean", line 33, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error processing /var/cache/apt/archives/software-center_5.2.2.2_all.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
No apport report written because MaxReports is reached already
Traceback (most recent call last):
File "/usr/bin/pycompile", line 39, in <module>
from debpython.namespace import add_namespace_files
ValueError: bad marshal data (unknown type code)
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Preparing to replace libglade2-0 1:2.6.4-1ubuntu1 (using .../libglade2-0_1%%3a2.6.4-1ubuntu1.1_amd64.deb) ...
Unpacking replacement libglade2-0 ...
Preparing to replace libv4l-0 0.8.6-1ubuntu1 (using .../libv4l-0_0.8.6-1ubuntu2_amd64.deb) ...
De-configuring libv4l-0:i386 ...
Unpacking replacement libv4l-0 ...
Preparing to replace libv4l-0:i386 0.8.6-1ubuntu1 (using .../libv4l-0_0.8.6-1ubuntu2_i386.deb) ...
Unpacking replacement libv4l-0:i386 ...
Preparing to replace libv4lconvert0:i386 0.8.6-1ubuntu1 (using .../libv4lconvert0_0.8.6-1ubuntu2_i386.deb) ...
De-configuring libv4lconvert0 ...
Unpacking replacement libv4lconvert0:i386 ...
Preparing to replace libv4lconvert0 0.8.6-1ubuntu1 (using .../libv4lconvert0_0.8.6-1ubuntu2_amd64.deb) ...
Unpacking replacement libv4lconvert0 ...
Errors were encountered while processing:
/var/cache/apt/archives/python-problem-report_2.0.1-0ubuntu9_all.deb
/var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb
/var/cache/apt/archives/apport_2.0.1-0ubuntu9_all.deb
/var/cache/apt/archives/gnome-orca_3.4.2-0ubuntu0.1_all.deb
/var/cache/apt/archives/python-piston-mini-client_0.7.2+bzr57-0ubuntu1_all.deb
/var/cache/apt/archives/oneconf_0.2.8.1_all.deb
/var/cache/apt/archives/software-center_5.2.2.2_all.deb
Error in function:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
Setting up libglade2-0 (1:2.6.4-1ubuntu1.1) ...
dpkg: error processing gnome-orca (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
dpkg: error processing python-problem-report (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Setting up libv4lconvert0 (0.8.6-1ubuntu2) ...
Setting up libv4lconvert0:i386 (0.8.6-1ubuntu2) ...
dpkg: error processing python-piston-mini-client (--configure):
Package is in a very bad inconsistent state - you should
reinstall it before attempting configuration.
Setting up libv4l-0 (0.8.6-1ubuntu2) ...
Setting up libv4l-0:i386 (0.8.6-1ubuntu2) ...
dpkg: dependency problems prevent configuration of python-apport:
python-apport depends on python-problem-report (>= 0.94); however:
Package python-problem-report is not configured yet.
dpkg: error processing python-apport (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of software-center:
software-center depends on python-piston-mini-client (>= 0.1+bzr29); however:
Package python-piston-mini-client is not configured yet.
dpkg: error processing software-center (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of oneconf:
oneconf depends on python-piston-mini-client (>= 0.3+bzr32-0ubuntu1); however:
Package python-piston-mini-client is not configured yet.
dpkg: error processing oneconf (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of apport:
apport depends on python-apport (>= 2.0.1-0ubuntu7); however:
Package python-apport is not configured yet.
dpkg: error processing apport (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
2 주간 진행되었으며 업데이트를받을 수 없습니다. 어떤 도움이라도 좋을 것입니다.
답변
오류를 일으키는 파일을 강제로 덮어 써야합니다.
sudo dpkg -i --force-overwrite <filename>
귀하의 경우에는 다음과 같습니다.
sudo dpkg -i --force-overwrite /var/cache/apt/archives/python-problem-report_2.0.1-0ubuntu9_all.deb
그런 다음 다음을 실행하십시오.
sudo apt-get -f install
답변
다음 명령을 시도 할 수 있습니다.
sudo apt-get clean
sudo apt-get update && sudo apt-get upgrade
여전히 같은 오류가 발생하면 다음을 시도하십시오.
sudo dpkg --configure -a
sudo apt-get -f install
그래도 작동하지 않고 여전히 같은 오류가 발생하더라도 다시 확인하면이를 정렬 할 수 있습니다.
답변
python-problem-report 패키지 또는 python-minimal 패키지의 버그이거나 패키지의 잘못된 사본 일 수 있습니다.
나는 이것이 정확하게 제안 된 패키지임을 알았습니다. 당신은 당신의 소프트웨어 소스 목록에서이 저장소를 삭제하고 실행하실 수 있습니다 apt-get update
(터미널 세션에서 Ctrl– Alt– T복구).
또한 삭제 시도 할 수 있습니다 python-problem-report_2.0.1-0ubuntu9_all.deb
에서 /var/cache/apt/archives
이렇게 apt-get upgrade
다시 새로운 사본을 다운로드해야합니다. (단말에서 Ctrl– Alt– T) 입력
sudo rm /var/cache/apt/archives/python-problem-report_2.0.1-0ubuntu9_all.deb
또는 다음을 사용할 수 있습니다.
sudo apt-get clean
캐시에서 다운로드 한 파일을 모두 지우십시오.
업그레이드를 다시 시도하십시오.
이들 중 어느 것도 도움이되지 않는다면 https://bugs.launchpad.net/ubuntu/+source/apport/+bug/984944에 제안 된 패키지 사용 경험을 설명하거나 패키지가 일반적으로 릴리스되면 apport 패키지에 대한 버그.
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/984944 에이 질문에 대한 한 가지 의견 을 남겼지 만 진행 한 단계와 apt-의 결과를 설명하는 의견을 추가해야합니다. 위에서 업그레이드하십시오.
답변
sudo update-alternatives --config python
대체 파이썬에는 2 가지 옵션이 있습니다 (/ usr / bin / python 제공).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/python3.5 2 auto mode
* 1 /usr/bin/python2.7 1 manual mode
2 /usr/bin/python3.5 2 manual mode
Press <enter> to keep the current choice[*], or type selection number:
python2.7 옵션을 선택하십시오.
답변
대안으로, 패키지를 제거한 후 나중에 추가해보십시오. 이것은 Citrix 클라이언트에서 나를 위해 일했습니다. 무엇을 제거하고 있는지주의하십시오 (물론).
sudo apt-get remove icaclient:i386
답변
파이썬 2.7과 파이썬 3.4가 모두 설치된 시스템에서 비슷한 문제가 발생했습니다. 문제는 python-subversion 패키지의 호환성 문제였습니다 . ConfigParser 변경으로 인해 python 2에서만 작동합니다 . 나는 그것을함으로써 그것을 해결했다.
ls -la /usr/bin | grep python
내 경로 의 python 실행 파일이 python 3에 대한 심볼릭 링크인지 확인하려면
ln -s /usr/bin/python2.7 /usr/bin/python
대신 파이썬 2를 사용하십시오. 그 후 apt-get이 정상적으로 완료되고 symlink 변경 사항을 되돌 렸습니다.
rm -f /usr/bin/python
ln -s /usr/bin/python3.4 /usr/bin/python
답변
이 시도:
mount -t proc proc /proc
그것은 나를 위해 일했다.