FHEM Forum

FHEM - Hardware => Einplatinencomputer => Thema gestartet von: Ajuba am 04 Januar 2019, 20:31:48

Titel: CPAN statt apt-get install -> Fhem hängt
Beitrag von: Ajuba am 04 Januar 2019, 20:31:48
Ich habe bei Versuchen mit dem DLNARenderer blöderweise versucht die geforderten Perlpakete SOAP::Lite, LWP::Simple, XML::Simple, XML::Parser::Lite und LWP::UserAgent per CPAN zu installieren. Gleich bei SOAP::Lite bin ich bei der Frage nach einem Apache Server gescheitert und es hat ewig gedauert. Natürlich funktioniert der DLNARenderer nicht und Fhem wird elends langsam und kann nur durch Raspi Neustart wieder zum Leben erweckt werden.
Ich habe erst nachher entdeckt, dass von CPAN eher abgeraten wird und apt-get install empfohlen wird.

Meine bisherigen Reparaturversuche mit apt-get update und upgrade sowie apt-get install für evt. richtige Pakete waren bisher ohne Erfolg.
Bereits apt-get update liefert auch folgendes Problem und endet dann.
W: Failed to fetch https://debian.fhem.de/stable/./Packages  HttpError403

W: Failed to fetch https://debian.fhem.de/./Packages  HttpError403

E: Some index files failed to download. They have been ignored, or old ones used instead.


Bei meinen vorhandenen Fhem Modulen fällt mir auf, dass Twilight nun keine Wetterdaten mehr bekommt, also offensichtlich ein benötigtes Perl Modul beschädigt ist.

1. Wo finde ich zu den benötigten Perl Modulen die richtigen Paketnamen für apt-get Installationen?
Ich stolpere im Internet immer nur über einzelne Hinweise mit zweifelhaften Hintergrund.
2. Wie kann ich die CPAN Installation rückgängig machen und alles reparieren? Es gibt bei CPAN ja offensichtlich kein echtes deinstallieren.

Hat jemand ein Lösung?
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: KölnSolar am 04 Januar 2019, 21:01:25
ZitatBei meinen vorhandenen Fhem Modulen fällt mir auf, dass Twilight nun keine Wetterdaten mehr bekommt, also offensichtlich ein benötigtes Perl Modul beschädigt ist.
Das hat nichts mit Deinem Problem zu tun, sondern ist bei allen so. Dienst seitens Yahoo eingestellt.  :'(

Ansonsten kennst Du ja meine Meinung, aber vielleicht guckt hier ein Debian-Experte drüber.  ;)
das
ZitatW: Failed to fetch https://debian.fhem.de/stable/./Packages  HttpError403

W: Failed to fetch https://debian.fhem.de/./Packages  HttpError403
kenne ich so nicht. Bezieht sich aber wohl nur auf FHEM.
Andere Meldungen bekommst Du nicht ?


Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Ajuba am 04 Januar 2019, 21:35:29
Das mit Yahoo hat ja super reingepasst. Ist bei mir genau gestern Abend gekommen nachdem ich meine Tests startete. Naja, wenigstens habe ich nichts bestehendes zerschossen.

Hier die volle Antwort auf den Update Befehl

