{"id":513,"date":"2018-01-28T17:37:24","date_gmt":"2018-01-28T15:37:24","guid":{"rendered":"http:\/\/grenzdebiel.no-ip.biz\/?p=513"},"modified":"2018-01-28T17:39:26","modified_gmt":"2018-01-28T15:39:26","slug":"apt-error-update-binfmts-warning-unable","status":"publish","type":"post","link":"https:\/\/blog.grenzdebiel.dynv6.net\/?p=513","title":{"rendered":"apt error: update-binfmts: warning: unable&#8230;"},"content":{"rendered":"<p>Ich habe den Fehler beim upgrade eines Containers von ubuntu-zesty auf ubuntu-artful bekommen:<!--more--><\/p>\n<pre class=\"lang:default decode:true \">root@container:~# apt upgrade\r\nPaketlisten werden gelesen... Fertig\r\nAbh\u00e4ngigkeitsbaum wird aufgebaut.\r\nStatusinformationen werden eingelesen.... Fertig\r\nProbieren Sie \u00bbapt --fix-broken install\u00ab, um dies zu korrigieren.\r\nDie folgenden Pakete haben unerf\u00fcllte Abh\u00e4ngigkeiten:\r\n python3.5-minimal : H\u00e4ngt ab von: libpython3.5-minimal (= 3.5.3-1ubuntu0~17.04.2) ist aber nicht installierbar\r\n                     Empfiehlt: python3.5 ist aber nicht installierbar\r\nE: Unerf\u00fcllte Abh\u00e4ngigkeiten. Versuchen Sie \u00bbapt --fix-broken install\u00ab ohne Angabe eines Pakets (oder geben Sie eine L\u00f6sung an).<\/pre>\n<p>Englisch:<\/p>\n<pre class=\"lang:default decode:true\">root@container:~# apt upgrade\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nYou might want to run 'apt --fix-broken install' to correct these.\r\nThe following packages have unmet dependencies:\r\n python3.5-minimal : Depends: libpython3.5-minimal (= 3.5.3-1ubuntu0~17.04.2) but it is not installable\r\n                     Recommends: python3.5 but it is not installable\r\nE: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).<\/pre>\n<p>Der Versuch den Fehler mittels &#8222;apt &#8211;fix-broken install&#8220; zu l\u00f6sen ergab folgendes:<\/p>\n<pre class=\"lang:default decode:true \">root@container:~# apt --fix-broken install\r\nPaketlisten werden gelesen... Fertig\r\nAbh\u00e4ngigkeitsbaum wird aufgebaut.\r\nStatusinformationen werden eingelesen.... Fertig\r\nAbh\u00e4ngigkeiten werden korrigiert ... Fertig\r\nDie folgenden Pakete werden ENTFERNT:\r\n  python3.5-minimal\r\n0 aktualisiert, 0 neu installiert, 1 zu entfernen und 0 nicht aktualisiert.\r\nNach dieser Operation werden 9.639 kB Plattenplatz freigegeben.\r\nM\u00f6chten Sie fortfahren? [J\/n] j\r\n(Lese Datenbank ... 56173 Dateien und Verzeichnisse sind derzeit installiert.)\r\nEntfernen von python3.5-minimal (3.5.3-1ubuntu0~17.04.2) ...\r\nUnlinking and removing bytecode for runtime python3.5\r\nE: py3clean:65: cannot find magic tag for Python 3.5: python3.5 -c 'import imp; print(imp.get_tag())' failed with status code 134\r\nupdate-binfmts: warning: unable to open \/proc\/sys\/fs\/binfmt_misc\/python3.5 for writing: Permission denied\r\nupdate-binfmts: warning: unable to disable binary format python3.5\r\nupdate-binfmts: exiting due to previous errors\r\ndpkg: Fehler beim Bearbeiten des Paketes python3.5-minimal (--remove):\r\n Unterprozess installiertes pre-removal-Skript gab den Fehlerwert 2 zur\u00fcck\r\nFehler traten auf beim Bearbeiten von:\r\n python3.5-minimal\r\nE: Sub-process \/usr\/bin\/dpkg returned an error code (1)<\/pre>\n<p>Englisch:<\/p>\n<pre class=\"lang:default decode:true \">root@container:~# apt --fix-broken install\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nCorrecting dependencies... Done\r\nThe following packages will be REMOVED:\r\n  python3.5-minimal\r\n0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.\r\nAfter this operation, 9639 kB disk space will be freed.\r\nDo you want to continue? [Y\/n] y\r\n(Reading database ... 56173 files and directories currently installed.)\r\nRemoving python3.5-minimal (3.5.3-1ubuntu0~17.04.2) ...\r\nUnlinking and removing bytecode for runtime python3.5\r\nE: py3clean:65: cannot find magic tag for Python 3.5: python3.5 -c 'import imp; print(imp.get_tag())' failed with status code 134\r\nupdate-binfmts: warning: unable to open \/proc\/sys\/fs\/binfmt_misc\/python3.5 for writing: Permission denied\r\nupdate-binfmts: warning: unable to disable binary format python3.5\r\nupdate-binfmts: exiting due to previous errors\r\ndpkg: error processing package python3.5-minimal (--remove):\r\n subprocess installed pre-removal script returned error exit status 2\r\nErrors were encountered while processing:\r\n python3.5-minimal\r\nE: Sub-process \/usr\/bin\/dpkg returned an error code (1)<\/pre>\n<p>Um das Problem zu l\u00f6sen m\u00fcsst ihr im Pfad &#8222;\/var\/lib\/dpkg\/info\/&#8220; das Skript bearbeiten welches den Fehler verursacht bei mir ist es &#8222;\/var\/lib\/dpkg\/info\/python3.5-minimal.prerm&#8220;. Die L\u00f6sung funktioniert auch f\u00fcr andere Pakete\/Programme.<\/p>\n<p>Kommentiert den Teil aus welcher das Problem verursacht, bei mir:<\/p>\n<pre class=\"lang:default decode:true\">root@container:~# vim \/var\/lib\/dpkg\/info\/python3.5-minimal.prerm<\/pre>\n<p>Den folgenden Abschnitt auskommentieren, aus:<\/p>\n<pre class=\"lang:sh decode:true\">if which update-binfmts &gt;\/dev\/null; then\r\n            update-binfmts --package python3.5 --remove python3.5 \/usr\/bin\/python3.5\r\nfi<\/pre>\n<p>macht ihr das:<\/p>\n<pre class=\"lang:sh decode:true\">#if which update-binfmts &gt;\/dev\/null; then\r\n#            update-binfmts --package python3.5 --remove python3.5 \/usr\/bin\/python3.5\r\n#fi<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ich habe den Fehler beim upgrade eines Containers von ubuntu-zesty auf ubuntu-artful bekommen:<\/p>\n","protected":false},"author":3,"featured_media":514,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,43,27,9,12],"tags":[137,140,139,138],"class_list":["post-513","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein","category-cubietruck","category-linux","category-raspberry-pi","category-software-pi","tag-apt-fix-broken-install","tag-dpkg-error-processing-package-python3-5-minimal-remove","tag-update-binfmts-warning-unable-to-open-proc-sys-fs-binfmt_misc-for-writing-permission-denied","tag-update-binfmts-warning-unable-to-open-proc-sys-fs-binfmt_misc-python3-5-for-writing-permission-denied"],"_links":{"self":[{"href":"https:\/\/blog.grenzdebiel.dynv6.net\/index.php?rest_route=\/wp\/v2\/posts\/513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.grenzdebiel.dynv6.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.grenzdebiel.dynv6.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.grenzdebiel.dynv6.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.grenzdebiel.dynv6.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=513"}],"version-history":[{"count":0,"href":"https:\/\/blog.grenzdebiel.dynv6.net\/index.php?rest_route=\/wp\/v2\/posts\/513\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.grenzdebiel.dynv6.net\/index.php?rest_route=\/wp\/v2\/media\/514"}],"wp:attachment":[{"href":"https:\/\/blog.grenzdebiel.dynv6.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.grenzdebiel.dynv6.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.grenzdebiel.dynv6.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}