[megoldva] Raspbian/apt fuggoseg-kavarodas

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:

 

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:
 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)

Az a baj hogy leszedni sem tudok semmit (ld a masik kommentre adott valaszomat), ugyanezt mondja arra is (az overwrite optionnal egyutt is):

 

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

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...

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

 

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libglib2.0-dev : Depends: python3:any (>= 3.3.2-2~)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

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 :)

Szerkesztve: 2022. 10. 01., szo – 18:45

-