What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Entware Lost /opt/bin files

swie99

Occasional Visitor
Hello,
I accidentally deleted files in /opt/bin directory and now I don't know how reinstall/add binary files again here.
Some of files I added manually like opkg, php8-fpm...

Now I have wget error 5 code when I try run opkg update command.

What should I do in this case ?
Of course I cant loss any data from my disk because I have runned and configured web server ...

Try run installation script of opkg ?
 
Of course I cant loss any data from my disk because I have runned and configured web server ...
Backups, backups, backups!

Wget 5 error code is SSL verification failure
Make sure your clock is synced, maybe you also deleted some files in /opt/etc/ssl?

What I would do is to force reinstall all the packages:
Code:
# manually
opkg list-installed
opkg install --force-reinstall <package>

# or automatic, as one command:
opkg list-installed | awk '{print $1}' | while read -r pkg; do opkg install --force-reinstall "$pkg"; done
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top