Taomon
Supporter
Anmeldungsdatum: 30. Januar 2011
Beiträge: 8432
Wohnort: Digiworld
|
Wieso versuchtst du die Ausgaben in eine Datei umzuleiten. Hast du keine grafische Oberfläche? Du verwirrst mich als Version ist ubuntu 18.04 angegeben, das heißt Du hast gnome3 als Desktop. Hust, in welchen Verszeichnis warst Du als Du sudo chown -R $USER:$USER * ausgeführt hast. So macht man das nicht. Wenn man im falschen verzeichnis ist setzt man dort falsche Rechte. sudo chown -R $USER:$USER $HOME Bitte versuch nicht auf gut glück was Eigenes, das erschwert den Support. Gruß Taomon Edit Überschnitten. Seufz, Du hast durch Deinen Befehl Rechte im System falsch gesetzt. Du darfst neu installieren. 😀 Gruß Taomon
|
Rhaban
(Themenstarter)
Anmeldungsdatum: 25. Juni 2016
Beiträge: 465
Wohnort: München
|
Hallo, Taomon, vielen Dank für Deine E-Mail von heute früh, Fr 01.06.2018, 11:34 Uhr. Du hattest leider Recht. Ich muss einen schweren Fehler dadurch ausgelöst haben, dass ich in / alles auf Normal-User setzen wollte. Jetzt habe ich Ubuntu 18.04 erneut installiert, wieder von der DVD. Als Erstes wollte ich nur Dolphin aufrufen, um auf das externe Laufwerk (wo alle meine privaten Daten liegen, die ich ja zuvor gespeichert hatte) zuzugreifen und meine Daten von da zurückzukopieren. Zunächst kam die (verständliche) Reaktion, Dolphin sei noch nicht installiert, ich möchte doch
sudo apt install dolphin
eingeben, was ich auch tat. Die Reaktion:
E: Konnte Sperre /var/lib/dpkg/log nicht bekommen - open (11: Die Ressource ist zur Zeit nicht verfügbar)
E: Sperren des Administrationsverzeichnisses (/var/lib/dpkg/) nicht möglich, wird es von einem anderen Prozess verwendet?
Ubuntu 18.04 ist noch jungfräulich; ich habe es vor wenigen Minuten zum überhaupt ersten Mal aufgerufen. Was kann ich tun? Schon jetzt vielen Dank für alle Hilfe. Und ich werde als Root vorsichtiger sein ... Ich habe jetzt auch gleich disper herunterladen wollen. Das klappte diesmal auch, bei
sudo apt install disper
gab es zwar keine Probleme, als ich
disper -e
aufgerufen habe, kam aber wieder die Meldung
Speicherzugriffsfehler
disper erzeugte eine Fehlermeldung ("Entschuldigung, disper wurde ... beendet. Fehlermeldung senden?"), was ich bejaht habe. Du fragst noch, ob ich keine graphische Oberfläche habe. Doch, die habe ich, aber ich verwende sehr gerne und viel die Shell (Das mag noch von meiner MS-DOS-Vergangenheit herkommen); wenn ich ein Programm laufen lasse und die Ausgabe speichern möchte, mache ich das gerne mit
PROGRAMM > 1.vge
Dann kann ich den Inhalt von 1.vge gleich weiterverwenden. Viele Grüße Rhaban
|
Taomon
Supporter
Anmeldungsdatum: 30. Januar 2011
Beiträge: 8432
Wohnort: Digiworld
|
Laß das mit der Umleitung erstmal. Und wenn umleiten dann prgrammaufruf > $HOME/1.vge so landet die Datei in Deinem home egal in welchen Verzeichnis du grad bist. Kopiere einfach aus dem Terminal. dolphin muß nicht installiert werden. Nimm einfach den Datei-Manager von Gnome3 (nautilus) Du müßtest Dein System nach der Neu-Installation erstmal wieder aktualisieren. sudo apt update && sudo apt full-upgrade ausführen, danach neustarten. Dann zeigst Du bitte nochmal python --version da kam beim letztenmal, was für mich unerwartet raus und python2.7 /usr/bin/disper -vl Gruß Taomon
|
Rhaban
(Themenstarter)
Anmeldungsdatum: 25. Juni 2016
Beiträge: 465
Wohnort: München
|
Hallo, Taomon, ich habe, wie Du geschrieben hattest, zunächst
sudo apt update && sudo apt full-upgrade
aufgerufen. Als das zu Ende war - Fehlermeldungen gab es nicht -, wollte ich den Rechner mit
shutdown -h now
herunterfahren. (shutdown -r now hat übrigens auf diesem Rechner noch nie funktioniert, egal welches Betriebssystem gerade auf dem Rechner lief. Beim Wiederhochfahren hängt er sich dann gleich zu Beginn auf. Deshalb mache ich es bei einem Neustart immer so, dass ich den Rechner ganz herunterfahre und ihn dann mit dem Hauptschalter einschalte.) Als ich also
shutdown -h now
eingegeben hatte, kam nun die folgende Fehlermeldung:
Operation inhibited by "Update Manager" (PID 2743 "update-manager", user rlpclin), reason is "Updating System".
Please retry operation after closing inhibitors and logging out other users.
Alternatively, ignore inhibitors and users with 'systemctl poweroff -i'.
Da ich von keinem anderen "inhibitor" wusste und da nur ich mich sowohl als normaler Nutzer als auch (zuvor) als Root angemeldet hatte, entschied ich mich für
systemctl poweroff -i
Der Rechner fuhr problemlos herunter und ich schaltete ihn gleich wieder ein.
python --version
lieferte
Python 2.7.15rc1
und
python2.7 /usr/bin/disper_vl
lieferte
python2.7: can't open file '/usr/bin/disper_vl': [Errno 2] No such file or directory
Viele Grüße Rhaban
|
Taomon
Supporter
Anmeldungsdatum: 30. Januar 2011
Beiträge: 8432
Wohnort: Digiworld
|
Arbeite konzentriert bitte. Der Befehl heißt python2.7 /usr/bin/disper -vl
und nicht python2.7 /usr/bin/disper_vl arbeite mit cp und paste.
cat $HOME/.bashrc und cat $HOME/.profile Gruß Taomon
|
Rhaban
(Themenstarter)
Anmeldungsdatum: 25. Juni 2016
Beiträge: 465
Wohnort: München
|
Hallo, sorry, ich hatte gerade Unterzucker (passiert bei Diabetikern halt leider manchmal). Jetzt geht es mir wieder besser. Ich habe jetzt noch einmal
| python2.7 /usr/bin/disper -vl
|
eingegeben, die Antwort lautete:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43 | Usage: disper [options] (-l|-s|-c|-e|-p|-i)
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-v, --verbose show what's happening
-q, --quiet be quiet and only show errors
-r RESOLUTION, --resolution=RESOLUTION
set resolution, e.g. "800x600", or "auto" to detect
the display's preferred resolution, "max" to use the
maximum resolution advertised, or "off" to disable the
display entirely. For extend it is possible to enter a
single resolution for all displays or a comma-
separated list of resolutions (one for each display).
Beware that many displays advertise resolutions they
can not fully show, so "max" is not advised.
-d DISPLAYS, --displays=DISPLAYS
comma-separated list of displays to operate on, or
"auto" to detect; the first is the primary display.
-t DIRECTION, --direction=DIRECTION
where to extend displays: "left", "right", "top", or
"bottom"
--scaling=SCALING flat-panel scaling mode: "default", "native",
"scaled", "centered", or "aspect-scaled"
--plugins=PLUGINS comma-separated list of plugins to enable. Special
names: "user" for all user plugins in
~/.config/disper/hooks; "all" for all plugins found;
"none" for no plugins.
--cycle-stages=CYCLE_STAGES
colon-separated list command-line arguments to cycle
through; "-S:-c:-s" by default
Actions:
Select exactly one of the following actions
-l, --list list the attached displays
-s, --single only enable the primary display
-S, --secondary only enable the secondary display
-c, --clone clone displays
-e, --extend extend displays
-p, --export export current settings to standard output
-i, --import import current settings from standard input
-C, --cycle cycle through the list of cycle stages
|
Zum Thema Python möchte ich noch etwas vorausschicken: Im vergangenen Jahr wurde mir, auch hier im Forum, sehr mit dem Auslesen meines Freestyle-Libre-Blutzuckerwerte-Lesegerätes geholfen; ich musste seiner Zeit Python 3 nachinstallieren, vgl. https://forum.ubuntuusers.de/topic/blutzuckermessgeraete-free-style-libre-und-akk/2/ Da ich heute früh ja nicht damit gerechnet hatte, dass eine Neuinstallation durch meine falsche Eingabe nötig werden würde, habe ich mein Freestyle-Lesegerät eingebunden und musste dazu erneut Python 3 installieren. (Ich hoffe, dass ich das nachher noch einmal alles wie heute früh nachvollziehen kann.) Meine Frage: Entsteht ein Schaden, wenn ich Python 3 installiere? Können beide Pythons nebeneinander existieren? Viele Grüße Rhaban
|
Taomon
Supporter
Anmeldungsdatum: 30. Januar 2011
Beiträge: 8432
Wohnort: Digiworld
|
Ja, Du kannst python3 nach installieren. Ich habe auch beide Versionen drauf. Und bitte endlich ls -al /etc/alternatives/ | grep python zeigen. und dpkg -l | grep python Dann pobieren wir den Aufruf so. /usr/bin/python2.7 /usr/bin/disper -vl wenn das auch nicht funktioniert weiß ich nicht weiter. Gruß Taomon
|
Rhaban
(Themenstarter)
Anmeldungsdatum: 25. Juni 2016
Beiträge: 465
Wohnort: München
|
Hallo, Taomon, ich habe zunächst
ls -al /etc/alternatives/ | grep python
Es gab keine Reaktion; ein Blick in das Verzeichnis /etc/alternatives/ zeigte, dass Python dort nicht existiert.
dpkg -l | grep python
lieferte:
ii libpython-stdlib:amd64 2.7.15~rc1-1 amd64 interactive high-level object-oriented language (default python version)
ii libpython2.7:amd64 2.7.15~rc1-1 amd64 Shared Python runtime library (version 2.7)
ii libpython2.7-minimal:amd64 2.7.15~rc1-1 amd64 Minimal subset of the Python language (version 2.7)
ii libpython2.7-stdlib:amd64 2.7.15~rc1-1 amd64 Interactive high-level object-oriented language (standard library, version 2.7)
ii libpython3-stdlib:amd64 3.6.5-3 amd64 interactive high-level object-oriented language (default python3 version)
ii libpython3.6:amd64 3.6.5-3 amd64 Shared Python runtime library (version 3.6)
ii libpython3.6-minimal:amd64 3.6.5-3 amd64 Minimal subset of the Python language (version 3.6)
ii libpython3.6-stdlib:amd64 3.6.5-3 amd64 Interactive high-level object-oriented language (standard library, version 3.6)
ii python 2.7.15~rc1-1 amd64 interactive high-level object-oriented language (default version)
ii python-apt-common 1.6.0 all Python interface to libapt-pkg (locales)
ii python-minimal 2.7.15~rc1-1 amd64 minimal subset of the Python language (default version)
ii python-talloc 2.1.10-2ubuntu1 amd64 hierarchical pool based memory allocator - Python bindings
ii python2.7 2.7.15~rc1-1 amd64 Interactive high-level object-oriented language (version 2.7)
ii python2.7-minimal 2.7.15~rc1-1 amd64 Minimal subset of the Python language (version 2.7)
ii python3 3.6.5-3 amd64 interactive high-level object-oriented language (default python3 version)
ii python3-apport 2.20.9-0ubuntu7.1 all Python 3 library for Apport crash report handling
ii python3-apt 1.6.0 amd64 Python 3 interface to libapt-pkg
ii python3-aptdaemon 1.1.1+bzr982-0ubuntu19 all Python 3 module for the server and client of aptdaemon
ii python3-aptdaemon.gtk3widgets 1.1.1+bzr982-0ubuntu19 all Python 3 GTK+ 3 widgets to run an aptdaemon client
ii python3-asn1crypto 0.24.0-1 all Fast ASN.1 parser and serializer (Python 3)
ii python3-brlapi 5.5-4ubuntu2 amd64 Braille display access via BRLTTY - Python3 bindings
ii python3-cairo:amd64 1.16.2-1 amd64 Python3 bindings for the Cairo vector graphics library
ii python3-certifi 2018.1.18-2 all root certificates for validating SSL certs and verifying TLS hosts (python3)
ii python3-cffi-backend 1.11.5-1 amd64 Foreign Function Interface for Python 3 calling C code - runtime
ii python3-chardet 3.0.4-1 all universal character encoding detector for Python3
ii python3-commandnotfound 18.04.4 all Python 3 bindings for command-not-found.
ii python3-crypto 2.6.1-8ubuntu2 amd64 cryptographic algorithms and protocols for Python 3
ii python3-cryptography 2.1.4-1ubuntu1.1 amd64 Python library exposing cryptographic recipes and primitives (Python 3)
ii python3-cups 1.9.73-2 amd64 Python3 bindings for CUPS
ii python3-cupshelpers 1.5.11-1ubuntu2 all Python utility modules around the CUPS printing system
ii python3-dbus 1.2.6-1 amd64 simple interprocess messaging system (Python 3 interface)
ii python3-debconf 1.5.66 all interact with debconf from Python 3
ii python3-debian 0.1.32 all Python 3 modules to work with Debian-related data formats
ii python3-defer 1.0.6-2build1 all Small framework for asynchronous programming (Python 3)
ii python3-distro-info 0.18 all information about distributions' releases (Python 3 module)
ii python3-distupgrade 1:18.04.18 all manage release upgrades
ii python3-gdbm:amd64 3.6.5-3 amd64 GNU dbm database support for Python 3.x
ii python3-gi 3.26.1-2 amd64 Python 3 bindings for gobject-introspection libraries
ii python3-gi-cairo 3.26.1-2 amd64 Python 3 Cairo bindings for the GObject library
ii python3-httplib2 0.9.2+dfsg-1 all comprehensive HTTP client library written for Python3
ii python3-idna 2.6-1 all Python IDNA2008 (RFC 5891) handling (Python 3)
ii python3-keyring 10.6.0-1 all store and access your passwords safely - Python 3 version of the package
ii python3-keyrings.alt 3.0-1 all alternate backend implementations for python3-keyring
ii python3-launchpadlib 1.10.6-1 all Launchpad web services client library (Python 3)
ii python3-lazr.restfulclient 0.13.5-1 all client for lazr.restful-based web services (Python 3)
ii python3-lazr.uri 1.0.3-2build1 all library for parsing, manipulating, and generating URIs
ii python3-louis 3.5.0-1 all Python bindings for liblouis
ii python3-macaroonbakery 1.1.3-1 all Higher-level macaroon operations for Python 3
ii python3-mako 1.0.7+ds1-1 all fast and lightweight templating for the Python 3 platform
ii python3-markupsafe 1.0-1build1 amd64 HTML/XHTML/XML string library for Python 3
ii python3-minimal 3.6.5-3 amd64 minimal subset of the Python language (default python3 version)
ii python3-nacl 1.1.2-1build1 amd64 Python bindings to libsodium (Python 3)
ii python3-oauth 1.0.1-5 all Python 3 library implementing of the OAuth protocol
ii python3-olefile 0.45.1-1 all Python module to read/write MS OLE2 files
ii python3-pexpect 4.2.1-1 all Python 3 module for automating interactive applications
ii python3-pil:amd64 5.1.0-1 amd64 Python Imaging Library (Python3)
ii python3-pkg-resources 39.0.1-2 all Package Discovery and Resource Access using pkg_resources
ii python3-problem-report 2.20.9-0ubuntu7.1 all Python 3 library to handle problem reports
ii python3-protobuf 3.0.0-9.1ubuntu1 amd64 Python 3 bindings for protocol buffers
ii python3-ptyprocess 0.5.2-1 all Run a subprocess in a pseudo terminal from Python 3
ii python3-pyatspi 2.26.0+dfsg-1 all Assistive Technology Service Provider Interface - Python3 bindings
ii python3-pymacaroons 0.13.0-1 all Macaroon library for Python 3
ii python3-renderpm:amd64 3.4.0-3build1 amd64 python low level render interface
ii python3-reportlab 3.4.0-3build1 all ReportLab library to create PDF documents using Python3
ii python3-reportlab-accel:amd64 3.4.0-3build1 amd64 C coded extension accelerator for the ReportLab Toolkit
ii python3-requests 2.18.4-2 all elegant and simple HTTP library for Python3, built for human beings
ii python3-requests-unixsocket 0.1.5-3 all Use requests to talk HTTP via a UNIX domain socket - Python 3.x
ii python3-rfc3339 1.0-4 all parser and generator of RFC 3339-compliant timestamps (Python 3)
ii python3-secretstorage 2.3.1-2 all Python module for storing secrets - Python 3.x version
ii python3-simplejson 3.13.2-1 amd64 simple, fast, extensible JSON encoder/decoder for Python 3.x
ii python3-six 1.11.0-2 all Python 2 and 3 compatibility library (Python 3 interface)
ii python3-software-properties 0.96.24.32.3 all manage the repositories that you install software from
ii python3-speechd 0.8.8-1ubuntu1 all Python interface to Speech Dispatcher
ii python3-systemd 234-1build1 amd64 Python 3 bindings for systemd
ii python3-tz 2018.3-2 all Python3 version of the Olson timezone database
ii python3-uno 1:6.0.3-0ubuntu1 amd64 Python-UNO bridge
ii python3-update-manager 1:18.04.11 all python 3.x module for update-manager
ii python3-urllib3 1.22-1 all HTTP library with thread-safe connection pooling for Python3
ii python3-wadllib 1.3.2-3 all Python 3 library for navigating WADL files
ii python3-xdg 0.25-4ubuntu1 all Python 3 library to access freedesktop.org standards
ii python3-xkit 0.5.0ubuntu2 all library for the manipulation of xorg.conf files (Python 3)
ii python3-yaml 3.12-1build2 amd64 YAML parser and emitter for Python3
ii python3-zope.interface 4.3.2-1build2 amd64 Interfaces for Python3
ii python3.6 3.6.5-3 amd64 Interactive high-level object-oriented language (version 3.6)
ii python3.6-minimal 3.6.5-3 amd64 Minimal subset of the Python language (version 3.6)
und
/usr/bin/python2.7 /usr/bin/disper -vl
meldet - leider - einen Speicherzugriffsfehler. Viele Grüße Rhaban
|
Taomon
Supporter
Anmeldungsdatum: 30. Januar 2011
Beiträge: 8432
Wohnort: Digiworld
|
Dann habe ich mir im Alternativen-System selbst mal was zusammen gebastelt. find $HOME -iname disper ob da nochwas im home rumfliegt. Gruß Taomon
|
Rhaban
(Themenstarter)
Anmeldungsdatum: 25. Juni 2016
Beiträge: 465
Wohnort: München
|
Hallo, wenn ich in meinem Homeverzeichnis (bei mir /home/rlpclin)
find $HOME -iname disper
eingebe, kommt leider keine Reaktion. Schade! Viele Grüße Rhaban
|
Taomon
Supporter
Anmeldungsdatum: 30. Januar 2011
Beiträge: 8432
Wohnort: Digiworld
|
Kannst du mal das Gastkonto nutzen und dort /usr/bin/python2.7 /usr/bin/disper -vl probieren? Also auf abmelden gehen und dort wo Du Dich anmeldest im Dropdownmenu wo Dein Benutzername steht gucken.
Kennwort ist keins vergeben. Einfach dann enter drücken nach Auswahl. Ich versteh nicht, das es bei meiner stark angepaßten(verbastelten) Installation geht und bei Dir nicht? grübelnder Taomon
|
Rhaban
(Themenstarter)
Anmeldungsdatum: 25. Juni 2016
Beiträge: 465
Wohnort: München
|
Hallo, vielen Dank für Deine E-Mail von gerade eben. Ich muss gestehen, dass ich mich stets über ein Shellscript (und über shutdown -h now) abmelde; vorher sind in dem Shellscript die allabendlichen Datensicherungen und Update-Befehle. Ich würde mich ja gerne beim Gastkonto anmelden, aber - anders als früher unter Kubuntu - gibt es hier auf keinem der beiden Bildschirme ein Ubuntu-Icon. Ich erkenne gerade, dass ich mich - so wie die Dinge hier aussehen - nur via Shellscript und shutdown -h now abmelden kann. Wenn es eine Shell-Möglichkeit gibt, mich vorübergehend als Gast einzuloggen, teile sie mir doch bitte mit. Vielen Dank und viele Grüße! Dein Rhaban
|
Taomon
Supporter
Anmeldungsdatum: 30. Januar 2011
Beiträge: 8432
Wohnort: Digiworld
|
Mein find Befehl war nicht akurat genug. Ergibt ls -al $HOME | grep disper was? Drauf gebracht hat mich dieser Bug-Report Der angesprochen Code ist auch noch in der version von bionic vorhanden. '''Create lists of all plugins present'''
# TODO non-hook plugins
# find user hooks
self._plugins_user = {}
for uhook in self._get_executables(os.path.join(os.getenv('HOME'),'.disper','hooks')):
Gruß Taomon
|
Rhaban
(Themenstarter)
Anmeldungsdatum: 25. Juni 2016
Beiträge: 465
Wohnort: München
|
Hallo, Taomon, jetzt haben wir uns beide zu später Stunde noch einmal an unsere Rechner gesetzt ... Du fragtest, was
ls -al $HOME | grep disper
ergibt. Leider kommt bei mir kein Ergebnis. Auch existiert ein Verzeichnis $HOME/.disper auf meinem Rechner nicht. Trotzdem vielen Dank für alle Deine Mühe, einen schönen Abend und viele Grüße Rhaban
|
Taomon
Supporter
Anmeldungsdatum: 30. Januar 2011
Beiträge: 8432
Wohnort: Digiworld
|
$HOME ist ein Variable. Deshalb gibt es kein verzeichnis $HOME auf Deinem System. Führ mal echo $HOME aus, dann siehst du welchen Wert die Variable hat. Wenn du env eingibst siehst Du alle Variablen samt Wert für Deine Desktop-Session. Gruß Taomon
|