<HTML><BODY>Sony vaio pcg-41213v<br>5.6-release DragonFly v5.6.2.4.g39d387-RELEASE #4<br><br>When updating packages by pkg upgrade at the installation stage my laptop freezes tightly and I had to turn it off via the power button.<br>After booting the system, the pkg upgrade command throws errors:<br>Updating Avalon repository catalogue...<br>Certificate verification failed for /C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External CA Root<br>34371375740:error:14007086:SSL routines:CONNECT_CR_CERT:certificate verify failed:/usr/src/lib/libressl/../../crypto/libressl/ssl/ssl_clnt.c:1121:<br>pkg: https://mirror-master.dragonflybsd.org/dports/dragonfly:5.6:x86:64/LATEST/meta.txz: Authentication error...<br>...<br>pkg: https://mirror-master.dragonflybsd.org/dports/dragonfly:5.6:x86:64/LATEST/packagesite.txz: Authentication error<br>Unable to update repository Avalon<br>Error updating repositories!<br><br>I have tried other repositories, but with the same results.<br>I tried installing ca_root_nss, but pkg install ca_root_nss returned the same error. <br>pkg fetch, pkg search, pkg update - same error.<br>pkg backup -r /var/backups.sql.xz - recovery went ok, but nothing changed.<br>pkg version returns the following:<br>pkg: sqlite error while executing ALTER TABLE packages ADD licenselogic INTEGER NOT NULL DEFAULT(1); in file pkgdb.c:2477: no such table: packages<br><br>Can anyone help restore pkg database?<br>Thanks in advance!<br>-- <br>Ilia Gorstkine</BODY></HTML>