“Dpkg: hata işleme /var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb” nasıl çözülür?


47

Yüklemek için 100'den fazla güncellemem olsa bile, Güncelleme Yöneticisi güncelleme yapmayacak. Bunun gibi bir hata mesajı alıyorum:

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

Bu iki haftadır devam ediyor ve herhangi bir güncelleme alamıyorum. Herhangi bir yardım çok iyi olurdu.


1
Lütfen her bir 'çıktı' satırından önce 4 boşluk ekleyin. Lütfen hangi Ubuntu sürümünün bulunduğunu onaylayın .
— david6

1
@ david6 12.04 kullanıyormuş gibi görünüyor. Oneiric veya diğer sürüm sürümlerinde Precise paketleri kullanmıyorsa. (ipucu: gnome-balina versiyonu diğerleri arasında: 3,4)
— jokerdino

Başlığı daha belirgin olacak şekilde düzenlemeye çalıştım ve 12.04 etiketine ekleme özgürlüğünü kullandım. Herhangi biriniz aynı fikirde değilse, buna göre düzenlemek için çekinmeyin.
— jokerdino

1
Piton-problem rapor sürümü kesin apport SRU salınımı Haziran 4. parçasıdır
— John S Gruber

Yanıtlar:


61

Hatalara neden olan dosyaların üzerine yazmaya zorlamanız gerekir:

sudo dpkg -i --force-overwrite <filename>

Senin durumunda olacak:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/python-problem-report_2.0.1-0ubuntu9_all.deb

O zaman koş:

sudo apt-get -f install

Kaynak: http://www.absolutelytech.com/2010/06/30/solved-error-dpkg-error-processing-filename-unpack-trying-to-overwrite/


1
Baskın bir problem hatası alıyorum ve sudo dpkg -i --force-overwrite <dosyaadı> 'nı çalıştırmakla benzer sorunları yaşıyordum. Teşekkürler!
— Mike Grace,

1
+1 uzun zamandır ubuntu16.04 işletim sistemimde bu şarap sorunuyla karşı karşıya kaldım. şimdi çözüldü. değerli cevabınız için teşekkürler.
— Satish Sharma,

1
+1 Bu, günlük ppa'm kötüye kullanımımdan şikayet etmesini durduruyor.
— Dominic Cerisano

38

Aşağıdaki komutu deneyebilirsiniz:

sudo apt-get clean
sudo apt-get update && sudo apt-get upgrade

Hala aynı hatayı alıyorsanız, şunu deneyin:

sudo dpkg --configure -a
sudo apt-get -f install

Bu işe yaramazsa ve yine de aynı hatayı alırsanız, tekrar kontrol edin ve biz bunu çözelim.


Benzer bir problemim vardı: /var/cache/apt/pkgcache.bin.random karakterini yeniden adlandırırken sorun. İlk yaklaşımı denedim ve bu işe yaramaz oldu.
— Elder Geek

1
Bunun benim için bir etkisi olmadı. Hala "dpkg: bağımlılık sorunları * * yapılandırmasını engelliyor" gibi hatalar alıyorum
— Cerin

1
sudo dpkg --configure -aBu ne anlama geliyor?
— Parag Jadhav

5

Python-problem-report paketinde veya python-minimal paketinde bir hata veya paketin kötü bir kopyası olabilir.

Bunun kesin olarak önerilmiş bir paket olduğunu görüyorum. Bu veri havuzunu yazılım kaynakları listenizden silmek ve kurtarmak için apt-get updatebir terminal oturumundan ( Ctrl- Alt- T) çalıştırmak isteyebilirsiniz.

Sizden silmeyi deneyebilirsiniz python-problem-report_2.0.1-0ubuntu9_all.deb, /var/cache/apt/archivesböylece apt-get upgradeyeni bir kopyayı tekrar indirmek zorunda kalabilirsiniz . Terminalde ( Ctrl- Alt- T) yazın:

