Fórumok
Udv!
Ezereves Raspberryt update-elnek kicsit, de teljesen belekavarodott az apt es/vagy a python sajat magaba...
$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
libelfg0 libpython3.4 libpython3.4-dev python3.4-dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libglib2.0-0 libglib2.0-bin libglib2.0-dev libpython3-dev libpython3-stdlib libpython3.5 libpython3.5-dev python3 python3.5-dev
Suggested packages:
libglib2.0-doc python3-doc python3-tk python3-venv
The following NEW packages will be installed:
libpython3.5 libpython3.5-dev python3.5-dev
The following packages will be upgraded:
libglib2.0-0 libglib2.0-bin libglib2.0-dev libpython3-dev libpython3-stdlib python3
6 upgraded, 3 newly installed, 0 to remove and 970 not upgraded.
58 not fully installed or removed.
Need to get 0 B/45.5 MB of archives.
After this operation, 54.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python3.5-minimal (3.5.3-1+deb9u5) ...
Traceback (most recent call last):
File "/usr/lib/python3.5/py_compile.py", line 6, in <module>
import importlib._bootstrap_external
File "/usr/lib/python3.5/importlib/__init__.py", line 57, in <module>
import types
File "/usr/lib/python3.5/types.py", line 166, in <module>
import functools as _functools
File "/usr/lib/python3.5/functools.py", line 23, in <module>
from weakref import WeakKeyDictionary
File "/usr/lib/python3.5/weakref.py", line 12, in <module>
from _weakref import (
ImportError: cannot import name '_remove_dead_weakref'
dpkg: error processing package python3.5-minimal (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python3-minimal:
python3-minimal depends on python3.5-minimal (>= 3.5.3-1~); however:
Package python3.5-minimal is not configured yet.
dpkg: error processing package python3-minimal (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python3.5-minimal
python3-minimal
E: Sub-process /usr/bin/dpkg returned an error code (1)
ha le akarom szedni a python3-t a francba, akkor:
You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: dconf-gsettings-backend : Depends: libglib2.0-0 (>= 2.44.0) but 2.42.1-1+deb8u3 is to be installed dconf-service : Depends: libglib2.0-0 (>= 2.44.0) but 2.42.1-1+deb8u3 is to be installed libdconf1 : Depends: libglib2.0-0 (>= 2.44.0) but 2.42.1-1+deb8u3 is to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
onmagaban a libglib meg nem hajlando upgrade-elodni, mer' hogy python:
$ sudo apt-get install libglib2.0-0 libglib2.0-bin libglib2.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
python3 : Depends: python3-minimal (= 3.4.2-2) but 3.5.3-1 is to be installed
python3-dev : Depends: python3 (= 3.5.3-1) but 3.4.2-2 is to be installed
Depends: libpython3-dev (= 3.5.3-1) but 3.4.2-2 is to be installed
Depends: python3.5-dev (>= 3.5.3-1~) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
hogy tudnam ezt megoldani, hogy vegre tovabbmenjen?
MOD:
A megoldas vegul az lett, hogy KEZZEL felraktam a letoltott .deb file-okat, aztan legyalultam nagynehezen a python3.5-ot, igy mar vegig tudott menni az upgrade \o/
Hozzászólások
Csak tipp, mert hasonló volt már nekem is Ubuntu alatt.
A /usr/bin alatt lévő symlinkekkel lehet gond, hogy vagy nem létező binánirsra mutat vagy nem arra amire kellene.
Futtasd ezeket:
- sudo update-alternatives --remove-all python
- sudo update-alternatives --remove-all python3
- töröld a python-os symlinkeket a /usr/bin alól, pl. @python és @python3
Aztán
- apt-get purge python python3
Ha sikerült leszedni, akkor mehet fel újra
- apt-get install python python3
Sajna ez sem jott be :(
nem tudom purge-gel leszedni a pythont, mert ugyanazt mondja:
https://genuinecoder.com/how-to-fix-trying-to-overwrite-which-is-also-i…
koszi, de ez mas problema, nem override a gond hanem a 'keresztbe' fuggosegek (azert probaltam az override-os opciokat, de nem segitett)
Ilyeneket ezzel es a force kapcsolóval rakok fel. Ritka az ilyen nálam, kb amikor több verziót átugorva frissítek.
Lehet ezzel nem fel kell raknod, hanem inkább pár dolgot leszedned első körben.
Az a baj hogy leszedni sem tudok semmit (ld a masik kommentre adott valaszomat), ugyanezt mondja arra is (az overwrite optionnal egyutt is):
Hogyan nez ki a sources.list-ed? Nem lehet, hogy az a baj, hogy "stable" van beleirva a disztro tenyleges neve helyett es idokozben, osszekeveredtek a csomagok az ujabb verzioval?
ez az egy sor van benne (commenteletlenul):
deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi
ugyanez volt eddig is, csak 'jessie' volt stretch helyett
Az lehet hogy a regi es uj csomagok osszekeveredtek, bar nem tudom hogyan es mitol...
volt sima update, upgrade, dist-upgrade 'jessie'-vel, aztan atirtam stretchre, es probaltam ugyanezt, de eloallt ez az allapot...
Nem-e volt korabban, a jessie idejen felrakva valami pl sid-bol?
Source-bol, apt-tal biztos nem, .deb-et is csak kb egyedul a plexet tettem fel meg anno. Szerintem mikor raflasheltem az SD kartyara, mar akkor is jessie kerult ra alapbol
Hany csomagod maradt fenn, ami jessiebol valo es ezek mik? Mert szerintem ott lesz a kutya elasva, hogy nem jol csinalodott a dist-upgrade. Egyebkent, nem kene az updatesnek meg a securitynek is benne lennie a sourcesben? Most nincs keznel debianbol jessie mar, illetve raspbiant sem lattam meg soha, csak megneztem egy up-to-date bullseye sources listjet.
szerk: Na, ezt vajon hogy sikerult magamnak valaszolni? :D
apt-get remove --purge --force-yes python3 python3-dev
--force-yes - ultimate weapon
--purge - a nyomát is hintse be sóval
elfailelt az ultimate weapon :D
jelenleg ott tartok hogy letoltottem kezzel a debeket a stretches libglib-hez, igy legalabb az fent mar, csak csak a pythont kene megfixalni kezzel, aztan jo lesz szerintem :)
Próbáltad levakarni ezt? libglib2.0-dev
nem lehet, fuggosege tobb masik csomagnak
-