ubuntuusers.de

APT durch Python3.5 beschädigt (RaspberryPi)

Status: Gelöst | Ubuntu-Version: Ubuntu MATE 16.04 (Xenial Xerus)
Antworten |

Duke64

Anmeldungsdatum:
23. Dezember 2017

Beiträge: Zähle...

Hi,

auf meinem Raspberry Pi3 läuft momentan Ubuntu Mate 16.04.03. Beim letzten dist-upgrade Durchlauf scheint irgendetwas schief gelaufen zu sein. Ab nun an bekomme ich immer folgende Fehler, sobald ich irgendetwas mit APT mache. Auch läuft das System nicht mehr fehlerfrei: VNC Verbindung gibt nur graues Bild aus, X startet nicht aus usw.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python3.5 (3.5.2-2ubuntu0~16.04.4) ...
Sorry: ValueError: source code string cannot contain null bytes
dpkg: error processing package python3.5 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3:
 python3 depends on python3.5 (>= 3.5.1-2~); however:
  Package python3.5 is not configured yet.

dpkg: error processing package python3 (--configure):
 dependency problems - leaving unconfigured
Setting up python2.7 (2.7.12-1ubuntu0~16.04.2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
                          Sorry: TypeError: compile() expected string without null bytes
dpkg: error processing package python2.7 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of idle-python2.7:
 idle-python2.7 depends on python2.7; however:
  Package python2.7 is not configured yet.

dpkg: error processing package idle-python2.7 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of idle-python3.5:
 idle-python3.5 depends on python3.5; however:
  Package python3.5 is not configured yet.

dpkg: error processing package idle-python3.5 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of python2.7-dev:
 python2.7-dev depends on python2.7 (= 2.7.12-1ubuntu0~16.04.2); however:
  Package python2.7 is not configured yet.

dpkg: error processing package python2.7-dev (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of python3.5-dev:
 python3.5-dev depends on python3.5 (= 3.5.2-2ubuntu0~16.04.4); however:
  Package python3.5 is not configured yet.

dpkg: error processing package python3.5-dev (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 python3.5
 python3
 python2.7
 idle-python2.7
 idle-python3.5
 python2.7-dev
 python3.5-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
tom@pi:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Release:	16.04
Codename:	xenial

Bisher habe ich im Netz nichts hilfreiches gefunden. Für konstruktive Beiträge bin ich dankbar.

beste Grüße, Tom

imho74

Avatar von imho74

Anmeldungsdatum:
13. Oktober 2016

Beiträge: 98

Wohnort: Hannover

Hi,

kannst du Python 3.5 mit

1
sudo apt remove python3.5

oder

1
sudo apt purge python3.5

entfernen?

Du kannst es ja später, wenn wieder alles funktioniert, erneut installieren.

Viele Grüße

Christian

Duke64

(Themenstarter)

Anmeldungsdatum:
23. Dezember 2017

Beiträge: 3

Danke für die schnelle Antwort. Zwischen Kuchen und Weihnachtsbäumen habe ich es nicht eher an den Rechner geschafft.

Wenn ich Py3.5 kurzzeitig entfernen will, möchte er gleich eine Armada an Software/Abhängigkeiten mit deinstallieren (Firefox, Update Manager, apturl usw). Aus Erfahrung bekommt man das System danach noch schwieriger ins Rollen. Ist das wirklich der einzige Weg?

Lasall

Ehemalige
Avatar von Lasall

Anmeldungsdatum:
30. März 2010

Beiträge: 7723

Hi Tom!

Mindestens eine Datei deiner Python-Umgebung ist fehlerhaft. Evtl. hilft es schon die Dateien nochmal herunterzuladen:

sudo apt-get update
sudo apt-get clean
sudo apt-get --reinstall install libpython3.5-stdlib
sudo dpkg --configure -a 

Viele Grüße
Lasall

Duke64

(Themenstarter)

Anmeldungsdatum:
23. Dezember 2017

Beiträge: 3

Das war's !

Ich hatte es vorher schon nur mit "python3.5" probiert, das hat aber nicht funktioniert. Die "-stdlib" hat es gerichtet. Ich musste es dann noch für "libpython2.7-stdlib" ausführen und gut war es.

Da hätte ich auch selber darauf kommen könnnen. Ich danke euch beiden und noch eine entspannte Woche ☺

Antworten |