sudo rm /var/cache/apt/archives/python-problem-report_2.0.1-0ubuntu9_all.deb

Alternatif olarak kullanabilirsiniz:

sudo apt-get clean

Önbelleğinizdeki indirilen tüm dosyaları silmek için

Yükseltmeyi tekrar deneyin.

Bu yardımlardan hiçbiri, https://bugs.launchpad.net/ubuntu/+source/apport/+bug/984944 adresinde , bu önerilen paketi kullanmadaki deneyiminizi açıklayan veya paket genel olarak yayımlandıktan sonra bir yorum bırakmamalısınız. apport paketine karşı bir hata.

Bu soru hakkında bir yorum bıraktım https://bugs.launchpad.net/ubuntu/+source/apport/+bug/984944, ancak attığınız adımları ve apt-den çıktısını gösteren bir yorum eklemelisiniz. Yukarıdan yükseltme olsun.


2
Muhtemelen bir hata olduğunu doğru para üzerinde iken python-problem-report, sudo rmkomut tavsiye rahat değilim . Bu kesinlikle son çare olmalı. Aksi halde iyi iş!
— jokerdino

Yani sürece sudo rm ...komutu yanlış yazmış değil ince ve son çare olarak kabul edilemez ihtiyaç olması gerekir: dosyaları /var/cache/apt/archivessadece (yani kalan) paket dosyalarını arşivlenir. John S Gruber’in dediği gibi, biraz tavsiye edilen sudo apt-get cleankomut tüm bu dosyaları siler . Önbelleğe alınmış bir .deb dosyasını silmek, paketin bir sonraki yüklenişinde (veya yeniden yüklendiğinde) yeni bir (ve umarız bozulmamış) .deb dosyasının indirilmesinin güvenli ve etkili bir yoludur.
— Eliah Kagan

Benim için işe yaramadı
— Hack-R

5
sudo update-alternatives --config python

Alternatif python için 2 seçenek vardır (/ usr / bin / python sağlar).

  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: 

Seçenek python2.7 seçin.


2

Alternatif olarak, paketi çıkarmayı ve daha sonra eklemeyi deneyebilirsiniz. Bu Citrix istemcisinde benim için çalıştı. Ne çıkardığınıza dikkat edin (elbette).

sudo apt-get remove icaclient:i386

1

Benzer bir problemle hem python 2.7 hem de python 3.4 kurulu olan bir sistemde karşılaştım. Sorun, görünüşe göre sadece ConfigParser'daki bir değişiklik nedeniyle python 2 ile çalışan python-subversion paketi ile uyumluluk sorunuydu . Yaparak ele aldım

ls -la /usr/bin | grep python

Yolumda çalıştırılabilir python'un python 3 ile bir bağlantı olduğunu onaylamak için

ln -s /usr/bin/python2.7 /usr/bin/python

Bunun yerine python 2 kullanmak. Bundan sonra apt-get normal şekilde tamamlayabildi ve ben de link link değişikliğimi geri aldım.

rm -f /usr/bin/python
ln -s /usr/bin/python3.4 /usr/bin/python

Son 2 komut değiştirilebilir ln -rs /usr/bin/python3.4 /usr/bin/python. Ayrıca, /usr/bin/python3en son python3sürüme işaret eden başka bir sembolik bağlantıya sahipseniz, genellikle olduğu gibi, ileri doğru başka bir adım atabilirsiniz ln -rs /usr/bin/python3 /usr/bin/python. Neyse, çözüm için teşekkürler, mercurialkurulumda bir sorundan sonra benim için çalıştı .
— tigerjack89

-1

Bunu dene:

mount -t proc proc /proc

Benim için çalıştı.


Bunun neden bir çözüm olduğuna dair bir açıklama ekleyebilir misiniz?
— Igor V.
Sitemizi kullandığınızda şunları okuyup anladığınızı kabul etmiş olursunuz: Çerez Politikası ve Gizlilik Politikası.
Licensed under cc by-sa 3.0 with attribution required.