0

So I locked my root account for security purposes.

It seems that for some reason when apper asks for the root password when installing, deinstalling or updating packages it doesn't make use of the sudo command (why?!) and hence I get an authentication error when entering my password there. Meaning I have to start apper as root via sudo apper to be able to update/de/install packages.

Now the problem I have with that is that I get a bunch of errors in the console when executing either apper or sudo apper and apper looks really strange and old and all its icons aren't shown.

The errors are:

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' QCommandLineParser: option not defined: "install-mime-type"
QCommandLineParser: option not defined: "install-package-name"
QCommandLineParser: option not defined: "install-provide-file"
QCommandLineParser: option not defined: "install-catalog"
QCommandLineParser: option not defined: "remove-package-by-file"
Invalid pixmap specified.
QOBject::connect: No such slot MainUi::seetCaption(QString)
QObject::connect: (sendern name:
'ApperKCM') void PackageModel::clear()
No frame loaded No frame loaded
...
void PackageModel::finished() PackageKit::Transaction(0xsomecode) PackageKit::Transaction(0xsamecode)
...

The 2nd time executed that command I got fewer errors and some new ones:

Reusing existing ksycoca
Recreating ksycoca file ("/root/.cache/ksycoca5_..., version id)
Still in the time dict (i.e. deleted files) ("apps", "servicetypes", "services")
Menu "application-kmenuedit.menu not found.
Saving
...
QObject::connect: No such slot MainUi::setCaption(QString)
QObject::connect: (sender name: 'ApperKCM')

So my question: what do these errors mean - what's causing them? And how to fix them? And how to get apper to look normal when opening it via sudo (this probably has to do with these errors).

I'm using Debian 9.1 with KDE and Dolphin.

0

Have A Look This Problem Here: https://wiki.debian.org/sudo In The Section: "Problems and tips"

"PATH not set" Section: A typical error using sudo to install a package might result in:

dpkg: warning: 'ldconfig' not found in PATH or not executable. dpkg: warning: 'start-stop-daemon' not found in PATH or not executable. dpkg: error: 2 expected programs not found in PATH or not executable. Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.

The packaged /etc/sudoers file contains this line:

Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.