Jump to content

opkg 404 error


sploders101

Recommended Posts

Posted

I just got my new Shark Jack in the mail today, and when I was playing around with it I realized it didn't have curl. I saw on the guide that it comes with opkg to install extra packages, but it seems to reference the 18.04-SNAPSHOT version in the OpenWRT repositories, which does not exist. I started looking through the packages, found some dates, and looked for the version that has "Last Modified" dates similar to the Shark Jack version, and settled on 18.04.1. However, I'm not sure if this is correct. So far, it's worked for libustream-mbedtls, ca-bundle, ca-certificates, nano, and curl, and seems to be fine. Can someone confirm this? Ideally, I'd like to see an official firmware update with fixed URLs, but this seems to work for now.

 

Thanks!

Posted

What Shark Jack model is it? Battery or cable? What firmware is it on? 18.04 doesn't seem correct, it should be using 18.06 distfeeds. The snapshots aren't available anymore. It's not any official solution, but the 18.06.0 distfeed should be possible to use.

  • 4 weeks later...
Posted

Can someone help me with the issues I am having with the shark jack. I have the battery operated shark jack. It is has firmware 1.10. The problem is that opkg does not update. I have check the distrofeeds and it has 18.06  I can't use this product with the features I wanted it to do. How can I update opkg and download any packages. BTW the shark jack has internet connection with no firewall set in place.

root@shark:~# cat VERSION
1.1.0
root@shark:~#

 

root@shark:~# opkg update
Downloading http://downloads.hak5.org/packages/shark/1907//Packages.gz
*** Failed to download the package list from http://downloads.hak5.org/packages/shark/1907//Packages.gz

Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/Packages.gz

Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.gz

Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.gz

Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.gz

Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.gz

Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony/Packages.gz

 

 

root@shark:~# ping google.com
PING google.com (142.250.72.142): 56 data bytes
64 bytes from 142.250.72.142: seq=0 ttl=59 time=29.849 ms
64 bytes from 142.250.72.142: seq=1 ttl=59 time=24.082 ms

 

Posted

I’m just now seeing this as I’m going to bed, but I did fix this before posting here; I just wasn’t sure if it was the right way to fix it, but I haven’t experienced any issues thus far. I will plug in my shark jack tomorrow morning and post my exact configuration here so you can give it a try.

Posted
8 hours ago, pejmun said:

I have check the distrofeeds and it has 18.06

Where did you check that? Also, just being 18.06 isn't enough (since the already existing distfeeds are using 18.06, but the "snapshot" version which isn't available anymore). As I said before, use 18.06.0. Not an official fix, but should work. Also make sure that the date and time is correct on the Shark before issuing opkg update.

Posted

Thank you for the response, so what is the link that I need to change with the current distrofeeds file located in /etc/opkg/distfeeds.conf. This is what I have in the distfeeds.conf. I want to edit it and change them with working versions. I can't find for e.g. packages, base, luci, packages,routing,telephony ? Im on https://archive.openwrt.org/releases/18.06.0/targets/  but cant find the correct root target.

 

src/gz openwrt_core http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages
src/gz openwrt_base http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base
src/gz openwrt_luci http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci
src/gz openwrt_packages http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages
src/gz openwrt_routing http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing
src/gz openwrt_telephony http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony
~
~
~

 

 

Posted

ok so in case anybody is having the same issue, I have changed the following via vi /etc/opkg/distfeeds.conf 

 

src/gz openwrt_core http://downloads.openwrt.org/releases/18.06.0/targets/ramips/mt76x8/packages
src/gz openwrt_base http://downloads.openwrt.org/releases/18.06.0/packages/mipsel_24kc/base
src/gz openwrt_luci http://downloads.openwrt.org/releases/18.06.0/packages/mipsel_24kc/luci
src/gz openwrt_packages http://downloads.openwrt.org/releases/18.06.0/packages/mipsel_24kc/packages
src/gz openwrt_routing http://downloads.openwrt.org/releases/18.06.0/packages/mipsel_24kc/routing
src/gz openwrt_telephony http://downloads.openwrt.org/releases/18.06.0/packages/mipsel_24kc/telephony

 

I looks like it did update but it failed Failed to download http://downloads.hak5.org/packages/shark/1907//Packages.gz . Will this cause any issues and is there any work around this. Thank you

 

Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading http://downloads.openwrt.org/releases/18.06.0/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
Collected errors:
 * opkg_download: Failed to download http://downloads.hak5.org/packages/shark/1907//Packages.gz, wget returned 8.
root@shark:~# vi /etc/opkg/distfeeds.conf

 

Posted
24 minutes ago, pejmun said:

I looks like it did update but it failed Failed to download http://downloads.hak5.org/packages/shark/1907//Packages.gz . Will this cause any issues and is there any work around this

For now; no. It's just a "dummy packages" file and doesn't have any impact on the system/updates at the moment. You can see for yourself by downloading the gz file and opening it and look at the only file that is in there (says "fakepackage").

Posted

As far as I know, nothing. If I remember it correctly it has just been a "placeholder" when it comes to the Shark specifically, i.e. "for future use".

I think the reason to why it fails is because of a correct public key that is not available to verify it all.

If you download the file manually (using wget for example), it works OK, but not using opkg and that's probably because of the fact that opkg is trying to validate using "usign" but is unable to verify it all and fails. It was a while since I looked further into it, but I think that was my conclusion. However, I just let it be since the Hak5 package file didn't add anything to it all being a "dummy".

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...