Errors were encountered while processing:, qubes-core-agent-passwordless-root? (now cant install things?)

36 views
Skip to first unread message

Stumpy

unread,
Mar 16, 2020, 4:17:09 PM3/16/20
to Qubes users
Hi, my previous post was perhaps inappropriate in that i mixed posts so
i am repostin gjust about this one issue.

I am now getting the following when i try to update or install anything
(in this case lutris)

user@gaming:~$ sudo apt-get install lutris
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
cabextract curl fluid-soundfont-gm fluid-soundfont-gs
gir1.2-gdesktopenums-3.0 gir1.2-gnomedesktop-3.0 lib32gcc1
libc6-i386 libcurl4 libmspack0 mesa-utils p7zip python3-evdev
python3-yaml
Suggested packages:
fluidsynth timidity p7zip-full python-evdev-doc
The following packages will be REMOVED:
qubes-core-agent-passwordless-root
The following NEW packages will be installed:
cabextract curl fluid-soundfont-gm fluid-soundfont-gs
gir1.2-gdesktopenums-3.0 gir1.2-gnomedesktop-3.0 lib32gcc1
libc6-i386 libcurl4 libmspack0 lutris mesa-utils p7zip python3-evdev
python3-yaml
0 upgraded, 15 newly installed, 1 to remove and 1 not upgraded.
1 not fully installed or removed.
Need to get 0 B/128 MB of archives.
After this operation, 174 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 149744 files and directories currently installed.)
Removing qubes-core-agent-passwordless-root (4.0.51-1+deb10u1) ...
Removing user user from group sudo
gpasswd: user 'user' is not a member of 'sudo'
dpkg: error processing package qubes-core-agent-passwordless-root
(--remove):
installed qubes-core-agent-passwordless-root package post-removal
script subprocess returned error exit status 3
Errors were encountered while processing:
qubes-core-agent-passwordless-root
E: Sub-process /usr/bin/dpkg returned an error code (1)


As a result it seems i cant update and i know i cant install things (and
the error itself looks, troubling?)

Thanks in advance

Frank

unread,
Mar 17, 2020, 6:39:03 AM3/17/20
to qubes...@googlegroups.com
> On 16. Mar 2020, at 21:17, Stumpy <stu...@posteo.net> wrote:
>
> Hi, my previous post was perhaps inappropriate in that i mixed posts so i am repostin gjust about this one issue.
If you remove qubes-core-agent-passwordless-root you can’t do sudo anymore without quite a bit more configuration.

Therefore, as soon as apt-get removes that package the post-install-scripts might fail.

You should be able to get around that by starting a root user terminal in the effected qube by executing „qvm-run -u root <qube-name> xterm“ in a dom0 terminal.

In the resulting terminal window do „apt-get install qubes-core-agent-passwordless-root“ to fix your problem (or apt-get remove ... if you actually DO want to remove the package).

Regards, Frank

unman

unread,
Mar 17, 2020, 11:38:19 AM3/17/20
to Qubes users
This is a known issue, fixed in updated templates.
The problem (and solution) is clearly stated -

> Removing user user from group sudo
> gpasswd: user 'user' is not a member of 'sudo'

If you *do* want to remove that package, then (if necessary) create the
group 'sudo' , add 'user' to it, and then remove the package.
sudo su -
(addgroup sudo)
usermod -a -G sudo user
apt remove qubes-core-agent-passwordless-root

Stumpy

unread,
Mar 18, 2020, 11:30:33 AM3/18/20
to qubes...@googlegroups.com
The problem/solution is a bit fuzzy to me, sorry.

Though based on your saying it was fixed in the updated templates i
tried to just start over with:

[frank@dom0 ~]$ sudo qubes-dom0-update --action=reinstall
qubes-template-debian-10

then did a:

sudo apt update && sudo apt upgrade

which went well but then when i tried to install some packages i am back
where i started with the error like:

