I can’t download and install pyhton

First of all, i am new in Linux. I am using Allwinner F113 (MangoPi MQ-R board) and it includes Tina-Linux. I want to dowloand python but wget keeps giving error response.

root@TinaLinux:/# wget https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz
wget: not an http or ftp url: https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz

How can install pyhton?
How can I download a data from a website with HTTPS ?

And second problem, tina linux has not a package manager. What is the equivalent of the sudo command in debian in tina linux? I heard the OPKG command, but the function is not available.

root@TinaLinux:/# opkg
-/bin/sh: opkg: not found

What about:

opkg update
opkg install python3

?

The command you posted works here on 22.03.2.

This is the OpenWrt forum.

Hello,
no OPKG commands are working.

root@TinaLinux:/# opkg update
-/bin/sh: opkg: not found

and
`For your specific error though, try:

wget 'https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz'
is not working.

root@TinaLinux:/# wget 'https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz
'
wget: not an http or ftp url: https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz

What is this?

Are you using official OpenWrt from https://downloads.openwrt.org/

?

1 Like

Tina Linux is based on the OpenWrt-14.07 version for Allwinner mcu's

This is over 8 years old; additionally 14.07 is unsupported.

Feel free to install an official version; or:

Contact the developer, their email is on this page.

It is normal for OpenWRT that wget does not use HTTPS. If you read https://openwrt.org/packages/pkgdata_owrt18_6/wget, wget is not support HTTPS. But I don't know how to solve this.

In version 14, it likely didn't have HTTPS. HTTPS wasn't added until later.

Since you're asking about an ancient version, someone would have to provide historical information. Sorry; but OpenWrt is currently on version 22.

1 Like

Does the "wget" function support HTTPS in recent versions of OpenWRT?

Again, yes:

root@OpenWrt:/tmp# wget https://www.python.org/ftp/python/3.9.1/Python-3.
9.1.tgz
Downloading 'https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz'
Connecting to 2a04:4e42:7b::223:443
Writing to 'Python-3.9.1.tgz'
Python-3.9.1.tgz     100% |*******************************| 24778k  0:00:00 EPython-3.9.1.tgz     100% |*******************************| 24778k  0:00:00 ETA
Download completed (25372998 bytes)

Also, even if HTTPS did work from version 14, it likely would have HTTPS errors today - due to old certificates.

Thank you for your answers!

1 Like

No problem, you can try to SCP the file over to the device.

But again, I'm not sure if that will work on 14, or your custom version.

When I want to drag and drop something to the files it does not allow, it is write protected.
How can I remove this?
If I want to manually export the .tgz file to the SD card, which folder do I have to put it in? do you know?

See, this may be why you should ask for help there. It's not write protected in official OpenWrt. Ask the developer:

screen108

Nope, as all folders work in OpenWrt.

2 Likes