What happened with my apt?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • What happened with my apt?

      So after my hollydays i came back home and wanted to upgrade OMV. The GUI listed a bunch of updates but after trying to update via the GUI i got the "Something went wrong" window.
      I then went on to try and update via console and was greeted by this:

      Source Code

      1. root@fvmnas:~# apt-get upgrade
      2. Paketlisten werden gelesen... Fertig
      3. Abhängigkeitsbaum wird aufgebaut.
      4. Statusinformationen werden eingelesen.... Fertig
      5. Paketaktualisierung (Upgrade) wird berechnet... Fertig
      6. Die folgenden Pakete sind zurückgehalten worden:
      7. clamav-base clamav-daemon clamav-freshclam clamdscan zfs-dkms zfs-zed zfsutils-linux
      8. Die folgenden Pakete werden aktualisiert (Upgrade):
      9. libglib2.0-dev
      10. 1 aktualisiert, 0 neu installiert, 0 zu entfernen und 7 nicht aktualisiert.
      11. 64 nicht vollständig installiert oder entfernt.
      12. Es müssen noch 0 B von 2.983 kB an Archiven heruntergeladen werden.
      13. Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
      14. Möchten Sie fortfahren? [J/n] y
      15. (Lese Datenbank ... 334405 Dateien und Verzeichnisse sind derzeit installiert.)
      16. Vorbereitung zum Entpacken von .../libglib2.0-dev_2.50.3-2+deb9u1_amd64.deb ...
      17. Traceback (most recent call last):
      18. File "/usr/bin/py3clean", line 24, in <module>
      19. import logging
      20. File "/usr/lib/python3.5/logging/__init__.py", line 723, in <module>
      21. _handlers = weakref.WeakValueDictionary() #map of handler names to handlers
      22. File "/usr/lib/python3.5/weakref.py", line 118, in __init__
      23. _atomic_removal(d, wr.key)
      24. NameError: name '_atomic_removal' is not defined
      25. dpkg: Warnung: Unterprozess altes pre-removal-Skript gab den Fehlerwert 1 zurück
      26. dpkg: stattdessen wird Skript aus dem neuen Paket probiert ...
      27. Traceback (most recent call last):
      28. File "/usr/bin/py3clean", line 24, in <module>
      29. import logging
      30. File "/usr/lib/python3.5/logging/__init__.py", line 723, in <module>
      31. _handlers = weakref.WeakValueDictionary() #map of handler names to handlers
      32. File "/usr/lib/python3.5/weakref.py", line 118, in __init__
      33. _atomic_removal(d, wr.key)
      34. NameError: name '_atomic_removal' is not defined
      35. dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/libglib2.0-dev_2.50.3-2+deb9u1_amd64.deb (--unpack):
      36. Unterprozess neues pre-removal-Skript gab den Fehlerwert 1 zurück
      37. Traceback (most recent call last):
      38. File "/usr/bin/py3compile", line 25, in <module>
      39. import logging
      40. File "/usr/lib/python3.5/logging/__init__.py", line 723, in <module>
      41. _handlers = weakref.WeakValueDictionary() #map of handler names to handlers
      42. File "/usr/lib/python3.5/weakref.py", line 118, in __init__
      43. _atomic_removal(d, wr.key)
      44. NameError: name '_atomic_removal' is not defined
      45. dpkg: Fehler beim Aufräumen:
      46. Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1 zurück
      47. Fehler traten auf beim Bearbeiten von:
      48. /var/cache/apt/archives/libglib2.0-dev_2.50.3-2+deb9u1_amd64.deb
      49. Traceback (most recent call last):
      50. File "/usr/sbin/omv-mkaptidx", line 91, in <module>
      51. cache = apt.cache.Cache()
      52. File "/usr/lib/python3/dist-packages/apt/cache.py", line 83, in __init__
      53. self._weakref = weakref.WeakValueDictionary()
      54. File "/usr/lib/python3.5/weakref.py", line 118, in __init__
      55. _atomic_removal(d, wr.key)
      56. NameError: name '_atomic_removal' is not defined
      57. E: Sub-process /usr/bin/dpkg returned an error code (1)
      Display All
      anybody got an idea what is going on and how i fix this mess?
      helb would be appreciated :)
    • I wonder why it is still not fixed...

      I just setup a new ODROID hc2 and DLed the latest image from sourgeforge and ran into the same issue.

      fix: (as root)


      Shell-Script

      1. wget -O /usr/lib/python3.5/weakref.py https://raw.githubusercontent.com/python/cpython/9cd7e17640a49635d1c1f8c2989578a8fc2c1de6/Lib/weakref.py
      I had to start over with etching an SD card since the unfinished dpkg -i process made my ssh logins impossible.

      OOPS: seems to be still in the repos
      After a dist-upgrade on my fresh install I hade to fix this again

      The post was edited 1 time, last by DHGE: seems to be a problem upstream in Debian ().

    • DHGE wrote:

      I wonder why it is still not fixed...

      I just setup a new ODROID hc2 and DLed the latest image from sourgeforge and ran into the same issue.

      fix: (as root)


      Shell-Script

      1. wget -O /usr/lib/python3.5/weakref.py https://raw.githubusercontent.com/python/cpython/9cd7e17640a49635d1c1f8c2989578a8fc2c1de6/Lib/weakref.py
      I had to start over with etching an SD card since the unfinished dpkg -i process made my ssh logins impossible.

      OOPS: seems to be still in the repos
      After a dist-upgrade on my fresh install I hade to fix this again
      Votdev doesn't "fix" things that aren't his to fix. It's a harmless python error. There's been multiple bug reports on this with the python devs... they've not fixed it yet (although it doesn't happen in OMV 5)
      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • Remove insserv with apt-get purge insserv

      DHGE wrote:

      you could force this via dpkg (although the error message sounds weird to me looking at the version numbers)
      No. Don't do this.
      omv 5.0.10 usul | 64 bit | 5.0 proxmox kernel | omvextrasorg 5.1.1
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      Remove insserv with apt-get purge insserv

      DHGE wrote:

      you could force this via dpkg (although the error message sounds weird to me looking at the version numbers)
      No. Don't do this.
      hmm that does not seem to help:

      Source Code

      1. Die folgenden Pakete werden ENTFERNT:
      2. init* initscripts* insserv* omvextras-netrc* openmediavault* openmediavault-backup* openmediavault-clamav*
      3. openmediavault-omvextrasorg* openmediavault-remotemount* openmediavault-resetperms* openmediavault-usbbackup*
      4. openmediavault-virtualbox* openmediavault-zfs* systemd-sysv* sysv-rc*
      5. Die folgenden NEUEN Pakete werden installiert:
      6. cgmanager libcgmanager0 libnih-dbus1 libnih1 systemd-shim
      7. WARNUNG: Die folgenden essentiellen Pakete werden entfernt.
      8. Dies sollte NICHT geschehen, außer Sie wissen genau, was Sie tun!
      9. init systemd-sysv (wegen init)
      10. 0 aktualisiert, 5 neu installiert, 15 zu entfernen und 20 nicht aktualisiert.
      11. Es müssen 367 kB an Archiven heruntergeladen werden.
      12. Nach dieser Operation werden 14,3 MB Plattenplatz freigegeben.
      13. Sie sind im Begriff, etwas potentiell Schädliches zu tun.
      14. Zum Fortfahren geben Sie bitte »Ja, tue was ich sage!« ein.
      Display All
      it seems like it wants to remove the whole omv system...
      any other clues?
      greetings
    • zfs depends on it. I don't have zfs on most of my systems. What is the output of:

      apt-get update
      apt-cache policy zfsutils-linux
      omv 5.0.10 usul | 64 bit | 5.0 proxmox kernel | omvextrasorg 5.1.1
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Source Code

      1. apt-get update
      2. Holen:1 file:/var/cache/openmediavault/archives InRelease
      3. Ign:1 file:/var/cache/openmediavault/archives InRelease
      4. Holen:2 file:/var/cache/openmediavault/archives Release
      5. Ign:2 file:/var/cache/openmediavault/archives Release
      6. Holen:3 file:/var/cache/openmediavault/archives Packages
      7. Ign:3 file:/var/cache/openmediavault/archives Packages
      8. Holen:4 file:/var/cache/openmediavault/archives Translation-en
      9. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      10. Holen:5 file:/var/cache/openmediavault/archives Translation-de_DE
      11. Ign:5 file:/var/cache/openmediavault/archives Translation-de_DE
      12. Holen:6 file:/var/cache/openmediavault/archives Translation-de
      13. Ign:6 file:/var/cache/openmediavault/archives Translation-de
      14. Holen:3 file:/var/cache/openmediavault/archives Packages
      15. Ign:3 file:/var/cache/openmediavault/archives Packages
      16. Holen:4 file:/var/cache/openmediavault/archives Translation-en
      17. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      18. Holen:5 file:/var/cache/openmediavault/archives Translation-de_DE
      19. Ign:5 file:/var/cache/openmediavault/archives Translation-de_DE
      20. Holen:6 file:/var/cache/openmediavault/archives Translation-de
      21. Ign:6 file:/var/cache/openmediavault/archives Translation-de
      22. Holen:3 file:/var/cache/openmediavault/archives Packages
      23. Ign:3 file:/var/cache/openmediavault/archives Packages
      24. Holen:4 file:/var/cache/openmediavault/archives Translation-en
      25. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      26. Holen:5 file:/var/cache/openmediavault/archives Translation-de_DE
      27. Ign:5 file:/var/cache/openmediavault/archives Translation-de_DE
      28. Holen:6 file:/var/cache/openmediavault/archives Translation-de
      29. Ign:6 file:/var/cache/openmediavault/archives Translation-de
      30. Holen:3 file:/var/cache/openmediavault/archives Packages
      31. Ign:3 file:/var/cache/openmediavault/archives Packages
      32. Holen:4 file:/var/cache/openmediavault/archives Translation-en
      33. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      34. Holen:5 file:/var/cache/openmediavault/archives Translation-de_DE
      35. Ign:5 file:/var/cache/openmediavault/archives Translation-de_DE
      36. Holen:6 file:/var/cache/openmediavault/archives Translation-de
      37. Ign:6 file:/var/cache/openmediavault/archives Translation-de
      38. Holen:3 file:/var/cache/openmediavault/archives Packages
      39. Ign:3 file:/var/cache/openmediavault/archives Packages
      40. Holen:4 file:/var/cache/openmediavault/archives Translation-en
      41. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      42. Holen:5 file:/var/cache/openmediavault/archives Translation-de_DE
      43. Ign:5 file:/var/cache/openmediavault/archives Translation-de_DE
      44. Holen:6 file:/var/cache/openmediavault/archives Translation-de
      45. Ign:6 file:/var/cache/openmediavault/archives Translation-de
      46. Holen:3 file:/var/cache/openmediavault/archives Packages
      47. Holen:4 file:/var/cache/openmediavault/archives Translation-en
      48. Ign:4 file:/var/cache/openmediavault/archives Translation-en
      49. Holen:5 file:/var/cache/openmediavault/archives Translation-de_DE
      50. Ign:5 file:/var/cache/openmediavault/archives Translation-de_DE
      51. Holen:6 file:/var/cache/openmediavault/archives Translation-de
      52. Ign:6 file:/var/cache/openmediavault/archives Translation-de
      53. OK:7 http://packages.openmediavault.org/public arrakis InRelease
      54. Ign:8 http://ftp.halifax.rwth-aachen.de/debian stretch InRelease
      55. Holen:9 http://security.debian.org stretch/updates InRelease [94,3 kB]
      56. OK:10 http://ftp.halifax.rwth-aachen.de/debian stretch-updates InRelease
      57. OK:11 http://ftp.halifax.rwth-aachen.de/debian stretch Release
      58. OK:12 https://openmediavault.github.io/packages arrakis InRelease
      59. Ign:13 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch InRelease
      60. Holen:14 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release [4.389 B]
      61. Holen:15 http://security.debian.org stretch/updates/main Sources [189 kB]
      62. OK:14 https://dl.bintray.com/openmediavault-plugin-developers/arrakis stretch Release
      63. Holen:16 http://security.debian.org stretch/updates/main amd64 Packages [497 kB]
      64. Holen:18 http://security.debian.org stretch/updates/main Translation-en [219 kB]
      65. OK:20 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
      66. Es wurden 999 kB in 0 s geholt (1.641 kB/s).
      67. Paketlisten werden gelesen... Fertig
      Display All

      Source Code

      1. apt-cache policy zfsutils-linux
      2. zfsutils-linux:
      3. Installiert: 0.7.12-1~bpo9+1
      4. Installationskandidat: 0.7.12-2+deb10u1~bpo9+1
      5. Versionstabelle:
      6. 0.7.12-2+deb10u1~bpo9+1 500
      7. 100 http://httpredir.debian.org/debian stretch-backports/contrib amd64 Packages
      8. *** 0.7.12-1~bpo9+1 100
      9. 100 /var/lib/dpkg/status

      thanks for the help
      greetings