Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

上游源全部采用apk方式,软件包无法更新,请问如何解决 #660

Open
sztuxp opened this issue Nov 17, 2024 · 8 comments
Open

Comments

@sztuxp
Copy link

sztuxp commented Nov 17, 2024

上游源全部采用apk方式,软件包无法更新,请问如何解决

@jlhhb
Copy link

jlhhb commented Nov 17, 2024

同问:系统信息如下:
DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='SNAPSHOT'
DISTRIB_REVISION='R2024.11.01'
DISTRIB_TARGET='armsr/armv8'
DISTRIB_ARCH='aarch64_generic'
DISTRIB_DESCRIPTION='OpenWrt SNAPSHOT r0-2b173ab'
DISTRIB_TAINTS='no-all'
DISTRIB_SOURCECODE='official'

S905L Q5盒子,使用自带源的时候更新软件提示:
Downloading http://downloads.openwrt.org/snapshots/targets/armsr/armv8/packages/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/targets/armsr/armv8/packages/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/packages/aarch64_generic/base/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/packages/aarch64_generic/base/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/packages/aarch64_generic/luci/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/packages/aarch64_generic/luci/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/packages/aarch64_generic/packages/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/packages/aarch64_generic/packages/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/packages/aarch64_generic/routing/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/packages/aarch64_generic/routing/Packages.gz

Downloading http://downloads.openwrt.org/snapshots/packages/aarch64_generic/telephony/Packages.gz
*** Failed to download the package list from http://downloads.openwrt.org/snapshots/packages/aarch64_generic/telephony/Packages.gz

Collected errors:

检测wget正常,排除网络,DNS,wget问题

@jlhhb
Copy link

jlhhb commented Nov 17, 2024

以下载zerotier为例,补充:
root@OpenWrt:/tmp# wget https://mirror-03.infra.openwrt.org/snapshots/packages/aarch64_generic/packages/zerotier-1.14.1-r1.apk
--2024-11-17 19:55:17-- https://mirror-03.infra.openwrt.org/snapshots/packages/aarch64_generic/packages/zerotier-1.14.1-r1.apk
Resolving mirror-03.infra.openwrt.org... 198.18.1.26
Connecting to mirror-03.infra.openwrt.org|198.18.1.26|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 554258 (541K) [application/octet-stream]
Saving to: 'zerotier-1.14.1-r1.apk'

zerotier-1.14.1-r1.apk 100%[================================================================>] 541.27K 276KB/s in 2.0s

2024-11-17 19:55:21 (276 KB/s) - 'zerotier-1.14.1-r1.apk' saved [554258/554258]

root@OpenWrt:/tmp# chmod 777 zerotier-1.14.1-r1.apk
root@OpenWrt:/tmp# opkg install zerotier-1.14.1-r1.apk
Unknown package 'zerotier-1.14.1-r1.apk'.
Collected errors:

  • opkg_install_cmd: Cannot install package zerotier-1.14.1-r1.apk.

@jlhhb
Copy link

jlhhb commented Nov 17, 2024

再补充:试过official、immortalwrt,版本均有以上问题

@xrgzs
Copy link

xrgzs commented Nov 22, 2024

同问,apk是趋势,能不能给官方的构建改成apk?

@ophub
Copy link
Owner

ophub commented Nov 22, 2024

看官方的帖子说main分支已经是apk了(11月16日发的),我2天前刚编译了一遍,official、immortalwrt的2个tags都使用的他们的源码,编译的不是最新的apk固件?

使用Image Builder是调用官方编译的固件进行重构,你使用这个编译固件总该是apk了吧。

https://forum.openwrt.org/t/the-future-is-now-opkg-vs-apk/201164

支持apk可能是需要打开这个选项。

# CONFIG_USE_APK is not set

@sztuxp
Copy link
Author

sztuxp commented Nov 22, 2024

看官方的帖子说main分支已经是apk了(11月16日发的),我2天前刚编译了一遍,official、immortalwrt的2个tags都使用的他们的源码,编译的不是最新的apk固件?

使用Image Builder是调用官方编译的固件进行重构,你使用这个编译固件总该是apk了吧。

https://forum.openwrt.org/t/the-future-is-now-opkg-vs-apk/201164

支持apk可能是需要打开这个选项。

# CONFIG_USE_APK is not set

大佬,我特意下了你前2天编译的版本,软件包更新列表还是错误,请问一下,APK软件包有新的更新列表格式吗?

@ophub
Copy link
Owner

ophub commented Nov 22, 2024

你把网络接口配置好了可以正常访问网络了吗?这个源是官方自带的,理论上网络正常就可以下载,或者这个源站在国外?你要用那种网?

@sztuxp
Copy link
Author

sztuxp commented Nov 24, 2024

网络接口没问题,个人感觉APK列出源站列表时,不需要Packages.gz ,因此新的源站都没有这个文件,但用旧的格式去更新列表时,因找不到Packages.gz类似的索引文件,就会出错, 新的软件库好像是一个json索引文件,比如 https://downloads.openwrt.org/snapshots/packages/aarch64_generic/routing/index.json,而不是http://downloads.openwrt.org/snapshots/packages/aarch64_generic/routing/Packages.gz
。请看二楼报错信息就知道。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants