OpenWRT:无法安装包 - 内存问题
OpenWRT: Cant install packages - memory issue
我为我的 TP-Link TL-WR1043N/ND v1 从默认固件切换到 OpenWrt,但我遇到的问题是 无法安装任何新软件包。
我做了什么:
- Flash OpenWrt
- 已安装 Luci(没问题)
当我尝试安装其他任何东西时,我得到:
Collected errors:
* xsystem: wget: vfork: Out of memory.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-app-wshaper_git-15.338.68695-3bae3c7-1_all.ipk, wget returned -1.
* opkg_install_pkg: Failed to download luci-app-wshaper. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package luci-app-wshaper.
重要的事情似乎是:* xsystem: wget: vfork: Out of memory。 是的,我确实尝试了重启和 'update' 几次。
但是在Luci -> Software下我可以看到:
这是我的 DF 输出:
root@OpenWrt:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2048 2048 0 100% /rom
tmpfs 14052 1128 12924 8% /tmp
/dev/mtdblock3 4736 936 3800 20% /overlay
overlayfs:/overlay 4736 936 3800 20% /
tmpfs 512 0 512 0% /dev
root@OpenWrt:~#
OpenWRT 路由器 Link: https://wiki.openwrt.org/toh/tp-link/tl-wr1043nd
制造商Link: http://www.tp-link.com/en/download/TL-WR1043ND_V1.html
请问有人知道是什么导致了这个问题吗?我知道解决方案可能是使用外部 USB 但我想不惜一切代价避免这种情况 + 我无法想象这个路由器会有 space 只是为了 luci :)
进入 /etc/opkg/distfeeds.conf 并注释掉除 base 和 luci 之外的所有内容,前两个。
不知道为什么,但 opkg 开始使用大量 RAM,所有这些都是默认启用的。
这就是我的 distfeeds。起初尝试安装 udpxy 时遇到了一些麻烦,在 conf 中注释了一些点后,一切正常。
$ cat /etc/opkg/distfeeds.conf
src/gz designated_driver_base http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/base
#src/gz designated_driver_kernel http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/kernel
#src/gz designated_driver_telephony http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/telephony
src/gz designated_driver_packages http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/packages
#src/gz designated_driver_routing http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/routing
src/gz designated_driver_luci http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/luci
src/gz designated_driver_management http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/management
# src/gz designated_driver_targets http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/targets
我为我的 TP-Link TL-WR1043N/ND v1 从默认固件切换到 OpenWrt,但我遇到的问题是 无法安装任何新软件包。
我做了什么:
- Flash OpenWrt
- 已安装 Luci(没问题)
当我尝试安装其他任何东西时,我得到:
Collected errors:
* xsystem: wget: vfork: Out of memory.
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/luci/luci-app-wshaper_git-15.338.68695-3bae3c7-1_all.ipk, wget returned -1.
* opkg_install_pkg: Failed to download luci-app-wshaper. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package luci-app-wshaper.
重要的事情似乎是:* xsystem: wget: vfork: Out of memory。 是的,我确实尝试了重启和 'update' 几次。
但是在Luci -> Software下我可以看到:
这是我的 DF 输出:
root@OpenWrt:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 2048 2048 0 100% /rom
tmpfs 14052 1128 12924 8% /tmp
/dev/mtdblock3 4736 936 3800 20% /overlay
overlayfs:/overlay 4736 936 3800 20% /
tmpfs 512 0 512 0% /dev
root@OpenWrt:~#
OpenWRT 路由器 Link: https://wiki.openwrt.org/toh/tp-link/tl-wr1043nd
制造商Link: http://www.tp-link.com/en/download/TL-WR1043ND_V1.html
请问有人知道是什么导致了这个问题吗?我知道解决方案可能是使用外部 USB 但我想不惜一切代价避免这种情况 + 我无法想象这个路由器会有 space 只是为了 luci :)
进入 /etc/opkg/distfeeds.conf 并注释掉除 base 和 luci 之外的所有内容,前两个。
不知道为什么,但 opkg 开始使用大量 RAM,所有这些都是默认启用的。
这就是我的 distfeeds。起初尝试安装 udpxy 时遇到了一些麻烦,在 conf 中注释了一些点后,一切正常。
$ cat /etc/opkg/distfeeds.conf
src/gz designated_driver_base http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/base
#src/gz designated_driver_kernel http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/kernel
#src/gz designated_driver_telephony http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/telephony
src/gz designated_driver_packages http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/packages
#src/gz designated_driver_routing http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/routing
src/gz designated_driver_luci http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/luci
src/gz designated_driver_management http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/management
# src/gz designated_driver_targets http://downloads.openwrt.org/snapshots/trunk/brcm63xx/generic/packages/targets