Download and install package - can't use HTTPS URLs

In System -> Software if I paste an HTTPS link in field Package name or url I get a window with the following text

Collected errors: 
* wfopen: https://github.com/Waujito/youtubeUnblock/releases/download/v1.0.0-rc6/luci-app-youtubeUnblock-1.0.0-6-a03d05c.ipk: No such file or directory. 
* pkg_init_from_file: Failed to extract control file from https://github.com/Waujito/youtubeUnblock/releases/download/v1.0.0-rc6/luci-app-youtubeUnblock-1.0.0-6-a03d05c.ipk.

The *opkg install* command failed with code `255`.

HTTP links are downloaded normally.

Asus RT-AC51U
OpenWrt 23.05.5 r24106-10cc5fcd00 / LuCI openwrt-23.05 branch git-24.264.56413-c7a3562

That is not part of the official project repo, so we can’t tell you what is wrong.

You’ll need to reach out to the maintainer of that package for help.

Which package? The .ipk I'm downloading as an example? It happens with any .ipk. The problem is [probably] with opkg and SSL cerificates. Isn't my OpenWRT and all it's parts official?

If you replace https with http in any link to .ipk it gets installed.

Check your system time. If it is wrong, https will fail.

if time isn't the issue, post the cli output of

cd /tmp
wget https://github.com/Waujito/youtubeUnblock/releases/download/v1.0.0-rc6/luci-app-youtubeUnblock-1.0.0-6-a03d05c.ipk

How to check it?
In http://192.168.1.1/cgi-bin/luci/admin/status/overview
it's
Local Time 2025-02-17 15:00:18
My time zone is UTC+7 which seems to be correct.

root@ASUS:/tmp# wget https://github.com/Waujito/youtubeUnblock/releases/download
/v1.0.0-rc6/luci-app-youtubeUnblock-1.0.0-6-a03d05c.ipk
Downloading 'https://github.com/Waujito/youtubeUnblock/releases/download/v1.0.0-                                          rc6/luci-app-youtubeUnblock-1.0.0-6-a03d05c.ipk'
Connecting to 140.82.121.4:443
Redirected to /github-production-release-asset-2e65be/831758478/bfa65f1b-5c66-45                                          ea-b252-55ca6d1606f3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseas                                          setproduction%2F20250217%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20250217T080                                          151Z&X-Amz-Expires=300&X-Amz-Signature=f959638af7809a8605c2da636b437ad5ebfcb6cd5                                          3d77c8696a615e41491d92b&X-Amz-SignedHeaders=host&response-content-disposition=at                                          tachment%3B%20filename%3Dluci-app-youtubeUnblock-1.0.0-6-a03d05c.ipk&response-co                                          ntent-type=application%2Foctet-stream on objects.githubusercontent.com
Writing to 'bfa65f1b-5c66-45ea-b252-55ca6d1606f3?X-Amz-Algorithm=AWS4-HMAC-SHA25                                          6'
bfa65f1b-5c66-45ea-b 100% |*******************************|  7542   0:00:00 ETA
Download completed (7542 bytes)
root@ASUS:/tmp#
1 Like

ok, so it works ...

now you could try opkg install /tmp/luci-app-youtubeUnblock-1.0.0-6-a03d05c.ipk

if it fails, you'd have to go back to the maintainer, as pointed out by @psherman.

There's no such file. WGET downloads with wrong name bfa65f1b-5c66-45ea-b252-55ca6d1606f3?X-Amz-Algorithm=AWS4-HMAC-SHA256
It may be the key to the solution ...

yes, I was going to update my post, you need to rename it afterwards.

1 Like

It works even in web UI if I download file and install it. I want to fix installing packages by links.

I tested wget with HTTP, it also uses wrong name, so the problem seems to be in something else.

if you install wget-ssl, it'll save the file using the correct name.

Yes, but it doesn't solve initial problem. The behaviour is the same.

I also upgraded luci-app-opkg and luci. No visible changes.

works just fine in 24.10.

https://openwrt.org/meta/infobox/upgrade_packages_warning

1 Like

Thanks for your warning. I generally follow the rule " If it’s not broken, don’t fix it". I wanted to test if solves the problem. Is restoring from the backup ok to revert it?

1 Like

Oh, I didn't know verstion 24 is released for my hardware. When I installed it was 23 was the latest.

Where can I download 23.05.5 in case something goes wrong?

restoring what from, backup ?

https://firmware-selector.openwrt.org/

1 Like

/cgi-bin/luci/admin/system/flash
upload archive

no, that archive only contains the config, not the packages.

1 Like