Opkg upgrade -- no space left on device

I started upgrading packages with the following command:

opkg list-upgradable | cut -f 1 -d ' ' | xargs opkg upgrade

but it aborted due to insufficient disk space.

Collected errors:
 * pkg_get_installed_files: Failed to open //usr/lib/opkg/info/luci-i18n-base-zh-cn.list: No such file or directory.
 * wfopen: //usr/lib/opkg/info/curl.control: No space left on device.
 * wfopen: //usr/lib/opkg/info/curl.postinst: No space left on device.
 * wfopen: //usr/lib/opkg/info/curl.prerm: No space left on device.
 * wfopen: /usr/bin/curl: No space left on device.
 * pkg_write_filelist: Failed to open //usr/lib/opkg/info/curl.list: No space left on device.
 * opkg_install_pkg: Failed to extract data files for curl. Package debris may remain!
 * opkg_install_cmd: Cannot install package curl.
 * opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status: No space left on device.
 * pkg_write_filelist: Failed to open //usr/lib/opkg/info/curl.list: No space left on device

how do I fix this?

thanks.

Never ever do this!
It will cause your device to brick, mostly. The GL.iNet firmware is not designed to be updated with opkg - only with the released firmware images.

By getting more free space on the device using exroot, for example.

1 Like

did you mean extroot?

Yep, sorry.

https://openwrt.org/docs/guide-user/additional-software/extroot_configuration

1 Like

the extroot guide tells me to start with the following:

opkg update
opkg install block-mount kmod-fs-ext4 e2fsprogs parted kmod-usb-storage

I assume the above will not take much disk space, right?