Failed to send request: Operation not permitted

New issue - can't update or install packages after install adguardhome

root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/23.05.2/targets/ramips/mt7621/packages/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.2/targets/ramips/mt7621/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/base/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/base/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/luci/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/luci/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/packages/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/packages/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/routing/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/routing/Packages.gz

Downloading https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/telephony/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/telephony/Packages.gz

Collected errors:
 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.2/targets/ramips/mt7621/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/base/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/luci/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/packages/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/routing/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

 * opkg_download: Failed to download https://downloads.openwrt.org/releases/23.05.2/packages/mipsel_24kc/telephony/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

Almost certainly a dns problem. Check your adguard config.

1 Like

How do i check it? I tried to but it didn't show much.

I don’t use adguard, but fundamentally you need to make sure openwrt (at the system level) has the ability to perform dns resolution.

1 Like

How do I do that ? >.< I must sound like a complete newbie to you guys but i need all the help I can get.

You must have followed some AGH install guide ?

Yes youtube is there a better way to install adguardhome so it won't interfere with openwrt downloading packages? I'm uninstalling it now though since it is doing this.

well nevermind that didn't fix it still getting Failed to send request: Operation not permitted
when i try to download package or update

You'll need to back track the YT video you followed, or reset your device.

But I can imagine there's a fw rule stopping DNS requests from going out, or upstream DNS is set to 127.0.0.1.

1 Like

here's an extensive how to - [How-To-Updated 2021] Installing AdGuardHome on OpenWrt [Manual and opkg method]

Hi

few basic check from CLI/SSH...

ping -c 3 -4 downloads.openwrt.org
ping -c 3 -6 downloads.openwrt.org
nslookup downloads.openwrt.org

please paste here the output of above commands

ping: bad address 'downloads.openwrt.org'
ping: bad address 'downloads.openwrt.org'

nslookup: write to '127.0.0.1': Connection refused
nslookup: write to '::1': Connection refused
;; connection timed out; no servers could be reached

But he didnt do anything special in the video

hmmm
clearly a DNS problem
maybe the best solution is to start from factory reset
then take step by step of configuring your device
after every step, try to ping/dns
when ping/dns stop to work, you will know where you did wrong :slight_smile:

So I went to dnsmasq stopped it and now i can ping.. weird..

try doing the echo below, then the ping again afterwards.

echo "nameserver 8.8.8.8" >> /etc/resolv.conf

this is only temp though, next time you restart the router, this config will be gone again, you need to fix it in the DNS config.

1 Like

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