Unable to execute opkg update command: PermissionError

Just now I updated the luci-app-opkg to version git-24.299.75545-b93fdef for OpenWrt 23.05.5. However, when I click the Update lists button, I receive the error message: Unable to execute opkg update command: PermissionError in the UI.

Interestingly, I can still update opkg via the terminal without any issues.

Is anyone else experiencing this problem? Any assistance would be appreciated!

https://openwrt.org/meta/infobox/upgrade_packages_warning

2 Likes

As posted above, it's not generally suggested to upgrade packages on an embedded device. Aside from the risk of soft-bricking your it, you also use more flash space.

If you desire up-to date packages, you could use:

  • the Firmware Selector; and/or
  • install SNAPSHOT with the selector (this will give you all the "bleeding edge" package versions available in a single firmware)
1 Like

I did not use any scripts; instead, I updated the luci-app-opkg package through LuCI. Could this be a problem?

1 Like

His posts didn't mention scripts.

Yes.

It's not advised to blindly run opkg upgrade

Apparently?

1 Like

I don't understand this. After a restart, to install a new package, I use the command for example: opkg update && opkg install atop. If not, how to recall the package cache?

opkg update only DLds the package index.

opkg upgrade updates actual package(s).

1 Like

Install a new package :white_check_mark: or upgrade and existing package :x: ?

Just run: opkg update

update != upgrade

2 Likes

To clarify, I never stated that I ran the opkg upgrade command. I only updated my packages through LuCi. Exactly the way I have been doing for the last three years.

:+1:

Already understood. It doesn't matter where you upgrade the package, it's not advised to upgrade.

To be clear, the web GUI is a "wrapper" of the underlying command (i.e. opkg upgrade).

You've been quite lucky for 3 years.

1 Like

Let's start over.

Did you install a new package, or was it already there, and did you in that case update/upgrade it ?

2 Likes

This was the status before update.

This is after update.

1 Like

:+1: We 100% understand.

You try rebooting?

I noted you added this:

I noted:

You're lucky you haven't experienced a [serious] issue until now.

1 Like

Yes, I try rebooting, I strongly suspect the revision git-24.299.75545-b93fdef is having some issues.

That's why the wiki entry's there, and not only for the git package.

To clarify, the packages cannot be updated by clicking the update buttons. What is the proper way to update the packages?

Read and understand the wiki; simply don't.

1 Like

You don't update packages under normal circumstances - you update the firmware.

1 Like

Thank you, everyone, especially @frollic and @lleachii. I found it difficult to understand this because I've been working on it for nearly three years now. I appreciate the information you provided.

My last question is: why is the update button appearing in the user interface? If I install a new package later on, could that be considered equivalent to updating a package? I understand the ABI and its limitations.