Just Broke Debian-8 Template

197 views
Skip to first unread message

Sec Tester

unread,
Nov 16, 2016, 12:50:58 AM11/16/16
to qubes-users
So i wanted to uninstall that rubbish image editor "imagemagick"

Ran: sudo apt-get remove imagemagick

VM crashed. Error in VM manager says "qrexec not connected"

Tried to restart, VM manager Error says "can not start qubes-guid"

Would prefer not to replace entire template if possible?

Cheers.

Salmiakki

unread,
Nov 16, 2016, 4:21:02 AM11/16/16
to qubes-users
I guess that imagemagick is used to, for example, create the color coded icons for the menu from the installed packages and that it must not be uninstalled.

Unman

unread,
Nov 16, 2016, 5:26:36 AM11/16/16
to Sec Tester, qubes-users
Indeed, the warning about removing qubes-gui-agent and assorted other
qubes modules might have tipped you off that this wasn't wise.

Use qvm-revert-template-changes which will get you back to a clean
start.

unman

Unman

unread,
Nov 16, 2016, 6:08:14 AM11/16/16
to Sec Tester, qubes-users
Alternatively connect to a console from dom0 using:
sudo xl console
This will give you a console connection from where you can
log in as root and reinstall the packages you removed.

unman

Sec Tester

unread,
Nov 16, 2016, 7:37:15 AM11/16/16
to qubes-users, sectest...@gmail.com, un...@thirdeyesecurity.org

Thank you

qvm-revert-template-changes debian-8 - didnt fix it. I tried to set an earlier date, but --help file and man file didnt specific the option format.

while VM light was still yellow
ran: sudo xl debian-8
root
apt-get install imagemagick

Unfortunately still wont start up. must be other missing a packages.

I decided to just replace the template.

> Indeed, the warning about removing qubes-gui-agent and assorted other
> qubes modules might have tipped you off that this wasn't wise.

ha, well just habbit of hitting y when runnning apt-get. Oops :P

raah...@gmail.com

unread,
Nov 16, 2016, 1:30:01 PM11/16/16
to qubes-users, sectest...@gmail.com, un...@thirdeyesecurity.org

I do that on baremetal debian all the time. hahah tk goodness for Qubes.

Vít Šesták

unread,
Nov 16, 2016, 7:33:28 PM11/16/16
to qubes-users
I've tried to replicate it in a DVM and it behaved according to my expectation:

When running sudo apt remove imagemagick, it asks me for also removing some qubes-* packages. The reason is that those packages depend on ImageMagick package, so you should either remove them as well or keep ImageMagick. Well, the prompt looks mostly as a standard remove prompt. If you don't read carefully what is going to be removed, it is easy not to notice that something additional is going to be removed. I remember I have done a similar kind of mistake when removing a Debian package.

Now, it is easy to see why just installing ImageMagick didn't help. Your problem is not just that you miss ImageMagick, the problem is also that you have removed few other packages, including Qubes GUI daemon. You should be able to install them in similar way you have installed ImageMagick. You can see the list of packages you have removed in /var/log/apt/term.log. One also could check what dependencies are typically removed when removing ImageMagick. (I can't do it right now because I am not on Qubes ATM.)

Regards,
Vít Šesták 'v6ak'

Sec Tester

unread,
Nov 16, 2016, 10:34:12 PM11/16/16
to qubes-users
Just for anyones future reference the additional packages seem to be:

qubes-core-agent
qubes-gui-agent
qubes-input-proxy-sender
qubes-pdf-converter

Andrew David Wong

unread,
Nov 19, 2016, 6:35:16 AM11/19/16
to Sec Tester, qubes-users, un...@thirdeyesecurity.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2016-11-16 04:37, Sec Tester wrote:
> qvm-revert-template-changes debian-8 - didnt fix it. I tried to set an earlier date, but --help file and man file didnt specific the option format.
>

qvm-revert-template-changes can only roll back changes made during the last time the TemplateVM was run. It does not keep any history beyond that.

https://www.qubes-os.org/doc/software-update-vm/#reverting-changes-to-a-templatevm

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYMDjkAAoJENtN07w5UDAwy+UQAKuugiVovNhGw4jLCLxwx1qw
VF5Ki0aWmbwJNJuuVL59w7EyiD2IJcyk6pWerDxvl2tyhOuSkqAi+9QxCyiWcU4l
CdlH4srSzHIyQtygNUreIoU7aWTNWaqSLp2rk6VRhjLAQe5U7PBWHgcSNxR6eMhz
e6aszYa4EnwuneP7a6OH+kOkU41IZamOfUqkCIZRAWKed44V2QD1XbEKCjHXPkZN
AVQfQloX3AyMFGySm4EWrAEFV0nroZZ51pHERUelrirAdLP4hSbyU7zjjmrc0RqY
1A0hkKiG9UVE28ex/c+C3A3en4J4j/1HoC04WqwqPQEwU6KzFosptoFIeIGMQKpV
Py3cAAN86b19DTW3pif3coRB4WH/keX8rpaPdveTjxF1wD+bSAWw/XiBqMzgcBQt
YVD/j/hNbvVWHKt3u5BjvtlMiHOqjxJJ0X39zYDRM1ke+9g2NM4BQ3L+MlM+F76K
bncidYNW9gnFjJdbDfZ2/d/79qNAFMUdo9UayZ8O583CHM3rY4jb9q7eP5dKUOzw
A8InI0AGKnwrYpoqf4w+lZCRdzc9C3du5gxOMir2c96hJQtvt/QknlWGrT6rX/0A
TY8a5j32E6hBGqpgju/XeSUy9F7agkkimW42yWNTOy1onKXV3LnFTL1lwrFJifSO
gEAkDBYo4HN1uZIfsuLE
=IVc8
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages