OnionIoT / Onion-Console

Web application for accessing Onion devices
GNU Affero General Public License v3.0
70 stars 13 forks source link

"opkg update" fails to download packages #76

Open jcoutch opened 7 years ago

jcoutch commented 7 years ago

When attempting to run opkg update, I'm getting the following messages:

root@Omega-A175:~# opkg update
Downloading http://repo.onion.io/omega2/packages/core/Packages.gz
*** Failed to download the package list from http://repo.onion.io/omega2/packages/core/Packages.gz

Downloading http://repo.onion.io/omega2/packages/base/Packages.gz
*** Failed to download the package list from http://repo.onion.io/omega2/packages/base/Packages.gz

Downloading http://repo.onion.io/omega2/packages/packages/Packages.gz
*** Failed to download the package list from http://repo.onion.io/omega2/packages/packages/Packages.gz

Downloading http://repo.onion.io/omega2/packages/onion/Packages.gz
*** Failed to download the package list from http://repo.onion.io/omega2/packages/onion/Packages.gz

Collected errors:
 * opkg_download: Failed to download http://repo.onion.io/omega2/packages/core/Packages.gz, wget returned 8.
 * opkg_download: Failed to download http://repo.onion.io/omega2/packages/base/Packages.gz, wget returned 8.
 * opkg_download: Failed to download http://repo.onion.io/omega2/packages/packages/Packages.gz, wget returned 8.
 * opkg_download: Failed to download http://repo.onion.io/omega2/packages/onion/Packages.gz, wget returned 8.

I tried running wget directly with the Packages.gz URL:

root@Omega-A175:~# wget http://repo.onion.io/omega2/packages/core/Packages.gz
--2017-05-25 14:56:45--  http://repo.onion.io/omega2/packages/core/Packages.gz
Resolving repo.onion.io... 52.32.127.220, 52.26.79.192
Connecting to repo.onion.io|52.32.127.220|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2017-05-25 14:56:45 ERROR 403: Forbidden.

If I go to that exact URL on my desktop system, it works fine. It's obviously not a WiFi issue, since I'm getting an HTTP response back from repo.onion.io...but not sure why it's a 403...

jcoutch commented 7 years ago

Found the issue. I tried using HTTPS instead of HTTP, and the file downloaded successfully. To fix the issue, edit /etc/opkg/distfeeds.conf and change all the URL's to use HTTPS:

src/gz omega2_core https://repo.onion.io/omega2/packages/core
src/gz omega2_base https://repo.onion.io/omega2/packages/base
src/gz omega2_packages https://repo.onion.io/omega2/packages/packages
src/gz omega2_onion https://repo.onion.io/omega2/packages/onion
Market1G commented 7 years ago

So, should this close the issue?

jcoutch commented 7 years ago

If it's been fixed in the Onion firmware...sure.

worldlove521 commented 3 years ago

Downloading http://downloads.pangubox.com:6380/pandorabox/19.02/targets/ralink/mt7621/packages/Packages.gz Updated list of available packages in /var/opkg-lists/19.02_core Downloading http://downloads.pangubox.com:6380/pandorabox/19.02/packages/mipsel_1004kc_dsp/base/Packages.gz Updated list of available packages in /var/opkg-lists/19.02_base Downloading http://downloads.pangubox.com:6380/pandorabox/19.02/packages/mipsel_1004kc_dsp/newifi/Packages.gz Updated list of available packages in /var/opkg-lists/19.02_newifi Downloading http://downloads.pangubox.com:6380/pandorabox/19.02/packages/mipsel_1004kc_dsp/pear/Packages.gz Updated list of available packages in /var/opkg-lists/19.02_pear Downloading http://downloads.pangubox.com:6380/pandorabox/19.02/packages/mipsel_1004kc_dsp/packages/Packages.gz Updated list of available packages in /var/opkg-lists/19.02_packages Downloading http://downloads.pangubox.com:6380/pandorabox/19.02/packages/mipsel_1004kc_dsp/luci/Packages.gz Updated list of available packages in /var/opkg-lists/19.02_luci Downloading http://downloads.pangubox.com:6380/pandorabox/19.02/packages/mipsel_1004kc_dsp/lafite/Packages.gz Updated list of available packages in /var/opkg-lists/19.02_lafite Downloading http://downloads.pangubox.com:6380/pandorabox/19.02/packages/mipsel_1004kc_dsp/mtkdrv/Packages.gz Updated list of available packages in /var/opkg-lists/19.02_mtkdrv Downloading /Packages.gz *** Failed to download the package list from /Packages.gz

Collected errors: