Updated on 2023-09-13 GMT+08:00

No sudo Permissions

Symptoms

The following log information is displayed.

"stderr": "error: cannot open Packages index using db5 - Permission denied (13)\nerror: cannot open Packages database in /var/lib/rpm\nCRITICAL:yum.main:\ Error: rpmdb open failed"

Cause Analysis

The user does not have the sudo permission and cannot use yum to download related dependencies.

Solution

Grant higher permissions to the user by adding 'user ALL=(ALL) ALL' to the /etc/sudoers file. user indicates the user to grant higher permissions to.

Installing Nginx FAQs

more