näin tekee uudemmilla distroilla
aja ensin
sudo apt install python2
sudo apt install curl
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
sudo python2 get-pip.py
pip2 --version
suattaapi auttaa
Eipä tuntunut auttavan. Vai näetkö tässä jotain tehdyksi väärin?
pi@raspberrypi:~ $ sudo apt install python2
Reading package lists... Done
Building dependency tree
Reading state information... Done
python2 is already the newest version (2.7.16-1).
python2 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libwebkit2gtk-4.0-37 : Depends: libjavascriptcoregtk-4.0-18 (= 2.36.7-1~deb10u1+rpi1) but 2.38.5-1~deb10u1+rpi1 is to be installed
Recommends: gstreamer1.0-gl but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
pi@raspberrypi:~ $ sudo apt install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
curl : Depends: libcurl4 (= 7.64.0-4+deb10u5) but 7.64.0-4+deb10u4 is to be installed
libwebkit2gtk-4.0-37 : Depends: libjavascriptcoregtk-4.0-18 (= 2.36.7-1~deb10u1+rpi1) but 2.38.5-1~deb10u1+rpi1 is to be installed
Recommends: gstreamer1.0-gl but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
pi@raspberrypi:~ $ curl
https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1863k 100 1863k 0 0 639k 0 0:00:02 0:00:02 --:--:-- 639k
pi@raspberrypi:~ $ sudo python2 get-pip.py
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Looking in indexes:
https://pypi.org/simple,
https://www.piwheels.org/simpleCollecting pip<21.0
Downloading pip-20.3.4-py2.py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 19 kB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 18.1
Uninstalling pip-18.1:
Successfully uninstalled pip-18.1
Successfully installed pip-20.3.4
pi@raspberrypi:~ $ pip2 --version
pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)
pi@raspberrypi:~ $ wget -O install_taloLoggerPi.py
http://olammi.iki.fi/sw/taloLoggerPi/install_taloLoggerPi.py--2023-02-28 20:22:58--
http://olammi.iki.fi/sw/taloLoggerPi/install_taloLoggerPi.pyResolving olammi.iki.fi (olammi.iki.fi)... 217.112.242.173
Connecting to olammi.iki.fi (olammi.iki.fi)|217.112.242.173|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27035 (26K) [text/x-python]
Saving to: ‘install_taloLoggerPi.py’
install_taloLoggerP 100%[===================>] 26.40K --.-KB/s in 0.1s
2023-02-28 20:22:58 (192 KB/s) - ‘install_taloLoggerPi.py’ saved [27035/27035]
pi@raspberrypi:~ $ chmod 755 install_taloLoggerPi.py
pi@raspberrypi:~ $ sudo ./install_taloLoggerPi.py
********* taloLoggerPi - install_taloLoggerPi.py - v1.1h ********************
Determining installed versions...
Retrieving versions from the network...
This process will install:
taloLoggerPi: v1.1h
taloLogger: v1.7k
taloLoggerGraph: v1.2d
Proceed to install (Y/n)y
Installing taloLoggerPi...
Installing necessary apt-get -packages...
Updating apt-get database...
Get:1
http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Get:2
http://archive.raspberrypi.org/debian buster InRelease [32.6 kB]
Get:3
http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages [13.0 MB]
Get:4
http://archive.raspberrypi.org/debian buster/main armhf Packages [392 kB]
Fetched 13.5 MB in 31s (432 kB/s)
Reading package lists... Done
Installing package daemontools...
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libwebkit2gtk-4.0-37 : Depends: libjavascriptcoregtk-4.0-18 (= 2.36.7-1~deb10u1+rpi1) but 2.38.5-1~deb10u1+rpi1 is to be installed
Recommends: gstreamer1.0-gl but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Package python-serial already installed. Skipping...
Package python-pil:armhf already installed. Skipping...
Installing package python-mysqldb...
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libwebkit2gtk-4.0-37 : Depends: libjavascriptcoregtk-4.0-18 (= 2.36.7-1~deb10u1+rpi1) but 2.38.5-1~deb10u1+rpi1 is to be installed
Recommends: gstreamer1.0-gl but it is not going to be installed
**********************Karsittu välistä pois*************************************************
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Installing package python-paho-mqtt...
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libwebkit2gtk-4.0-37 : Depends: libjavascriptcoregtk-4.0-18 (= 2.36.7-1~deb10u1+rpi1) but 2.38.5-1~deb10u1+rpi1 is to be installed
Recommends: gstreamer1.0-gl but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ERROR: Missing required package: daemontools
ERROR: Missing required package: python-mysqldb
ERROR: Missing required package: python-sqlite
ERROR: Missing required package: python-psycopg2
ERROR: Missing required package: apache2
ERROR: Missing required package: php
ERROR: Missing required package: php-mysql
ERROR: Missing required package: php-sqlite3
ERROR: Missing required package: php-pgsql
ERROR: Missing required package: php-gd
ERROR: Missing required package: sqlite3
ERROR: Missing required package: owfs
ERROR: Missing required package: digitemp
ERROR: Missing required package: rrdtool
ERROR: Missing required package: python-oauth
ERROR: Missing required package: daemontools-run
ERROR: Missing required package: insserv
ERROR: Missing required package: python-paho-mqtt
Terminating install process due to missing packages.
pi@raspberrypi:~ $
Olisiko lisää ideoita?
Tuolla olisi joku image, mutta kun en osaa asentaa kortille. Osaisiko joku auttaa asiassa?
https://hub.docker.com/r/brikkney/rpi-talologger/