对于自编译固件,少编译一个包有什么补救办法

2023-02-19 14:40:29 +08:00
 Bigbigmouse
  1. 我之前安装了不带 docker 版本的 Openwrt (编译自https://github.com/DHDAXCW/OpenWRT_x86_x64)。
  2. 我现在想要安装 docker 进来,发现使用 opkg update && opkg install dockerd 会报错内核不匹配:
     $ opkg info kernel
     Package: kernel
     Version: 6.1.8-1-c2eafb8d50736566bfff7ce0838adc2a
     Depends: libc
     Status: install user installed
     Architecture: x86_64
     Installed-Time: 1674992147
    
     $ opkg install dockerd
     ...
     $ opkg install dockerd
     Collected errors:
      * pkg_hash_check_unresolved: cannot find dependency kmod-ipt-physdev for dockerd
      * pkg_hash_check_unresolved: cannot find dependency kmod-nf-ipvs for dockerd
      * pkg_hash_check_unresolved: cannot find dependency kmod-veth for dockerd
      * pkg_hash_check_unresolved: cannot find dependency libnetwork for dockerd
      * pkg_hash_check_unresolved: cannot find dependency tini for dockerd
      * pkg_hash_check_unresolved: cannot find dependency uci-firewall for dockerd
      * pkg_hash_fetch_best_installation_candidate: Packages for dockerd found, but incompatible with the architectures configured
      * opkg_install_cmd: Cannot install package dockerd.
    
  3. 经过了解,我知道了自编译进去的固件内核版本号带一个 hash ,因此直接使用官方的固件源是无法安装的。
  4. 想问问大家是否可以在不重新安装的前提条件下,安装一个 docker 进来呢?
1852 次点击
所在节点    OpenWrt
7 条回复
winterbells
2023-02-19 14:43:07 +08:00
直接重新编译升级安装不就添加了吗,配置保留
Illusionary
2023-02-19 14:48:19 +08:00
如果你原来编译的机器还在,可以把 docker 编译成 ipk 包单独上传安装,记得别更新代码,否则内核版本又对不上了
Bigbigmouse
2023-02-19 16:01:13 +08:00
@Illusionary 那没救了😭,之前的内容已经不见了。
paw0323
2023-03-13 17:53:06 +08:00
把内核版本修改成跟官方库一样的就可以直接装了
Bigbigmouse
2023-03-17 23:57:06 +08:00
@paw0323 还是需要重新编译内核对吗
paw0323
2023-03-20 02:08:59 +08:00
@Bigbigmouse 应该不需要吧,我记得在油管看到过类似视频,就是自编译固件怎么下载官方库的
yaott2020
361 天前
自编译貌似不能完全用官方库,因为某些 kmod 依赖内核版本,所以建议直接用官方的包。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/917353

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX