Cannot install python3 in VM

I just created a VM for Virtualbox, using the Openwrt snapshot located here: https://downloads.openwrt.org/snapshots/targets/x86/64/ .

The machine boots alright and after creating a NAT network interface, I have Internet access and thus can ping 8.8.8.8. Now, I want to install python3, so:

vm1@OpenWrt:~$ sudo opkg update
Downloading http://downloads.openwrt.org/snapshots/targets/x86/64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/snapshots/targets/x86/64/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/snapshots/packages/x86_64/telephony/Packages.sig
Signature check passed.

... everything ok. However, when I opkg install python3 or opkg install python3-light it says:

vm1@OpenWrt:~$ sudo opkg install python3-light
Unknown package 'python3-light'.
Collected errors:
* opkg_install_cmd: Cannot install package python3-light.

(and)

vm1@OpenWrt:~$ sudo opkg install python3
Unknown package 'python3'.
Collected errors:
* opkg_install_cmd: Cannot install package python3.

Which makes sense, since when I opkg list | grep python3-light no results are shown. When I opkg list | grep python3, however, many python3 related libs and packages are displayed, but none with the actual python3 package.

Is it a generalized problem with OpenWrt? I've installed python3 successfully in previous VMs. What's going on?

Perhaps the build robot is failing to create the "python3" package, this can happen on SNAPSOT; sooner or later, someone will have a look at it, and fix the issue.

Do you really need to run SNAPSHOT? Cannot do with a RELESASE?

Look for python3-base as the core Python interpreter. Though python3-light should also exist.

@eduperez Just created a stable release VM and now I can install python3!
@mk24 python3-base did not exist either, but downloading the stable version solved the problem.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.