Template Installation Problem

51 views
Skip to first unread message

Qubes

unread,
Jul 3, 2020, 5:04:39 AM7/3/20
to qubes...@googlegroups.com
While I was busy installing the Fedora-32-minimal template yesterday
after the rpm was downloaded, checked and verified, I was asked if the
installation must proceed to which I answered 'y'.

Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Installing : qubes-template-fedora-32-minimal-4.0.1 [===
] 1/1 ^
Installing :
qubes-template-fedora-32-minimal-4.0.1-202006110332.noarch 1/1
[ak47@dom0 Desktop]$


However, while that was running I was busy elsewhere and then
accidentally flipped to the dom0 terminal just before I pressed 'ctrl +
c' to copy something. That interrupted the minimal template installation
'^' and the minimal template never got installed.


When I issue the command again it is complaining that it cannot delete
an old database.


[user@dom0 Desktop]$ sudo qubes-dom0-update qubes-template-fedora-32-minimal
Using sys-whonix as UpdateVM to download updates for Dom0; this may take
some time...
error: could not delete old database at
/var/lib/qubes/dom0-updates/home/user/.rpmdbold.3146
Cannot retrieve repository metadata (repomd.xml) for repository: fedora.
Please verify its path and try again


I don't have a /var/lib/qubes/dom0-updates/ folder


[user@dom0 qubes]$ ll /var/lib/qubes
total 72
drwxrws--- 18 root qubes 4096 Jul 2 23:03 appvms
drwxrws--- 2 root qubes 4096 Jul 3 10:36 backup
drwxrws--- 2 root qubes 4096 Jun 10 06:29 dvmdata
-rw-rw---- 1 root qubes 43262 Jul 3 10:42 qubes.xml
drwxrws--- 2 root qubes 4096 Jun 10 06:29 servicevms
drwxrwx--- 4 root qubes 4096 Jul 2 20:56 updates
drwxrws--- 4 root qubes 4096 Jun 10 06:29 vm-kernels
drwxrws--- 12 root qubes 4096 Jul 2 21:03 vm-templates

dhorf-hfre...@hashmail.org

unread,
Jul 3, 2020, 5:30:19 AM7/3/20
to Qubes, qubes...@googlegroups.com
On Fri, Jul 03, 2020 at 11:01:48AM +0200, Qubes wrote:
> Using sys-whonix as UpdateVM to download updates for Dom0; this may take
> some time...
> error: could not delete old database at
> /var/lib/qubes/dom0-updates/home/user/.rpmdbold.3146

> I don't have a /var/lib/qubes/dom0-updates/ folder

that folder is in your updatevm, not dom0.

just restarting the updatevm should clean things up, but means you have
to download the template RPM again.


Qubes

unread,
Jul 3, 2020, 6:03:41 AM7/3/20
to qubes...@googlegroups.com
I have restarted the entire system in an effort to get it fixed. No go.
It just keeps on complaining that it could not delete the old database.

Qubes

unread,
Jul 3, 2020, 7:41:23 AM7/3/20
to qubes...@googlegroups.com
On 7/3/20 12:03 PM, Qubes wrote:
> On 7/3/20 11:30 AM, dhorf-hfre...@hashmail.org wrote:
>> On Fri, Jul 03, 2020 at 11:01:48AM +0200, Qubes wrote:
>>> Using sys-whonix as UpdateVM to download updates for Dom0; this may take
>>> some time...
>>> error: could not delete old database at
>>> /var/lib/qubes/dom0-updates/home/user/.rpmdbold.3146
>>
>> just restarting the updatevm should clean things up, but means you have
>> to download the template RPM again.
>>
>>
> I have restarted the entire system in an effort to get it fixed. No go.
> It just keeps on complaining that it could not delete the old database.
>
There is a symlink on sys-whonix

'/var/lib/qubes/dom0-updates/home/user/.rpmdbold.3146'

that points to

'.rpmdbold.3146 -> /var/lib/qubes/dom0-updates/var/lib/rpm'

and this is where the problem is. But this gets recreated everytime
sys-whonix restarts. If I restart sys-whonix and look in
'/var/lib/qubes/dom0-updates/' it is empty. I then try to install the
fedora-32-minimal template at which time a new symlink gets created

user@host:/var/lib/qubes/dom0-updates/home/user$ ls -la
total 12
drwxr-xr-x 3 user user 4096 Jul 3 11:25 .
drwxr-xr-x 3 user user 4096 Jul 3 11:25 ..
drwxr-xr-x 2 user user 4096 Jul 3 11:25 .rpmdb
lrwxrwxrwx 1 user user 39 Jul 3 11:25 .rpmdbold.2153 ->
/var/lib/qubes/dom0-updates/var/lib/rpm

The location the symlink points to,
'/var/lib/qubes/dom0-updates/var/lib/rpm', also gets created at the same
time, but then it also complains that it cannot delete the old database
at '/var/lib/qubes/dom0-updates/var/lib/rpm'. But that was just created.

It continues despite this but eventually comes back and says there is
nothing to download.


