I've managed to get OpenWRT 19.07.4 installed on a Raspberry Pi 3B and got it connected to the internet. I am able to reach several sites, such as Google and the OpenWRT website, using ping. I'm now trying to install OpenVSwitch on it, which I managed to do directly onto the Pi OS but am now attempting to do onto OpenWRT.
But it's unable to do so. opkg install openvswitch returns an unknown package error. opkg update attempts to download a number of files, but for every single one of them returns, in all cases, Failed to send request: Operation not permitted. I am able to ping the IP addresses associated with every single link successfully from the device. But it claims that it is not permitted to download them. And I am executing as root.
Why is opkg not permitted to download? How do I install OpenVSwitch onto it?
opkg update attempts to download a number of files, but for every single one of them returns, in all cases, Failed to send request: Operation not permitted.
As I said in the post, I did do an opkg update first. As I also said in the post immediately afterwards, it didn't work.
I had configured the network. It was connecting to my wireless from my home router. I was able to ping distant websites on the internet such as google.com and openwrt.org. I was also able to SSH to the device from a different laptop.
Then I followed your advice and it broke the network connection. Your so-called "network configuration" took away its ability to connect to the internet.
If it was working you didn't have to apply the changes.
Roll back the changes as you had them before and post the following:
ubus call system board
head -n -0 /etc/opkg.conf
head -n -0 /etc/opkg/*
which wget
ls -la /usr/bin/wget*
which curl
ls -la /usr/bin/curl
ping -c 3 downloads.openwrt.org
login as: root
BusyBox v1.30.1 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt 19.07.5, r11257-5090152ae3
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:~# ubus call system board
{
"kernel": "4.14.209",
"hostname": "OpenWrt",
"model": "Raspberry Pi 3 Model B Rev 1.2",
"board_name": "raspberrypi,3-model-b",
"release": {
"distribution": "OpenWrt",
"version": "19.07.5",
"revision": "r11257-5090152ae3",
"target": "brcm2708/bcm2710",
"description": "OpenWrt 19.07.5 r11257-5090152ae3"
}
}
root@OpenWrt:~# head -n -0 /etc/opkg.conf
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
option check_signature
root@OpenWrt:~# head -n -0 /etc/opkg/*
==> /etc/opkg/customfeeds.conf <==
# add your custom package feeds here
#
# src/gz example_feed_name http://www.example.com/path/to/files
==> /etc/opkg/distfeeds.conf <==
src/gz openwrt_core http://downloads.openwrt.org/releases/19.07.5/targets/brcm2708/bcm2710/packages
src/gz openwrt_kmods http://downloads.openwrt.org/releases/19.07.5/targets/brcm2708/bcm2710/kmods/4.14.209-1-ae418ed2395263358bbe7536d318ae28
src/gz openwrt_base http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/base
src/gz openwrt_freifunk http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/freifunk
src/gz openwrt_luci http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/luci
src/gz openwrt_packages http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/packages
src/gz openwrt_routing http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/routing
src/gz openwrt_telephony http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/telephony
==> /etc/opkg/keys <==
head: /etc/opkg/keys: I/O error
root@OpenWrt:~# which wget
/usr/bin/wget
root@OpenWrt:~# ls -la /usr/bin/wget*
lrwxrwxrwx 1 root root 18 Dec 6 07:31 /usr/bin/wget -> /bin/uclient-fetch
root@OpenWrt:~# which curl
root@OpenWrt:~# ls -la /usr/bin/curl
ls: /usr/bin/curl: No such file or directory
root@OpenWrt:~# ping -c 3 downloads.openwrt.org
PING downloads.openwrt.org (168.119.138.211): 56 data bytes
64 bytes from 168.119.138.211: seq=0 ttl=53 time=40.249 ms
64 bytes from 168.119.138.211: seq=1 ttl=53 time=30.002 ms
64 bytes from 168.119.138.211: seq=2 ttl=53 time=31.218 ms
--- downloads.openwrt.org ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 30.002/33.823/40.249 ms
root@OpenWrt:~#
I've just given it a try and it's done this, which I think is good?
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/releases/19.07.5/targets/brcm2708/bcm2710/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/19.07.5/targets/brcm2708/bcm2710/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.5/targets/brcm2708/bcm2710/kmods/4.14.209-1-ae418ed2395263358
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading http://downloads.openwrt.org/releases/19.07.5/targets/brcm2708/bcm2710/kmods/4.14.209-1-ae418ed2395263358
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/freifunk/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_freifunk
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/freifunk/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/19.07.5/packages/aarch64_cortex-a53/telephony/Packages.sig
Signature check passed.