Asking Template VM 'user' passsword after running autoremove.

13 views
Skip to first unread message

wlmi...@gmail.com

unread,
Aug 24, 2018, 9:18:26 AM8/24/18
to qubes-users
Hi
I wanted to clean up my Template VM by running sudo dnf autoremove and sudo apt autoremove..
But after this, Template vm started asking user's password which I don't know and can run sudo..
And After restart qubes os, network manager is not running so I can't connect to the internet..
How can I solve this issue?

Chris Laprise

unread,
Aug 24, 2018, 12:36:39 PM8/24/18
to wlmi...@gmail.com, qubes-users
You can try to revert the template's filesystem like this (dom0):

$ qvm-volume revert templatename:root

This will only work if you haven't restarted the template since it was
damaged.

The next-easiest solution is to switch (at least temporarily) to another
template for sys-net if you have one -- this is a good reason to have
more than one template, in case your main one gets damaged.

Another thing to try is to get your Qubes install media and see if you
can locate the template .rpm package files on it (I don't recall the
path at the moment); They could be installed manually.

Finally, you could try connecting using the damaged template/sys-net.
There are advice pages around the Internet that describe connecting
without NetworkManager for instance (I suggest doing this with ethernet
cable which is easier than wifi):

https://unix.stackexchange.com/questions/253030/how-to-setup-network-without-wicd-or-networkmanager

In order to execute commands to repair the template, you'll need to
start a root shell from dom0 like this:

$ qvm-run -u root vmname 'xterm'

Good luck!

--

Chris Laprise, tas...@posteo.net
https://github.com/tasket
https://twitter.com/ttaskett
PGP: BEE2 20C5 356E 764A 73EB 4AB3 1DC4 D106 F07F 1886

John S.Recdep

unread,
Aug 24, 2018, 4:01:02 PM8/24/18
to qubes...@googlegroups.com
On 08/24/2018 03:18 AM,
I think this happened to a number of people some weeks back(rumor I
heard it that some package maintainer made a mistake somewhere),
happened to me and in the end I just reinstalled the Template from
qubes-dom0-update instead of trying to fix it, and for me, probably
breaking something else, if you do a search you can see my thread on
here, lesson learned: make a clone of your clean and/or altered
Templates from time to time, and be cautious with autoremove (though
I'll probably use it again) ....

also, one qubster on here backs up his templates to another media source
nightly :)


John S.Recdep

unread,
Aug 24, 2018, 4:03:14 PM8/24/18
to qubes...@googlegroups.com
On 08/24/2018 03:18 AM,
wlminimal-Re5JQE...@public.gmane.org wrote:
as I recall it asks for your sudo pw , which is Not the one decrypt
your drive, nor your user, in Qubes there is no sudo pw by default ,

tasket has a script you can use, iirc that would create one, but that
probably won't solve this ....

in my case debian was ok, just fedora broke iirc
Reply all
Reply to author
Forward
0 new messages