user@debian-10:~$ sudo apt-get install mediainfo
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libmediainfo0v5 libmms0 libtinyxml2-6a libzen0v5
Suggested packages:
mediainfo-gui
The following packages will be REMOVED:
qubes-core-agent-passwordless-root
The following NEW packages will be installed:
libmediainfo0v5 libmms0 libtinyxml2-6a libzen0v5 mediainfo
0 upgraded, 5 newly installed, 1 to remove and 6 not upgraded.
1 not fully installed or removed.
Need to get 2,246 kB of archives.
After this operation, 7,578 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://deb.debian.org/debian buster/main amd64 libmms0 amd64
0.6.4-3 [34.6 kB]
Get:2 https://deb.debian.org/debian buster/main amd64 libtinyxml2-6a
amd64 7.0.0+dfsg-1 [29.3 kB]
Get:3 https://deb.debian.org/debian buster/main amd64 libzen0v5 amd64
0.4.37-1 [102 kB]
Get:4 https://deb.debian.org/debian buster/main amd64 libmediainfo0v5
amd64 18.12-2 [2,003 kB]
Get:5 https://deb.debian.org/debian buster/main amd64 mediainfo amd64
18.12-2 [77.1 kB]
Fetched 2,246 kB in 12s (194 kB/s)

(Reading database ... 109007 files and directories currently installed.)
Removing qubes-core-agent-passwordless-root (4.0.51-1+deb10u1) ...
Removing user user from group sudo
gpasswd: user 'user' is not a member of 'sudo'
dpkg: error processing package qubes-core-agent-passwordless-root
(--remove):
installed qubes-core-agent-passwordless-root package post-removal
script subprocess returned error exit status 3
Errors were encountered while processing:
qubes-core-agent-passwordless-root
E: Sub-process /usr/bin/dpkg returned an error code (1)


I do not want to remove qubes-corepasswordless-root, i am guessing that
is the known issue that was reffered to but the solution is less than
clear to me as reinstalling then updateing/upgrading the template did
not work.

apologies

Stumpy

unread,
Mar 18, 2020, 4:33:17 PM3/18/20
to qubes...@googlegroups.com
Thought about trying

sudo apt update && sudo apt dist-upgrade

seemed to work without a hitch, but then tried to install an app again
and got the same thing.

unman

unread,
Mar 18, 2020, 9:54:30 PM3/18/20
to qubes...@googlegroups.com
On Wed, Mar 18, 2020 at 04:33:09PM -0400, Stumpy wrote:
> > I do not want to remove qubes-corepasswordless-root, i am guessing that
> > is the known issue that was reffered to but the solution is less than
> > clear to me as reinstalling then updateing/upgrading the template did
> > not work.
> >
> > apologies
> >
>
> Thought about trying
>
> sudo apt update && sudo apt dist-upgrade
>
> seemed to work without a hitch, but then tried to install an app again and
> got the same thing.
>

I cant explain how you have ended up in this position - did you
mistakenly mark it to be removed?
If you don't want to remove the package, run aptitude,select the
qubes-core-agent-passwordless-root package and mark it with + to show it
should be installed.
Then hit g to process.


Stumpy

unread,
Mar 19, 2020, 9:03:34 AM3/19/20
to qubes...@googlegroups.com
Thank you unman!
I really dont think I mistakenly marked it to be removed but hey, at
this point i dont know how else i ended up here.

Regardless, I almost never use aptitude so didnt even think of it, so i
tried it and viola! I was able to install (and then use) apps without
any obvious errors. I will not pretend to understand why that worked but
I appreciate the ongoing help all the same. now i have a usable template
again!!!

A few notes. Installing separately via aptitude seems to work, but using
a file to install a few things seems to throw up the same error again,
but after that error i can still install/run the app if i just install
it directly via aptitude, perhaps the output will clarify things:

user@debian-10:~$ source manually_installed-Debian.txt
No candidate version found for wine32
Unable to apply some actions, aborting
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'thunderbird' is not installed, so not removed
The following packages will be REMOVED:
qubes-core-agent-passwordless-root
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 62.5 kB disk space will be freed.
(Reading database ... 132149 files and directories currently installed.)
Removing qubes-core-agent-passwordless-root (4.0.51-1+deb10u1) ...
Removing user user from group sudo
gpasswd: user 'user' is not a member of 'sudo'
dpkg: error processing package qubes-core-agent-passwordless-root
(--remove):
installed qubes-core-agent-passwordless-root package post-removal
script subprocess returned error exit status 3
Errors were encountered while processing:
qubes-core-agent-passwordless-root
E: Sub-process /usr/bin/dpkg returned an error code (1)

