Jump to content

opkg update error


Recommended Posts

opkg update has an error, not being able to download anything at this custom update URL:

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

I looked at that URL and I get a 404 error. What is supposed to be there?
 

Link to post
Share on other sites

Yes, I am connected to the internet. The rest of the opkg update completes fine.

Here is the full output, hope that helps:

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
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/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-SNAPSHOT/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.

 

 

Link to post
Share on other sites
  • 4 weeks later...

I have the same issue, but also can't install any packages. Shark Jack has internet access. I tried nano and curl with the same result:

root@shark:/etc/opkg# opkg -V2 install curl
opkg_conf_parse_file: Loading conf file /etc/opkg.conf.
opkg_conf_parse_file: Loading conf file /etc/opkg/customfeeds.conf.
opkg_conf_parse_file: Loading conf file /etc/opkg/distfeeds.conf.
pkg_hash_load_feeds: 
pkg_hash_load_feeds: 
pkg_hash_load_status_files: 
pkg_info_preinstall_check: Updating file owner list.
Unknown package 'curl'.
opkg_configure_packages: Configuring unpacked packages.
opkg_configure_packages: Reordering packages before configuring them...
Collected errors:
 * opkg_install_cmd: Cannot install package curl

 

Link to post
Share on other sites
49 minutes ago, Flatlinebb said:

Have you tried


opkg update

I did with the same results as you in your original post.

On a whim I manually upgraded the firmware to the latest version again (was already on 1.1.0) and opkg upgrade produced the same error as before except installing other packages (nano, curl, ...) now works. I have no idea what changed, since I literally just repeated what I did before.

Link to post
Share on other sites
  • 3 weeks later...

I just wanted to point out that this is still an issue - the Hak5 Shark Jack package repository remains unavailable.  Is this intended?

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
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/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-SNAPSHOT/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:~# cat VERSION
1.1.0
root@shark:~#

 

Link to post
Share on other sites
1 hour ago, 3merc said:

I just wanted to point out that this is still an issue - the Hak5 Shark Jack package repository remains unavailable.  Is this intended?

 

Yes. This is still the case, just ignore the error from Hak5's Repo for the moment. All other repo's sync fine.

Link to post
Share on other sites
  • 5 weeks later...
  • 2 months later...

and today, another few months later:

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
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_packages
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing/Packages.sig
Signature check passed.
Downloading http://downloads.openwrt.org/releases/18.06-SNAPSHOT/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-SNAPSHOT/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.

... still broken, but I wonder why i see this double "//" at the end of the link. When opening with Firefox, I can download the package (with both "/" single and "//" double) but not with wget:

root@shark:~# wget http://downloads.hak5.org/packages/shark/1907//Packages.gz
Downloading 'http://downloads.hak5.org/packages/shark/1907//Packages.gz'
Connecting to 172.217.168.83:80
Failed to redirect to /packages/shark/1907//Packages.gz on downloads.hak5.org
root@shark:~# wget http://downloads.hak5.org/packages/shark/1907/Packages.gz
Downloading 'http://downloads.hak5.org/packages/shark/1907/Packages.gz'
Connecting to 172.217.168.83:80
Failed to redirect to /packages/shark/1907/Packages.gz on downloads.hak5.org

The issue is probably the redirect from the original link to https and then to googleapis.com:

http://downloads.hak5.org/packages/shark/1907/Packages.gz -> (307 Internal Redirect (HSTS)) or (302 with wget on ubuntu): https://downloads.hak5.org/packages/shark/1907/Packages.gz

https://downloads.hak5.org/packages/shark/1907/Packages.gz -> 301: https://storage.googleapis.com/hak5-dl.appspot.com/packages/shark/1907/Packages.gz

https://storage.googleapis.com/hak5-dl.appspot.com/packages/shark/1907/Packages.gz

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...