pi@raspberrypi:/$ sudo apt-get update
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Get:1 https://debian.fhem.de ./ InRelease
Ign https://debian.fhem.de ./ InRelease
Get:2 https://debian.fhem.de ./ InRelease
Ign https://debian.fhem.de ./ InRelease
Get:3 https://debian.fhem.de ./ Release.gpg
Ign https://debian.fhem.de ./ Release.gpg
Get:4 https://debian.fhem.de ./ Release.gpg
Ign https://debian.fhem.de ./ Release.gpg
Get:5 https://debian.fhem.de ./ Release
Ign https://debian.fhem.de ./ Release
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Get:6 https://debian.fhem.de ./ Release
Ign https://debian.fhem.de ./ Release
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Get:7 https://debian.fhem.de ./ Packages
Get:8 https://debian.fhem.de ./ Translation-en_GB
Get:9 https://debian.fhem.de ./ Translation-en
Get:10 https://debian.fhem.de ./ Packages
Get:11 https://debian.fhem.de ./ Translation-en_GB
Get:12 https://debian.fhem.de ./ Translation-en
Get:13 https://debian.fhem.de ./ Packages
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Get:14 https://debian.fhem.de ./ Translation-en_GB
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Get:15 https://debian.fhem.de ./ Translation-en
Get:16 https://debian.fhem.de ./ Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Get:17 https://debian.fhem.de ./ Translation-en_GB
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Get:18 https://debian.fhem.de ./ Translation-en
Ign http://archive.raspberrypi.org jessie/main Translation-en
Get:19 https://debian.fhem.de ./ Packages
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Get:20 https://debian.fhem.de ./ Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Get:21 https://debian.fhem.de ./ Translation-en
Get:22 https://debian.fhem.de ./ Packages
Get:23 https://debian.fhem.de ./ Translation-en_GB
Get:24 https://debian.fhem.de ./ Translation-en
Get:25 https://debian.fhem.de ./ Packages
Get:26 https://debian.fhem.de ./ Translation-en_GB
Get:27 https://debian.fhem.de ./ Translation-en
Get:28 https://debian.fhem.de ./ Packages
Get:29 https://debian.fhem.de ./ Translation-en_GB
Get:30 https://debian.fhem.de ./ Translation-en
Get:31 https://debian.fhem.de ./ Packages
Err https://debian.fhem.de ./ Packages
  HttpError403
Get:32 https://debian.fhem.de ./ Translation-en_GB
Ign https://debian.fhem.de ./ Translation-en_GB
Get:33 https://debian.fhem.de ./ Translation-en
Ign https://debian.fhem.de ./ Translation-en
Get:34 https://debian.fhem.de ./ Packages
Err https://debian.fhem.de ./ Packages
  HttpError403
Get:35 https://debian.fhem.de ./ Translation-en_GB
Ign https://debian.fhem.de ./ Translation-en_GB
Get:36 https://debian.fhem.de ./ Translation-en
Ign https://debian.fhem.de ./ Translation-en
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
W: Failed to fetch https://debian.fhem.de/stable/./Packages  HttpError403

W: Failed to fetch https://debian.fhem.de/./Packages  HttpError403

E: Some index files failed to download. They have been ignored, or old ones used instead.


Ich habe keine Ahnung was da noch Wertvolles kommen sollte.
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Otto123 am 04 Januar 2019, 21:42:12
Hi,

zu 1. https://packages.debian.org

Du hast offenbar einen Fehler in der /etc/apt/sources.list ???

Installation FHEM siehe hier https://debian.fhem.de/

zu 2. Ich denke nicht, dass dort wirklich ein Problem ist

Gruß Otto
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Christoph Morrison am 04 Januar 2019, 21:45:39
Zitat von: Ajuba am 04 Januar 2019, 20:31:48
W: Failed to fetch https://debian.fhem.de/./Packages  HttpError403

Das ist nicht die aktuelle Quelle, AFAIK.

Zitat von: Ajuba am 04 Januar 2019, 20:31:48
1. Wo finde ich zu den benötigten Perl Modulen die richtigen Paketnamen für apt-get Installationen?

apt-get search und dann z.B. nach soap suchen und ggf. auf lib greppen.

Zitat von: Ajuba am 04 Januar 2019, 20:31:48
2. Wie kann ich die CPAN Installation rückgängig machen und alles reparieren? Es gibt bei CPAN ja offensichtlich kein echtes deinstallieren.

Mit CPANPLUS, bzw. dessen Shell cpanp. Das CPANPLUS bietet eine uninstall-Funktion.
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Ajuba am 04 Januar 2019, 22:11:08
Gleich mal Danke für alle Tips.

Otto,
in meiner Sources list steht
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free r$
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb https://debian.fhem.de/stable ./
deb https://debian.fhem.de/stable ./
deb https://debian.fhem.de/stable ./
deb https://debian.fhem.de ./
deb https://debian.fhem.de ./
deb https://debian.fhem.de ./


Ich habe die Datei meines Wissens seit der Fhem Installation nie angefasst.
Keine Ahnung warum das jeweils 3 mal drinnen steht.

