Opkg db is gone?

Hi all,
I have gotten myself into a bit of trouble today. I did:

opkg list-upgradable

Saw a ton of packages that needed to be updated so typed in:

opkg list-upgradable |awk -- '{print $1}' |xargs opkg upgrade

...and off we went upgrading packages until it froze and my router stopped passing traffic. I powercycled my router and all went back to normal. I am able to surf, and it seems that everything is OK. Luci still has the functions I expect, like adblock, and OpenVPN, etc.

I then went to see what was left to upgrade and got this result:

root@Schmanimals:~# opkg list-upgradable
root@Schmanimals:~# opkg list-installed

I'm pretty sure this is bad - is there any way to recover my opkg db? I did do a back up right before I tried the above, but restoring didn't resolve the issue.

Just nothing is showing up in opkg via cli nor web interface.

Any suggestions/thoughts, please?

1 Like

Opkg database:

  • /usr/lib/opkg - current
  • /rom/usr/lib/opkg - default

The rest is up to you, good luck!

1 Like

This is perfect! That's all I need! Thank you.

1 Like

Did you try to update your package list?

opkg update

After a reboot, your list of available packages is empty.

1 Like

Thank you both!

This is now fixed thanks to your expertise!

Thank you, thank you, thank you!!


This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.