user@debian-10:~$ vi manually_installed-Debian.txt
user@debian-10:~$ cat manually_installed-Debian.txt
sudo aptitude install wine wine32 wine64 terminator smplayer mpv vlc
hugin digikam darktable sshfs lutris mediainfo mediainfo-gui mkvtoolnix
mkvtoolnix-gui default-jre firejail gimp wget vi-enhanced progress
firejail-tools filezilla -y
sudo apt remove thunderbird -y

user@debian-10:~$ sudo aptitude install terminator
The following NEW packages will be installed:
gir1.2-keybinder-3.0{a} gir1.2-vte-2.91{a} libkeybinder-3.0-0{a}
python3-configobj{a} python3-psutil{a} terminator
0 packages upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,078 kB/1,108 kB of archives. After unpacking 3,814 kB will
be used.
Do you want to continue? [Y/n/?] y
Get: 1 https://deb.debian.org/debian buster/main amd64
libkeybinder-3.0-0 amd64 0.3.2-1 [7,904 B]
Get: 2 https://deb.debian.org/debian buster/main amd64
gir1.2-keybinder-3.0 amd64 0.3.2-1 [3,536 B]
Get: 3 https://deb.debian.org/debian buster/main amd64 gir1.2-vte-2.91
amd64 0.54.2-2 [529 kB]
Get: 4 https://deb.debian.org/debian buster/main amd64 python3-configobj
all 5.0.6-3 [35.7 kB]
Get: 5 https://deb.debian.org/debian buster/main amd64 python3-psutil
amd64 5.5.1-1 [166 kB]
Get: 6 https://deb.debian.org/debian buster/main amd64 terminator all
1.91-4 [335 kB]
Fetched 1,078 kB in 6s (191 kB/s)
Selecting previously unselected package libkeybinder-3.0-0:amd64.
(Reading database ... 132149 files and directories currently installed.)
Preparing to unpack .../0-libkeybinder-3.0-0_0.3.2-1_amd64.deb ...
Unpacking libkeybinder-3.0-0:amd64 (0.3.2-1) ...
Selecting previously unselected package gir1.2-keybinder-3.0.
Preparing to unpack .../1-gir1.2-keybinder-3.0_0.3.2-1_amd64.deb ...
Unpacking gir1.2-keybinder-3.0 (0.3.2-1) ...
Selecting previously unselected package gir1.2-vte-2.91:amd64.
Preparing to unpack .../2-gir1.2-vte-2.91_0.54.2-2_amd64.deb ...
Unpacking gir1.2-vte-2.91:amd64 (0.54.2-2) ...
Selecting previously unselected package python3-configobj.
Preparing to unpack .../3-python3-configobj_5.0.6-3_all.deb ...
Unpacking python3-configobj (5.0.6-3) ...
Selecting previously unselected package python3-psutil.
Preparing to unpack .../4-python3-psutil_5.5.1-1_amd64.deb ...
Unpacking python3-psutil (5.5.1-1) ...
Selecting previously unselected package terminator.
Preparing to unpack .../5-terminator_1.91-4_all.deb ...
Unpacking terminator (1.91-4) ...
Setting up libkeybinder-3.0-0:amd64 (0.3.2-1) ...
Setting up gir1.2-keybinder-3.0 (0.3.2-1) ...
Setting up python3-psutil (5.5.1-1) ...
Setting up python3-configobj (5.0.6-3) ...
Setting up gir1.2-vte-2.91:amd64 (0.54.2-2) ...
Setting up terminator (1.91-4) ...
update-alternatives: using /usr/bin/terminator to provide
/usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode
Processing triggers for mime-support (3.62) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for qubes-core-agent (4.0.51-1+deb10u1) ...
Processing triggers for desktop-file-utils (0.23-4) ...



Cheers
Reply all
Reply to author
Forward
0 new messages