Soll laut https://debian.fhem.de/ (https://debian.fhem.de/) das rein und zwar nur 1x ? Korrekt?
deb http://debian.fhem.de/nightly/ /

Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Otto123 am 04 Januar 2019, 22:27:29
fast :) lösche also bitte die letzten 6 Zeilen raus.

Das Setup von FHEM löscht diese Zeile deb http://debian.fhem.de/nightly/ /normalerweise nach dem Setup wieder raus.
Du hast FHEM jetzt schon installiert. Also lösche bitte einfach die letzten 6 Zeilen.

Gruß Otto
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Ajuba am 04 Januar 2019, 23:18:06
Danke Otto
Macht Sinn. Hab mich eh schon gefragt, wozu Fhem da noch drin stehen soll.
Läuft jetzt ohne Probleme durch.

Danke
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Ajuba am 04 Januar 2019, 23:43:04
Christoph, Danke für den Tip
Zitat von: Christoph Morrison am 04 Januar 2019, 21:45:39
apt-get search und dann z.B. nach soap suchen und ggf. auf lib greppen.

Ich denke, apt-cache search soap war gemeint.

Aber selbst die Eingrenzung auf lib (falls ich das richtig gemacht habe) bringt über 60 Einträge daher habe ich probiert folgendermaßen einzugrenzen. Hier gleich alle benötigten Module und meine Idee was zu installieren ist. Ganz klar ist mir das nicht immer.
Kannst du bitte so nett sein und meine Einschätzungen zu überprüfen und zu korrigieren? - Danke

SOAP::Lite
pi@raspberrypi:/etc/apt$ sudo apt-cache search 'soap' | grep 'lib' | grep 'lite'
libsoap-lite-perl - Perl implementation of a SOAP client and server
libxmlrpc-lite-perl - client and server implementation of the XML-RPC protocol

Ich nehme "libsoap-lite-perl"

LWP::Simple
pi@raspberrypi:/etc/apt$ sudo apt-cache search 'lwp' | grep 'simple'
libhijk-perl - simple perl module for easily accessing HTTP services
libhttp-tiny-perl - Perl module that implements a small, simple, correct HTTP/1.1 client
libnet-https-any-perl - simple wrapper around the two available SSL modules
libwww-perl - simple and consistent interface to the world-wide web

Ich vermute "libwww-perl"

XML::Simple
pi@raspberrypi:/etc/apt$ sudo apt-cache search 'XML' | grep 'lib' | grep 'simple'
libanydata-perl - simple tied hash interface for files and data structures
libcipux-rbac-simple-perl - simple role-based access control functions for CipUX
libdbus-1-3 - simple interprocess messaging system (library)
libghc-xml-dev - A simple Haskell XML library
libghc-xml-doc - A simple Haskell XML library; documentation
libghc-xml-prof - A simple Haskell XML library; profiling libraries
libgtk2-gladexml-simple-perl - clean object-oriented perl interface to Gtk2::GladeXML
libkxmlrpcclient4 - simple XML-RPC client library
libmygui-dev - Fast, simple and flexible GUI for OpenMW - development files
libmygui.ogreplatform0debian1 - Fast, simple and flexible GUI - Ogre interface
libmygui.ogreplatform0debian1-dbg - Fast, simple and flexible GUI Ogre - debugging symbols
libmygui.openglplatform0debian1 - Fast, simple and flexible GUI - OpenGL interface
libmygui.openglplatform0debian1-dbg - Fast, simple and flexible GUI OpenGL - debugging symbols
libmyguiengine3debian1 - Fast, simple and flexible GUI - shared library
libmyguiengine3debian1-dbg - Fast, simple and flexible GUI - debugging symbols
libreadosm-dev - simple library to parse OpenStreetMap files - headers
libreadosm-doc - simple library to parse OpenStreetMap files - documentation
libreadosm1 - simple library to parse OpenStreetMap files
libreadosm1-dbg - simple library to parse OpenStreetMap files - debug symbols
libsimple-xml-java - A XML serialization and configuration framework for Java
libsimple-xml-java-doc - API Documentation for libsimple-xml-java
libtest-xml-simple-perl - Perl testing framework for XML data
libxml-atom-simplefeed-perl - Perl module for generation of Atom syndication feeds
libxml-libxml-simple-perl - Perl module that uses the XML::LibXML parser for XML structures
libxml-namespace-perl - simple support for XML namespaces
libxml-namespacefactory-perl - simple factory objects for SAX namespaced names
libxml-namespacesupport-perl - Perl module for supporting simple generic namespaces
libxml-opml-simplegen-perl - module for creating OPML using XML::Simple
libxml-rss-simplegen-perl - Perl module for easily writing RSS files
libxml-simple-perl - Perl module for reading and writing XML
libxml-simple-ruby - Transitional package for ruby-xml-simple
libxml-simpleobject-enhanced-perl - Perl module which enhances libxml-simpleobject-perl
libxml-simpleobject-libxml-perl - Simple oo representation of an XML::LibXML DOM object
libxml-simpleobject-perl - Objectoriented Perl interface to a parsed XML::Parser tree
libxml-writer-simple-perl - simple API to create XML files

Da wird es schon viel schwieriger und ich tippe auf eines dieser 3. Welches ist es?
libkxmlrpcclient4 - simple XML-RPC client library
libxml-libxml-simple-perl - Perl module that uses the XML::LibXML parser for XML structures
libxml-simple-perl - Perl module for reading and writing XML

XML::Parser::Lite
pi@raspberrypi:/etc/apt$ sudo apt-cache search 'XML' | grep 'lib' | grep 'parser' | grep 'lite'
libxml-parser-lite-perl - lightweight regexp-based XML parser
libxml-parser-lite-tree-perl - lightweight XML tree builder
libxml-rsslite-perl - lightweight, "relaxed" RSS (and XML-ish) parser

Ich vermute "libxml-parser-lite-perl - lightweight regexp-based XML parser"

LWP::UserAgent
pi@raspberrypi:/etc/apt$ sudo apt-cache search 'LWP' | grep 'lib' | grep 'UserAgent'
liblwp-protocol-https-perl - HTTPS driver for LWP::UserAgent
liblwpx-paranoidagent-perl - a "paranoid" subclass of LWP::UserAgent

Ich vermute "liblwp-protocol-https-perl"
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Otto123 am 05 Januar 2019, 00:07:15
Ich habe da eine Liste Stück um Stück gefüllt. Kommt jetzt hier nicht so schön formatiert. Ist aber erkennbar.
00_HMLAN.pm   
00_HMUARTLGW.pm    Crypt::Rijndael libcrypt-rijndael-perl
00_SONOS.pm      Digest::SHA1 SOAP::Lite XML::Parser::Lite Net::UPNP libdigest-sha-perl libsoap-lite-perl libxml-parser-lite-perl libnet-upnp-perl samba
01_FHEMWEB.pm 
02_RSS.pm    libgd-graph-perl libgd-text-perl libimage-librsvg-perl msttcorefonts
10_CUL_HM.pm 
21_SONOSPLAYER.pm  LWP::Simple LWP::UserAgent SOAP::Lite HTTP::Request libsoap-lite-perl libwww-perl libxml-parser-lite-perl oder libxml-parser-perl
33_readingsGroup.pm 
34_ESPEasy.pm  JSON libjson-perl
42_SYSMON.pm  Net::Telnet libnet-telnet-perl
55_InfoPanel.pm MIME::Base64 Image::Info libmime-base64-perl libimage-info-perl
59_Twilight.pm   
70_ENIGMA2.pm   
72_FB_CALLMONITOR.pm
72_FRITZBOX.pm  Net::Telnet JSON::XS LWP SOAP::Lite libnet-telnet-perl libjson-xs-perl liblwp-useragent-determined-perl libsoap-lite-perl
72_XiaomiDevice JSON Digest::MD5 Crypt::CBC Crypt::ECB Crypt::Cipher::AES oder Crypt::Rijndael_PP libjson-perl libdigest-md5-perl libcrypt-cbc-perl libcrypt-ecb-perl die rote gibt es nur über CPAN
73_ElectricityCalculator.pm
73_PRESENCE.pm bluez
90_at.pm
91_eventTypes.pm 
91_notify.pm   
91_sequence.pm   
91_watchdog.pm 
92_FileLog.pm   
93_FHEM2FHEM.pm 
93_RFHEM.pm 
95_holiday.pm   
95_remotecontrol.pm
96_allowed.pm
98_ArduCounter.pm Device::SerialPort avrdude 
98_autocreate.pm
98_cmdalias.pm
98_dewpoint.pm
98_DOIF.pm
98_dummy.pm 
98_help.pm 
98_HMinfo.pm   
98_HTTPMOD.pm     
98_Modbus.pm 
98_structure.pm
98_SVG.pm   
98_telnet.pm 
98_Text2Speech.pm  Digest::SHA1 mplayer libdigest-sha-perl mp3wrap Austausch mplayer mit play
98_THRESHOLD.pm
98_update.pm 
98_version.pm 
98_weblink.pm     
98_WOL.pm      Net::Wake ist vorhanden
99_SUNRISE_EL.pm 
99_Utils.pm   
Blocking.pm   
Color.pm       
Common.pm     
ControlPoint.pm 
DevIo.pm       
fhem.pl libdbi-perl libdbd-sqlite3-perl libdevice-serialport-perl libwww-perl libio-socket-ssl-perl libtext-diff-perl sqlite3
FritzBoxUtils.pm 
HMConfig.pm   
HttpUtils.pm   
Info.pm         
RTypes.pm       
SetExtensions.pm   
TcpServerUtils.pm

sendEmail sendemail libio-socket-ssl-perl libnet-ssleay-perl
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Ajuba am 05 Januar 2019, 00:37:40
Danke Otto
Das ist schon sehr hilfreich aber ganz krieg ich es doch nicht zusammen und bei einigen bin ich mir unsicher ob ich richtig zugeordnet habe

SOAP::Lite -> libsoap-lite-perl
LWP::Simple -> libwww-perl
XML::Simple -> ???
XML::Parser::Lite -> libxml-parser-lite-perl
LWP::UserAgent  -> libwww-perl
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Otto123 am 05 Januar 2019, 01:00:55
Ich denke das passt.
Und der hier -> https://packages.debian.org/de/stretch/libxml-simple-perl
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Ajuba am 05 Januar 2019, 20:16:55
Danke für die Hilfe. Offensichtlich hatte ich diese Module schon aktuell drauf und der DLNARenderer geht noch immer nicht :(
Aber das kläre ich jetzt in dem anderen Thread wo ich Hilfe angeboten bekommen habe.

Die Sache mit CPANPLUS lasse ich vorerst mal da ich das ja wieder extra installieren müsste und gar nicht sicher bin, ob die cpan Installation überhaupt Schuld ist.

DANKE
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 28 Juni 2020, 17:21:26
Es gibt zwei Pakete, bei denen es anscheinend kein apt-get Paket gibt:
ZitatProtocol::WebSocket::Handshake::Server
Statistics::Descriptive
Da muss ich nun auf CPAN ausweichen. Ich hatte mir mit einem Datenbankbefehl meine alte Installation zerschossen, also alles neu aufgesetzt und dabei anscheinend Mist gebaut. Denn CPAN meldet nach sehr, sehr langer Zeit
cpan[1]> install Statistics::Descriptive
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/home/pi/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/home/pi/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Sun, 28 Jun 2020 14:29:02 GMT
.............
  New CPAN.pm version (v2.28) available.
  [Currently running version is v2.20]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.

........................................................................Getötet

Da kann man nur neu installieren, oder?
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Otto123 am 28 Juni 2020, 18:21:00
Hi,

ich habe nicht viel Ahnung von cpan - aber:
1. hast Du als sudo ausgeführt?
2. hast Du das probiert was er schreibt?
- cpan
     install CPAN
     reload cpan

Gruß Otto
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 28 Juni 2020, 18:48:06
ja, genau. Also sudo und dann wollte ich updaten und das war es dann.
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Otto123 am 28 Juni 2020, 18:57:41
Bist Du sicher?
- wenn ich sudo cpan starte dann kommt anschließend bei der Installation:
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
und nicht /home/pi/  :o wie in deiner Fehlermeldung!

Gruß Otto
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 28 Juni 2020, 19:31:20
Ich habe das gleich nochmal probiert - jetzt erscheint auch '/root/ usw'. Seitdem steht allerdings der Cursor und das Gerät ist nicht erreichbar
cpan[1]> install CPAN
Fetching with LWP:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/root/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with LWP:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/root/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Sun, 28 Jun 2020 16:17:02 GMT
.............
  New CPAN.pm version (v2.28) available.
  [Currently running version is v2.20]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.

.................................................

Da ist irgendwo der Wurm drin. Ich tendiere zu kompletter Neuinstallation.

<edit> Load 22.
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Otto123 am 28 Juni 2020, 19:41:53
Also meine Meinung: cpan ist ne Zicke!
Ich habe festgestellt: wenn man die Zeile per Copy&Paste einfügt: macht er irgendwas - "sinnloses".
Wenn ich den Befehl eintippe (CPAN groß) dann installiert er wirklich - sieht in etwa so aus.
cpan[2]> install CPAN
Running install for module 'CPAN'
Checksum for /root/.cpan/sources/authors/id/A/AN/ANDK/CPAN-2.28.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Argument "1.4417_001" isn't numeric in numeric ge (>=) at /usr/local/share/perl/5.24.1/CPAN/Distribution.pm line 651.
Configuring A/AN/ANDK/CPAN-2.28.tar.gz with Makefile.PL
Importing PAUSE public key into your GnuPG keychain... done!
(You may wish to trust it locally with 'gpg --lsign-key 450F89EC')
.....

Danach geht reload und CPAN ist aktuell. Aber ob das Dein Problem wirklich löst?
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 28 Juni 2020, 20:01:33
Absolute Zicke. Ich habe die Großschreibung genommen. Nee, da ist irgendwas unten faul, ich werfe das alles raus. (Man muss die Großschreibung nehmen, weil Perl ja zwischen cpan und CPAN unterscheidet.)
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Otto123 am 28 Juni 2020, 20:06:42
Zitat von: andies am 28 Juni 2020, 20:01:33
... weil Perl ja zwischen cpan und CPAN unterscheidet.)
ja klar, deswegen schreibt man erst install CPAN und dann reload cpan  :o ;D

egal, wenn es dauerhaft nicht geht - ich weiß keinen Weg es mikrochirurgisch zu heilen :)
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Wernieman am 28 Juni 2020, 20:07:22
Hast DU gesehen, das er ein CPAN-Update bei Dir anbietet?
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 28 Juni 2020, 20:12:54
Ja, habe ich - das problem ist eher Load 22 und die ewige Ladezeit. Da ist etwas faul.

Das hat natürlich eine Ursache, die ich im Forum geflissentlich verschweige: Ich hatte ein update schon mal abgebrochen, weil das eine halbe Stunde dauerte. Ich nehme an, da hat er sich Covid-19 eingefangen, jetzt hustet er vor sich hin.
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Wernieman am 28 Juni 2020, 21:01:20
<Scherz>
SOFORT STILLEGEN .... Nicht das Du noch 14 Tage in Quarantäne musst ....
</Scherz>

Aber mal ernsthaft: Welcher Prozess erzeugt bei Dir die Load? Was sagt denn CPU/Speicher etc. zu dem Zeitpunkt?
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: amenomade am 28 Juni 2020, 21:21:17
Wie im anderen Thread geschrieben (danke Wernieman für den Hinweis dort)  könntest Du mit cpanm (cpanminus) probieren, der viel weniger Ressourcen braucht.