[user@dom0 fedora-31]$ sudo qubes-dom0-update
qubes-template-fedora-32-minimal
Using sys-whonix as UpdateVM to download updates for Dom0; this may take
some time...
error: could not delete old database at
/var/lib/qubes/dom0-updates/home/user/.rpmdbold.2153
fedora/metalink | 5.8 kB
00:00
fedora | 4.3 kB
00:00
fedora/primary_db | 26 MB
00:52
qubes-dom0-current/metalink | 2.7 kB
00:00
https://mirror.linux.pizza/qubes-os.org/repo/yum/r4.0/current/dom0/fc25/repodata/repomd.xml:
[Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
qubes-dom0-current | 3.8 kB
00:00
qubes-dom0-current/primary_db | 3.7 MB
00:06
qubes-templates-itl/metalink | 2.7 kB
00:00
qubes-templates-itl | 3.0 kB
00:00
qubes-templates-itl/primary_db | 21 kB
00:00
updates/metalink | 5.5 kB
00:00
updates | 4.7 kB
00:00
https://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/fedora/linux/updates/25/x86_64/repodata/b94977172dc0781147253c23a829626a015d4fd1d2c5ed90f0739b752fce4556-primary.sqlite.bz2:
[Errno 14] curl#16 - "<Unknown>"
Trying other mirror.
updates/primary_db | 12 MB
00:18
No Match for argument qubes-template-fedora-32-minimal
Nothing to download

Qubes

unread,
Jul 3, 2020, 7:53:14 AM7/3/20
to qubes...@googlegroups.com
On 7/3/20 1:41 PM, Qubes wrote:

> qubes-dom0-current/metalink                                 | 2.7 kB 00:00
> https://mirror.linux.pizza/qubes-os.org/repo/yum/r4.0/current/dom0/fc25/repodata/repomd.xml:
> [Errno 14] HTTPS Error 404 - Not Found

> updates                                                     | 4.7 kB 00:00
> https://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/fedora/linux/updates/25/x86_64/repodata/b94977172dc0781147253c23a829626a015d4fd1d2c5ed90f0739b752fce4556-primary.sqlite.bz2:
> [Errno 14] curl#16 - "<Unknown>"

Why do both mirror links point to 25, should it not be 32?

> ...dom0/fc25/repodata/...

>.../updates/25/x86_64/...

unman

unread,
Jul 3, 2020, 9:44:44 PM7/3/20
to qubes...@googlegroups.com
On Fri, Jul 03, 2020 at 01:52:59PM +0200, Qubes wrote:
> On 7/3/20 1:41 PM, Qubes wrote:
>
> > qubes-dom0-current/metalink???????????????????????????????????????????????????????????????? | 2.7 kB 00:00
> > updates???????????????????????????????????????????????????????????????????????????????????????????????????????? | 4.7 kB 00:00
You're trying to install the 32 template in dom0, and dom0 is fedora-25.

Qubes

unread,
Jul 4, 2020, 4:49:55 AM7/4/20
to qubes...@googlegroups.com
What do you mean I am trying to install the Fedora-32 template in dom0?
I am issuing the command to do it from dom0 yes, but I am not trying to
install it in dom0 itself as the dom0 OS. I am not performing an upgrade
from 31 to 32, which would have to be done in the template itself, I am
installing the new Fedora-32-minimal template. That has to be done from
dom0.

Jarrah

unread,
Jul 4, 2020, 5:11:23 AM7/4/20
to qubes...@googlegroups.com
> What do you mean I am trying to install the Fedora-32 template in
> dom0? I am issuing the command to do it from dom0 yes, but I am not
> trying to install it in dom0 itself as the dom0 OS. I am not
> performing an upgrade from 31 to 32, which would have to be done in
> the template itself, I am installing the new Fedora-32-minimal
> template. That has to be done from dom0.
Installing a template is installing a package in Dom0. That package
contains the disk image and configuration of the template. This is why
the repositories point to fc25, not fc32.

Qubes

unread,
Jul 4, 2020, 7:07:38 AM7/4/20
to qubes...@googlegroups.com
Ok thank you that explains it.

I still cannot get the Fedora-32-minimal template installed however. I
really regret accidentally interrupting the installation procedure with
'Ctrl + c'.

Qubes

unread,
Jul 30, 2020, 3:18:25 PM7/30/20
to qubes...@googlegroups.com
For anybody that follows this thread from start to finish in the future
I finally got this to work a couple of days ago.

To briefly recap what started my troubles with the Fedora 32 templates,
both regular and minimal...

I first installed the f32 template and after it completed successfully I
immediately proceeded to install the f32-minimal template as well.
However, while the f32-minimal template installation was busy ( at this
point it was already downloaded and checked and verified) I accidentally
hit 'ctrl + c' and interrupted the process. After interrupting the
process I just re-issued the command to install the f32-minimal template
again

sudo qubes-dom0-update qubes-template-fedora-32-minimal

But it failed saying that it cannot delete the old database at
'/var/lib/qubes/dom0-updates/home/user/.rpmdbold.2153'.

I eventually found a cli option to the command above used to install a
template used to reinstall a template and this worked out for me. Even
though when it runs it still complains that it cannot delete the old
database the template 're'installation completes and it doesn't stop
after complaining that the old database cannot be deleted.

sudo qubes-dom0-update --action=reinstall qubes-template-fedora-32
sudo qubes-dom0-update --action=reinstall qubes-template-fedora-32-minimal
Reply all
Reply to author
Forward
0 new messages