Moin,
ich habe einen Pi4 mit externer 2,5" HDD der ein paar hundert Kilomenter entfernt steht und als Borkbackup Server dient. Deswegen kann ich ihn leider nicht einfach neu aufsetzen.
Zum Problem:
Bei irgendeinem Update hing sich der Pi nach dem booten auf und ließ sich nicht mehr per ssh erreichen. Ein "Cold restart" mit Stromkabel ab und wieder ran hat dann geholfen.
Seit diesem Zeitpunkt lassen sich aber keine Installstions oder upgrade/update Aktionen mehr durchführen, die auf Python angewiesen sind.
Ich laufe immer in Abhängigkeitsfehler wie diesen hier:
root@piborg:/# apt install libpython2.7-minimal:armhf
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpython2.7-minimal is already the newest version (2.7.16-2+deb10u1).
libpython2.7-minimal set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python3 : Depends: python3.7 (>= 3.7.3-1~) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@piborg:/#
Alles anzeigen
Die ganzen Standard-Befehle zur Bereinigung habe ich schon erfolglos durch.
apt-get upgrade --with-new-pkgs -y
apt-get dist-upgrade -y
dpkg --configure -a
apt --fix-broken install
apt-get autoremove
Ich vermute, dass es etwas mit dem Environment von Python zu tun hat. Installiert ist python2.7 und python3.7
pi@piborg:/usr/bin $ sudo apt list --installed | grep python
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libpython-all-dev/oldstable,now 2.7.16-1 armhf [installed,automatic]
libpython-dev/oldstable,now 2.7.16-1 armhf [installed,automatic]
libpython-stdlib/oldstable,now 2.7.16-1 armhf [installed,automatic]
libpython2-dev/oldstable,now 2.7.16-1 armhf [installed,automatic]
libpython2-stdlib/oldstable,now 2.7.16-1 armhf [installed,automatic]
libpython2.7-dev/oldstable,now 2.7.16-2+deb10u1 armhf [installed,automatic]
libpython2.7-minimal/oldstable,now 2.7.16-2+deb10u1 armhf [installed,automatic]
libpython2.7-stdlib/oldstable,now 2.7.16-2+deb10u1 armhf [installed,automatic]
libpython2.7/oldstable,now 2.7.16-2+deb10u1 armhf [installed,automatic]
libpython3-stdlib/oldstable,now 3.7.3-1 armhf [installed,automatic]
libpython3.7-minimal/oldstable,now 3.7.3-2+deb10u4 armhf [installed,automatic]
libpython3.7-stdlib/oldstable,now 3.7.3-2+deb10u4 armhf [installed,automatic]
libpython3.7/oldstable,now 3.7.3-2+deb10u4 armhf [installed,automatic]
python-all-dev/oldstable,now 2.7.16-1 armhf [installed,automatic]
python-all/oldstable,now 2.7.16-1 armhf [installed,automatic]
python-asn1crypto/oldstable,now 0.24.0-1 all [installed,automatic]
python-automationhat/oldstable,now 0.2.0 all [installed]
python-blinker/oldstable,now 1.4+dfsg1-0.2 all [installed,automatic]
python-blinkt/oldstable,now 0.1.2 all [installed]
python-buttonshim/oldstable,now 0.0.2 all [installed]
python-cairo/oldstable,now 1.16.2-1+b1 armhf [installed,automatic]
python-cap1xxx/oldstable,now 0.1.3 all [installed]
python-certifi/oldstable,now 2018.8.24-1 all [installed,automatic]
python-cffi-backend/oldstable,now 1.12.2-1 armhf [installed,automatic]
python-chardet/oldstable,now 3.0.4-3 all [installed,automatic]
python-click/oldstable,now 7.0-1 all [installed,automatic]
python-colorama/oldstable,now 0.3.7-1 all [installed,automatic]
python-configparser/oldstable,now 3.5.0b2-1 all [installed,automatic]
python-cookies/oldstable,now 2.2.1-2 all [installed,automatic]
python-crypto/oldstable,now 2.6.1-9+b1 armhf [installed,automatic]
python-cryptography/oldstable,now 2.6.1-3+deb10u2 armhf [installed,automatic]
python-dbus/oldstable,now 1.2.8-3 armhf [installed,automatic]
python-dev/oldstable,now 2.7.16-1 armhf [installed,automatic]
python-drumhat/oldstable,now 0.1.0 all [installed]
python-entrypoints/oldstable,now 0.3-1 all [installed,automatic]
python-enum34/oldstable,now 1.1.6-2 all [installed,automatic]
python-envirophat/oldstable,now 1.0.0 all [installed]
python-explorerhat/oldstable,now 0.4.2 all [installed]
python-flask/oldstable,now 1.0.2-3 all [installed]
python-fourletterphat/oldstable,now 0.1.0 all [installed]
python-funcsigs/oldstable,now 1.0.2-4 all [installed,automatic]
python-gi/oldstable,now 3.30.4-1 armhf [installed,automatic]
python-gobject-2/oldstable,now 2.28.6-13 armhf [installed,automatic]
python-gpiozero/oldstable,now 1.6.2-1 all [installed]
python-gtk2/oldstable,now 2.24.0-5.1 armhf [installed,automatic]
python-idna/oldstable,now 2.6-1 all [installed,automatic]
python-ipaddress/oldstable,now 1.0.17-1 all [installed,automatic]
python-itsdangerous/oldstable,now 0.24+dfsg1-2 all [installed,automatic]
python-jinja2/oldstable,now 2.10-2 all [installed,automatic]
python-jwt/oldstable,now 1.7.0-2 all [installed,automatic]
python-keyring/oldstable,now 17.1.1-1 all [installed,automatic]
python-keyrings.alt/oldstable,now 3.1.1-1 all [installed,automatic]
python-markupsafe/oldstable,now 1.1.0-1 armhf [installed,automatic]
python-microdotphat/oldstable,now 0.2.1 all [installed]
python-minimal/oldstable,now 2.7.16-1 armhf [installed,automatic]
python-mock/oldstable,now 2.0.0-4 all [installed,automatic]
python-mote/oldstable,now 0.0.4 all [installed]
python-motephat/oldstable,now 0.0.3 all [installed]
python-numpy/oldstable,now 1:1.16.2-1 armhf [installed,automatic]
python-oauthlib/oldstable,now 2.1.0-1 all [installed,automatic]
python-olefile/oldstable,now 0.46-1 all [installed]
python-openssl/oldstable,now 19.0.0-1 all [installed,automatic]
python-pantilthat/oldstable,now 0.0.7 all [installed]
python-pbr/oldstable,now 4.2.0-5 all [installed,automatic]
python-phatbeat/oldstable,now 0.1.1 all [installed]
python-pianohat/oldstable,now 0.1.0 all [installed]
python-picamera/oldstable,now 1.13 armhf [installed]
python-piglow/oldstable,now 1.2.5 all [installed]
python-pigpio/oldstable,now 1.79-1+rpt1 all [installed]
python-pil/oldstable,now 5.4.1-2+deb10u3 armhf [installed]
python-pip-whl/oldstable,now 18.1-5+rpt1 all [installed,automatic]
python-pip/oldstable,now 18.1-5+rpt1 all [installed]
python-pkg-resources/oldstable,now 40.8.0-1 all [installed,automatic]
python-pygame/oldstable,now 1.9.4.post1+dfsg-3 armhf [installed]
python-pyinotify/oldstable,now 0.9.6-1 all [installed,automatic]
python-rainbowhat/oldstable,now 0.1.0 all [installed]
python-requests-oauthlib/oldstable,now 1.0.0-0.1 all [installed,automatic]
python-requests/oldstable,now 2.21.0-1 all [installed,automatic]
python-responses/oldstable,now 0.9.0-1 all [installed,automatic]
python-rpi.gpio/oldstable,now 0.7.0-0.1~bpo10+4 armhf [installed]
python-rtimulib/oldstable,now 7.2.1-5 armhf [installed,automatic]
python-scrollphat/oldstable,now 0.0.7 all [installed]
python-scrollphathd/oldstable,now 1.2.1 all [installed]
python-secretstorage/oldstable,now 2.3.1-2 all [installed,automatic]
python-sense-hat/oldstable,now 2.2.0-1 armhf [installed]
python-serial/oldstable,now 3.4-4 all [installed]
python-setuptools/oldstable,now 40.8.0-1 all [installed,automatic]
python-simplejson/oldstable,now 3.16.0-1 armhf [installed,automatic]
python-six/oldstable,now 1.12.0-1 all [installed,automatic]
python-skywriter/oldstable,now 0.0.7 all [installed]
python-smbus/oldstable,now 4.1-1 armhf [installed]
python-sn3218/oldstable,now 1.2.7 all [installed]
python-spidev/oldstable,now 20200602~200721-1~buster armhf [installed]
python-talloc/oldstable,now 2.1.14-2 armhf [installed,automatic]
python-tk/oldstable,now 2.7.16-2 armhf [installed]
python-touchphat/oldstable,now 0.0.1 all [installed]
python-twython/oldstable,now 3.7.0-1 all [installed]
python-unicornhathd/oldstable,now 0.0.4 all [installed]
python-urllib3/oldstable,now 1.24.1-1 all [installed,automatic]
python-werkzeug/oldstable,now 0.14.1+dfsg1-4+deb10u1 all [installed,automatic]
python-wheel/oldstable,now 0.32.3-2 all [installed,automatic]
python-xdg/oldstable,now 0.25-5 all [installed,automatic]
python2-dev/oldstable,now 2.7.16-1 armhf [installed,automatic]
python2-minimal/oldstable,now 2.7.16-1 armhf [installed,automatic]
python2.7-dev/oldstable,now 2.7.16-2+deb10u1 armhf [installed,automatic]
python2.7-minimal/oldstable,now 2.7.16-2+deb10u1 armhf [installed,automatic]
python2.7/oldstable,now 2.7.16-2+deb10u1 armhf [installed,automatic]
python2/oldstable,now 2.7.16-1 armhf [installed,automatic]
python3-minimal/oldstable,now 3.7.3-1 armhf [installed,automatic]
python3.7-minimal/oldstable,now 3.7.3-2+deb10u4 armhf [installed,automatic]
python3/oldstable,now 3.7.3-1 armhf [installed,automatic]
python/oldstable,now 2.7.16-1 armhf [installed]
Alles anzeigen
Bin für jeder Idee dankbar!
Gruß
Sascha