Zitatcpanm uses much less memory. This makes it a better choice for environments where RAM is limited, such as shared hosting servers, where regular cpan might die before completing installation task, due to attempting to use more than available memory.
According to cpanm's (1.7044) documentation "When running, it requires only 10MB of RAM"
Quelle (http://"https://php.developreference.com/article/26155115/Which+cpan+installer+is+the+right+one%3f+(CPAN.pm+CPANPLUS+cpanminus)")
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 28 Juni 2020, 21:40:18
Natürlich erzeugt Perl den Load, komischerweise 20% CPU. Also, wir machen mal Schluss hier mit dem Rätselraten, ich mache das System platt und gut ist. Trotzdem danke für die Hilfe (ich hatte eigentlich vor, cpan neu zu installieren, weiss aber absolut nicht, wie das geht). Ich habe das System erst gestern aufgesetzt, ist also nicht so viel Mehrarbeit.
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Wernieman am 28 Juni 2020, 21:52:16
Load <> CPU

Load bedeutet nur, das Prozesse auf IO warten. Das kann Festplatte aber auch Netzwerk sein.

Als Anekdote:
Habe mal beruflich mch auf einem Server mit Load=10.000 Bewegt und der lief flüssig ... das enstprechende PHP-Prozesse auf Ihre Datenbank warteten (Die weg war), war dem Server egal. Dagegen war ein anderer Server mit Load=2 tot .....
https://de.wikipedia.org/wiki/Load (https://de.wikipedia.org/wiki/Load)
Deshalb nochmals die Frage: Was erzeugt den Load? Auf die CPU zu gucken hilft nicht viel (s.o.)
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 28 Juni 2020, 21:54:35
Ich nehme an zwei fehlende Perl-Pakete in FHEM:
Linux raspfhem 4.19.118+ #1311 Mon Apr 27 14:16:15 BST 2020 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jun 28 18:58:16 2020 from 192.168.2.16

top - 21:53:29 up  8:08,  4 users,  load average: 1,24, 1,10, 1,35
Tasks: 108 total,   2 running, 106 sleeping,   0 stopped,   0 zombie
%Cpu(s): 97,4 us,  2,6 sy,  0,0 ni,  0,0 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st
MiB Mem :    432,4 total,     58,3 free,    166,2 used,    207,9 buff/cache
MiB Swap:    100,0 total,      1,3 free,     98,7 used.    211,0 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU 
678 fhem      20   0  137200  85460   6676 R  97,1  19,3 260:12.88 perl
5501 pi        20   0   10304   3096   2576 R   1,6   0,7   0:00.34 top                                                                                                     7 root      20   0       0      0      0 S   0,3   0,0   0:30.84 ksoftirqd/0                                                                                          5471 root      20   0       0      0      0 I   0,3   0,0   0:00.34 kworker/0:1-events                                                                                      1 root      20   0   33728   4768   3724 S   0,0   1,1   0:56.60 systemd                                                                                                 2 root      20   0       0      0      0 S   0,0   0,0   0:16.90 kthreadd                                                                                                6 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 mm_percpu_wq                                                                                            8 root      20   0       0      0      0 S   0,0   0,0   0:00.01 kdevtmpfs                                                                                               9 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 netns                                                                                                  11 root      20   0       0      0      0 S   0,0   0,0   0:00.04 khungtaskd                                                                                             12 root      20   0       0      0      0 S   0,0   0,0   0:00.06 oom_reaper                                                                                             13 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 writeback                                                                                              14 root      20   0       0      0      0 S   0,0   0,0   0:00.00 kcompactd0                                                                                             15 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 crypto                                                                                                 16 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 kblockd                                                                                                17 root      rt   0       0      0      0 S   0,0   0,0   0:00.00 watchdogd                                                                                              18 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 rpciod                                                                                                 19 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 kworker/u3:0                                                                                           20 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 xprtiod                                                                                                23 root      20   0       0      0      0 S   0,0   0,0  69:28.16 kswapd0                                                                                                24 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 nfsiod                                                                                                 35 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 kthrotld                                                                                               36 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 iscsi_eh                                                                                               37 root       0 -20       0      0      0 I   0,0   0,0   0:00.00 dwc_otg                                                                                             
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Wernieman am 28 Juni 2020, 21:57:21
Interessanter als eine top-Ausgabe:
ps aux --sort=-pcpu | head -n10
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 28 Juni 2020, 21:58:42
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
fhem       678 53.6 18.9 135612 83964 ?        S    13:45 263:55 /usr/bin/perl fhem.pl fhem.cfg
root        23 14.0  0.0      0     0 ?        S    13:44  69:28 [kswapd0]
mysql      462  0.8  5.2 718588 23192 ?        Ssl  13:45   4:19 /usr/sbin/mysqld
pi        5544  0.5  0.8   8464  3628 pts/1    Ss   21:55   0:00 -bash
systemd+   182  0.4  0.5  22396  2524 ?        Ssl  13:45   1:58 /lib/systemd/systemd-timesyncd
root       238  0.4  0.2   7960   996 ?        Ss   13:45   2:07 /usr/sbin/cron -f
pi         785  0.3  2.5 144116 11204 ?        Sl   13:45   1:49 lxpanel --profile LXDE-pi
root      5531  0.3  1.4  12220  6264 ?        Ss   21:54   0:00 sshd: pi [priv]
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Wernieman am 28 Juni 2020, 22:00:42
root        23 14.0  0.0      0     0 ?        S    13:44  69:28 [kswapd0]
Dein System swapt  ...

Bitte mal:
free

Und zum Gucken, was noch Richtung "Festplatte" so läuft: iotop

Edit:
Mal zum einlesen (Schnellsuche, sieht gut aus):
https://www.taste-of-it.de/debian-hohen-cpu-load-analysieren/ (https://www.taste-of-it.de/debian-hohen-cpu-load-analysieren/)
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: MadMax-FHEM am 28 Juni 2020, 22:18:53
Sollte das von einem PI3 sein!?

Wenn ja, dann sieht das aber nach sehr wenig aus:

Zitat
MiB Mem :    432,4 total,     58,3 free,    166,2 used,    207,9 buff/cache

Zum Vergleich ein PI3 von mir:


MiB Mem :    976,4 total,     93,5 free,     56,6 used,    826,3 buff/cache


Gruß, Joachim
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 28 Juni 2020, 22:24:54
RPi2, bin downgegraded
           total        used        free      shared  buff/cache   available
Mem:         442788      170660       73736        5268      198392      216468
Swap:        102396      102000         396
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: MadMax-FHEM am 28 Juni 2020, 22:27:47
Zitat von: andies am 28 Juni 2020, 22:24:54
RPi2, bin downgegraded
           total        used        free      shared  buff/cache   available
Mem:         442788      170660       73736        5268      198392      216468
Swap:        102396      102000         396


Ok, dann passt das ;)

Gruß, Joachim
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Wernieman am 28 Juni 2020, 22:48:49
Nach Deinem ps ist aber schon mindestens 30% (Grob Ausgerechnet) belegt ..... ich würde Denken, Du brauchst etwas größeres ...

Und ob ein PI2 und mysql gerade das "Top-Ding" ist ....

Edit:
Bitte mal den Output von:
ps aux --sort=-pmem | head

Außerdem warte ich noch auf die Ausgabe von free ....
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 29 Juni 2020, 08:35:37
Doch, free stand oben. Hier ist es nochmal
pi@raspfhem:~ $ free
              total        used        free      shared  buff/cache   available
Mem:         442788      184972      114388        6016      143428      201084
Swap:        102396      102388           8
pi@raspfhem:~ $ ps aux --sort=-pmem | head
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
fhem       678 75.4 23.2 153772 102908 ?       R    Jun28 852:03 /usr/bin/perl fhem.pl fhem.cfg
mysql      462  0.5  5.2 719576 23064 ?        Ssl  Jun28   6:27 /usr/sbin/mysqld
root       473  0.0  2.6 191736 11848 ?        Ss   Jun28   0:35 /usr/sbin/apache2 -k start
pi         785  0.2  2.3 144116 10560 ?        Sl   Jun28   2:54 lxpanel --profile LXDE-pi
root       429  0.0  1.8 145868  8260 tty7     Ssl+ Jun28   0:32 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
root     10300  2.0  1.4  12220  6276 ?        Ss   08:34   0:00 sshd: pi [priv]
pi         802  0.0  1.3  32200  5976 ?        S    Jun28   0:04 /usr/bin/vncserverui -statusicon 5
www-data  6506  0.0  1.2 191760  5396 ?        S    00:00   0:00 /usr/sbin/apache2 -k start
www-data  6507  0.0  1.2 191760  5396 ?        S    00:00   0:00 /usr/sbin/apache2 -k start

Ich steige auf den RPi3 um, muss nur das backup sichern.
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: Wernieman am 29 Juni 2020, 11:34:19
Swap:        102396      102388           8
Da siehst Du Dein Problem ....
Titel: Antw:CPAN statt apt-get install -> Fhem hängt
Beitrag von: andies am 29 Juni 2020, 20:55:09
inzwischen richte ich das auf dem RPi3 ein und bin sogar dabei, von SSD zu booten. Läuft ganz geschmeidig.