Команда opkg update завершилась с кодом ошибки 6

Hello everyone!
My opkg update both thro LUCI and CLI doesn’t wanna update, while my internet is getting routed fine.
It’s outputting this error:

Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Failed to send request: Operation not permitted
Collected errors:

  • opkg_download: Failed to download https://downloads.openwrt.org/releases/21.02.0/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/21.02.0/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/21.02.0/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/21.02.0/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/21.02.0/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/21.02.0/packages/mipsel_24kc/telephony/Packages.gz, wget returned 4.

  • opkg_download: Check your network settings and connectivity.

I have a setup like this where the MI4AG and LEDE routers are on 2.x and same submask (the LEDE has dhcp on, disabled that for the mi4ag)
They route the internet fine, I just cannot use opkg tho :/
Any tips? I’m assuming I’m just horrible at setting up this multi router setup I have, as I’m clueless regarding networking.
Any help is appreciated! Thank you!

EDIT: Pinging doesn’t work either thro Diagnostics tab, posted errors down below in the comments.

OpenWrt Forum

Loading

opkg_download: Check your network settings and connectivity.

It works here just fine, try to find mirror working for you.

$ curl --head https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/22.03.3/targets/ath79/nand/packages/Packages.gz
HTTP/2 200 
server: nginx/1.18.0
date: Wed, 15 Feb 2023 20:34:32 GMT
content-type: application/octet-stream
content-length: 89709
last-modified: Wed, 04 Jan 2023 23:36:31 GMT
etag: "63b60d7f-15e6d"
strict-transport-security: max-age=31536000
x-tuna-mirror-id: neomirrors
accept-ranges: bytes

Всем доброго времени суток!

При вводе команды opkg update получаю следующ

BusyBox v1.34.1 (2021-12-10 08:29:27 UTC) built-in shell (ash)

/ # opkg update
Downloading http://bin.entware.net/mipselsf-k3.4/Packages.gz
wget: bad address ‘bin.entware.net’
*** Failed to download the package list from http://bin.entware.net/mipselsf-k3.4/Packages.gz

Downloading http://bin.entware.net/mipselsf-k3.4/keenetic/Packages.gz
wget: bad address ‘bin.entware.net’
*** Failed to download the package list from http://bin.entware.net/mipselsf-k3.4/keenetic/Packages.gz

Collected errors:
 * opkg_download: Failed to download http://bin.entware.net/mipselsf-k3.4/Packages.gz, wget returned 1.
 * opkg_download: Failed to download http://bin.entware.net/mipselsf-k3.4/keenetic/Packages.gz, wget returned 1.

Подскажите, что можно сделать в данной ситуации? Поподробнее, пожалуйста, т.к. сам особо не разбираюсь, чужие же инструкции выполню без проблем. Спасибо.

Problem:

When running opkg update or other opkg commands in OpenWRT, you see these error messages:

Failed to send request: Operation not permitted

Full log example:

Downloading http://downloads.openwrt.org/releases/19.07.5/targets/ath79/generic/packages/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.5/targets/ath79/generic/packages/Packages.gz

Downloading http://downloads.openwrt.org/releases/19.07.5/targets/ath79/generic/kmods/4.14.209-1-b84a5a29b1d5ae1dc33ccf9ba292ca1d/Packages.gz
Failed to send request: Operation not permitted
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.5/targets/ath79/generic/kmods/4.14.209-1-b84a5a29b1d5ae1dc33ccf9ba292ca1d/Packages.gz

[...]

Solution:

This problem is typically caused by no DNS servers being set.

First, check if you have internet access using

ping 1.1.1.1

The output should look like this (otherwise, you have no internet access):

[email protected]:~# ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: seq=0 ttl=59 time=36.078 ms
64 bytes from 1.1.1.1: seq=1 ttl=59 time=33.538 ms
64 bytes from 1.1.1.1: seq=2 ttl=59 time=33.350 ms

Now try to ping techoverflow.net:

[email protected]:~# ping techoverflow.net
ping: bad address 'techoverflow.net'

This verifies that you have internet connectivity but no DNS.

Now go into LuCI, go to Network/Interfaces and edit each interface. Set Use custom DNS servers to:

1.1.1.1

and

1.0.0.1

This might not be possible for some interfaces since they have a different IP address configuraton (in that case, just proceed with the other interfaces). The configuration for the interface should now look like this:

Don’t forget to Save & Apply!

After that, retry opkg update which should now look like this:

[email protected]:~# opkg update
Downloading http://downloads.openwrt.org/releases/19.07.5/targets/ath79/generic/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/19.07.5/targets/ath79/generic/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/19.07.5/targets/ath79/generic/kmods/4.14.209-1-b84a5a29b1d5ae1dc33ccf9ba292ca1d/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_kmods
Downloading http://downloads.openwrt.org/releases/19.07.5/targets/ath79/generic/kmods/4.14.209-1-b84a5a29b1d5ae1dc33ccf9ba292ca1d/Packages.sig
Signature check passed.
[...]

Возможно, вам также будет интересно:

  • Команда opkg remove завершилась с кодом ошибки 255
  • Команда opkg install завершилась с кодом ошибки 255
  • Команда gdb exec run возвратила ошибку
  • Команда cmd для проверки системы на ошибки
  • Команда chkdsk для исправления ошибок

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии