Skip to main content

QubesOS: TemplateVM

Qubes OS - A reasonable secure operating system

Reinstall TemplateVM fedora-29

Something is wrong with fedora-29 TemplateVM after running update. Because I am learning by playing with Qubes OS, so I just reinstall the fedora-29 TemplateVM.

[tuyen@dom0 ~]$ sudo qubes-dom0-update qubes-template-fedora-30
Using sys-whonix as UpdateVM to download updates for Dom0; this may take some time...
fedora/metalink                                             | 5.8 kB  00:00     
fedora                                                      | 4.3 kB  00:00     
fedora/primary_db                                           |  26 MB  00:31     
qubes-dom0-current/metalink                                 | 2.7 kB  00:00     
qubes-dom0-current                                          | 3.8 kB  00:00     
qubes-dom0-current/primary_db                               | 2.1 MB  00:02     
qubes-templates-itl/metalink                                | 2.7 kB  00:00     
qubes-templates-itl                                         | 3.0 kB  00:00     
qubes-templates-itl/primary_db                              |  16 kB  00:00     
updates/metalink                                            | 5.4 kB  00:00     
updates                                                     | 4.7 kB  00:00     
updates/primary_db                                          |  12 MB  00:14     
--> Running transaction check
---> Package qubes-template-fedora-30.noarch 0:4.0.1-201904301131 will be installed
--> Finished Dependency Resolution
qubes-template-fedora-30-4.0.1-201904301131.noarch.rpm      | 1.2 GB  27:21     
find: '/var/lib/qubes/dom0-updates/var/cache': No such file or directory
Qubes OS Repository for Dom0                     13 MB/s |  26 kB     00:00    
Dependencies resolved.
================================================================================
 Package                   Arch    Version             Repository          Size
================================================================================
Installing:
 qubes-template-fedora-30  noarch  4.0.1-201904301131  qubes-dom0-cached  1.2 G

Transaction Summary
================================================================================
Install  1 Package

Total size: 1.2 G
Installed size: 0  
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-30-4.0.1-201904301131.noarch [==============================                                                                Installing  : qubes-template-fedora-30-4.0.1-201904301131.noarch          1/1 
fedora-30: Importing data
Traceback (most recent call last):
  File "/bin/qvm-template-postprocess", line 5, in 
    sys.exit(main())
  File "/usr/lib/python3.5/site-packages/qubesadmin/tools/qvm_template_postprocess.py", line 301, in main
    loop.run_until_complete(post_install(args))
  File "/usr/lib64/python3.5/asyncio/base_events.py", line 467, in run_until_complete
    return future.result()
  File "/usr/lib64/python3.5/asyncio/futures.py", line 294, in result
    raise self._exception
  File "/usr/lib64/python3.5/asyncio/tasks.py", line 240, in _step
    result = coro.send(None)
  File "/usr/lib/python3.5/site-packages/qubesadmin/tools/qvm_template_postprocess.py", line 229, in post_install
    import_root_img(vm, args.dir)
  File "/usr/lib/python3.5/site-packages/qubesadmin/tools/qvm_template_postprocess.py", line 96, in import_root_img
    vm.volumes['root'].import_data(stream=tar.stdout)
  File "/usr/lib/python3.5/site-packages/qubesadmin/storage.py", line 224, in import_data
    self._qubesd_call('Import', payload_stream=stream)
  File "/usr/lib/python3.5/site-packages/qubesadmin/storage.py", line 76, in _qubesd_call
    payload_stream=payload_stream)
  File "/usr/lib/python3.5/site-packages/qubesadmin/app.py", line 536, in qubesd_call
    return self._parse_qubesd_response(return_data)
  File "/usr/lib/python3.5/site-packages/qubesadmin/base.py", line 102, in _parse_qubesd_response
    raise exc_class(format_string, *args)
qubesadmin.exc.QubesVMNotHaltedError: Domain is not powered off: 'fedora-30'
warning: %post(qubes-template-fedora-30-4.0.1-201904301131.noarch) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package qubes-template-fedora-30
Non-fatal POSTIN scriptlet failure in rpm package qubes-template-fedora-30
  Verifying   : qubes-template-fedora-30-4.0.1-201904301131.noarch          1/1 

Installed:
  qubes-template-fedora-30.noarch 4.0.1-201904301131                            

Complete!
[tuyen@dom0 ~]$ 

Popular posts from this blog

Delete files older than 365 days

I must delete IIS *.log files in  older than 365 days. D:\Logs | -W3SVC1 -W3SVC2 -... -W3SVC33 daily-delete-logfiles-older-than-365-days.cmd :: Daily delete log files older than 365 days :: Created on: 20161120 :: Created by: :: Last modified on: :: Last modified by: :: History: SET DIRLOG=E:\_scripts\Logs\ :: Echo @path to test first :: FORFILES /P D:\Logs /S /M *.log /D -365 /C "cmd /c echo @path @fdate" :: Delete files ECHO "Begin" >> %dirlog%daily-delete-logfiles.log DATE /T >> %dirlog%daily-delete-logfiles.log TIME /T >> %dirlog%daily-delete-logfiles.log FORFILES /P D:\Logs /S /M *.log /D -365 /C "cmd /c del @path" >> %dirlog%daily-delete-logfiles.log ECHO "Finished" >> %dirlog%daily-delete-logfiles.log DATE /T >> %dirlog%daily-delete-logfiles.log TIME /T >> %dirlog%daily-delete-logfiles.log :: END of script /P : Path to folder /S: recurse into subdirectories /M *.l...

SoloLearn: Learn to Code for Free!

Got a minute? You can learn to code anywhere, anytime you can with your smartphone using Sololearn.

Powershell: Test-NetConnection

PS C:\Users\tuyen> get-help Test-NetConnection NAME     Test-NetConnection SYNTAX     Test-NetConnection [[-ComputerName] <string>] [-TraceRoute] [-Hops <int>] [-InformationLevel {Quiet |     Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] [-CommonTCPPort] {HTTP | RDP | SMB | WINRM}     [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -Port <int> [-InformationLevel {Quiet | Detailed}]     [<CommonParameters>]     Test-NetConnection [[-ComputerName] <string>] -DiagnoseRouting [-ConstrainSourceAddress <string>]     [-ConstrainInterface <uint32>] [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>] ALIASES     TNC REMARKS     Get-Help cannot find the Help files fo...