openwrt 安装 wget 出错后就出现 IO Error 了

2015-11-30 08:33:23 +08:00
 markzar
使用的是 openwrt 系统,之前尝试过使用`opkg install` 的命令安装 wget ,然后出现错误,之后就没法再升级或者删除 wget 了,如果执行这个命令

```
opkg install /mnt/sda1/wget_1.16.3-1_ramips_24kec.ipk
```

得到的是这个结果

```
Upgrading wget on root from 1.16.2-1 to 1.16.3-1...
Collected errors:
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/wget.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/wget.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/wget.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/wget.list: No such file or directory.
* wfopen: //usr/lib/opkg/info/wget.control: Input/output error.
* wfopen: //usr/lib/opkg/info/wget.postinst: Input/output error.
* wfopen: //usr/lib/opkg/info/wget.postinst-pkg: Input/output error.
* wfopen: //usr/lib/opkg/info/wget.postrm: Input/output error.
* wfopen: //usr/lib/opkg/info/wget.prerm: Input/output error.
* wfopen: /usr/bin/wget-ssl: Input/output error.
* pkg_write_filelist: Failed to open //usr/lib/opkg/info/wget.list: Input/output error.
* opkg_install_pkg: Failed to extract data files for wget. Package debris may remain!
* opkg_install_cmd: Cannot install package wget.
* opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status: Input/output error.
```

尝试一下删除`/usr/lib/opkg/info/wget.control`

```
rm /usr/lib/opkg/info/wget.control
```

得到的是这个结果

```
rm: can't remove '/usr/lib/opkg/info/wget.control': Input/output error
```

虽然不能删除 /usr/lib/opkg/info 中的 wget 文件,但我看这些文件的内容没什么压力。路由器现在也没有什么别的问题,这个该怎么解决?
590 次点击
所在节点    OpenWrt
1 条回复
xm0625
2015-11-30 16:28:11 +08:00
1.没有通过 usb 拓展存储 -> flash 颗粒损坏
2.通过 usb 拓展了存储 -> 硬盘供电不足或者 usb 故障

不排除固件 bug 的可能

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

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

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

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

© 2021 V2EX