Hello, i have some error with "opkg list-upgradable" command in terminal, can any one help me to fix this?
\Overlay\ folder is in external usb drive
root@GL-AX1800:~# opkg list-upgradable
zerotier - 1.8.4-1 - 1.8.4-2
Collected errors:
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/gl-sdk4-mwan3.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-manager.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-pcompress.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-urllib.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/ddns-scripts-services.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-cts.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-light.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libopenldap.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-aead.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-pydoc.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libacl.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/liblzma.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-md5.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-fs-nfsd.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/acl.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/gl-sdk4-ui-adminpw.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/nfs-kernel-server-utils.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/mqtt.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-cryptodome.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-email.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/ddns-scripts.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-cgitb.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-decimal.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/tailscaled.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libarchive.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-hmac.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-dm.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libwrap.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-xml.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libkeyutils1.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/gl-sdk4-repeater.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/gl-sdk4-mqtt.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-fs-nfs-v4.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-fs-nfs-common-rpcsec.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-dax.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-ncurses.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-distutils.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-cbc.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-codecs.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/rpcbind.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-multiprocessing.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/nfs-kernel-server.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libffi.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-base.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libpython3-3.9.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-dnsresolver.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-sqlite3.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-ecb.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-des.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-readline.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-gdbm.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-dbm.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/httping.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-null.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-fs-nfs.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-openssl.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-asyncio.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/mwan3.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-cgi.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-fs-exportfs.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/nfs-utils-libs.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-logging.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/gl-sdk4-ui-modemmanage.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-ctypes.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/gl-sdk4-cloud-batch-manage.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-lzma.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-fs-nfs-common.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libdevmapper.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libgdbm.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libsasl2.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-arc4.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-sha1.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-unittest.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libdb47.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/libnghttp2-14.list: No such file or directory.
root@GL-AX1800:~#
bruce
2
Check your opkg configuration:
/etc/opkg.conf
Make sure the 'option overlay_root' path has been updated to your custom installation location, examle, if the /mnt/sd1 is your external usb drive
option overlay_root /mnt/sda1
1 Like
I change it as you say:
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /dev/sdb1
and i try
option overlay_root /tmp/mountd/disk1_part1
My mount point, usb flash with /overlay is /tmp/mountd/disk1_part1 |18.71 GiB / 19.90 GiB
But have same errors with both variant
root@GL-AX1800:~# opkg list-upgradable
zerotier - 1.8.4-1 - 1.8.4-2
Collected errors:
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/gl-sdk4-mwan3.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-manager.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/kmod-crypto-pcompress.list: No such file or directory.
* pkg_get_installed_files: Failed to open //usr/lib/opkg/info/python3-urllib.list: No such file or dire
bruce
4
Reset back to:
option overlay_root /overlay
And may try this method:
- The installation directory of the opkg plugins in /usr/lib/opkg/
- Copy the opkg plugins folder to the external disk, example:
cp -r /usr/lib/opkg/ /tmp/mountd/disk1_part1
- Create a sym-link at the path of the original opkg plugins folder, point to the new opkg folder in the external disk. Bring the system to find the new path of the opkg:
ln -s /tmp/mountd/disk1_part1 /usr/lib/opkg
- Reboot
1 Like
in /etc/opkg.conf
option overlay_root /tmp/mountd/disk1_part1
do all command and reboot
result:
but errors a same 
admon
6
I am highly confused that all the paths start with // - guess this shouldn't be the case.
You right its weird, but i don't understand how fix it. 
bruce
8
Try the post #3, does this methed works?
Post #3 is mine.
I do as you say copy folder and etc
cp -r /usr/lib/opkg/ /tmp/mountd/disk1_part1
I show it in screen, all file is copy
But error is same.
Upd. Oh I forget about this:
Reset back to:
option overlay_root /overlay
Try it tomorrow.
change to:
option overlay_root /overlay
but same errors 
bruce
11
Update the steps:
## This file /etc/opkg.conf, the overlay path is default.
option overlay_root /overlay
cp -r /usr/lib/opkg/ /tmp/mountd/disk1_part1
mv /usr/lib/opkg /usr/lib/opkgbak
ln -s /tmp/mountd/disk1_part1/opkg /usr/lib/
reboot
opkg update
I do all this and record process to video, no results, same error
bruce
13
I assume you require to check if the command 'cp -r /usr/lib/opkg/ /tmp/mountd/disk1_part1' works.
#Check the folder copy completely:
ls -R /tmp/mountd/disk1_part1/

Ok, check it, all log is here
Log ax1800.zip (25.2 KB)
bruce
17
if this command done?
I think you should follow my post commands to execute all of them one by one
I already show how I enter all commands in video in this post, one by one.
bruce
19
I assume you have some modify commands/steps are wrong before my commands posted...
Reset the router and delete the opkg folder in the U-Disk, and do that again, also please check the screenshoots I posted.
This is is a main line of problem, that i don't want to wipe my router, i have many installed and configured package that i don't want gone. But if the are no any solution, i must do this. Any way thanks for trying to help. 
1 Like